Code Monkey home page Code Monkey logo

Comments (6)

wjs018 avatar wjs018 commented on June 2, 2024

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.

Vsevosemnog avatar Vsevosemnog commented on June 2, 2024

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.

Breakthrough avatar Breakthrough commented on June 2, 2024

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.

Vsevosemnog avatar Vsevosemnog commented on June 2, 2024

Could you please help me with this error
FrameTimecode instances require equal framerate for addition

from pyscenedetect.

KerolosAtef avatar KerolosAtef commented on June 2, 2024

Could anyone give me the solution?
I faced the same error

from pyscenedetect.

Breakthrough avatar Breakthrough commented on June 2, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.