Comments (6)
This error is indicating that decoding the desired frame of the video was not successful. The save_images
function seeks to the desired frame to pull as an image here and then calls the read
function to decode the desired frame in the next line. It's not clear which backend you are using, but you can see the docstring for the read
function when using the OpenCV backend (the default backend) that it is supposed to return a decoded numpy array and a boolean. In cases in which the decoding is not successful, then just a boolean is returned. This would cause the error that you see here.
Does this happen with other videos, or is it specific to one video?
from pyscenedetect.
yes, this happens to other videos as well
is there any way to skip corrupted frame during image_saving (working of function save_images)?
in order to save all other "good" frames
from pyscenedetect.
Does the issue still happen once you re-encode (or re-mux) the input video? The OpenCV backend tries to recover from this gracefully, so I assume seeking isn't happening correctly for this video.
As in #345, do the other videos this happens with also have trouble seeking?
from pyscenedetect.
Could you please help me with this error
FrameTimecode instances require equal framerate for addition
from pyscenedetect.
Could anyone give me the solution?
I faced the same error
from pyscenedetect.
@KerolosAtef Can you try the PyAV backend (or MoviePy)? Otherwise you may have to re-encode / re-mux the source material first. Can you provide a sample of a clip that causes this error?
If anyone can provide a reproduction of the issue, that would be very helpful.
@Vsevosemnog can you provide some more context in a new issue/discussion? Thanks!
from pyscenedetect.
Related Issues (20)
- Cannot find reference 'open_video' in 'scenedetect.py' on Windows 10 HOT 1
- Incorrect FrameTimecode conversion to string HOT 1
- webm files don't work correctly HOT 4
- `list-scenes` option `-q`/`--quiet` does not suppress all output HOT 3
- Output File Name Change HOT 2
- Extraction half of frames HOT 5
- split_video_ffmpeg error HOT 1
- split_video_ffmpeg lib function update HOT 1
- Update issue creation templates to use new forms feature
- Fix Github license detection
- How run it with asyncio and fastapi
- The performance of detecting shot changes is poor HOT 5
- Change `list-scenes` defaults: don't output file, skip cuts
- [Bug] memory leak HOT 9
- Ignore time intervals HOT 5
- Remove this issue please
- How to detect entire scenes and not only shot changes? HOT 1
- Add StreamJoiner to concatenate multiple videos
- Inconsistent error handling when start time exceeds video length
- url input ,1080p video much slower HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyscenedetect.