Code Monkey home page Code Monkey logo

Comments (5)

Breakthrough avatar Breakthrough commented on June 3, 2024

Could you provide debug logs to assist? You can add -v debug -l BUG_REPORT.txt to create one. Thanks.

from pyscenedetect.

vladoossss avatar vladoossss commented on June 3, 2024

Could you provide debug logs to assist? You can add -v debug -l BUG_REPORT.txt to create one. Thanks.

I started with debug, but it's still not clear for me to understand what happend:
image

But i figured out that my test video has ~50fps. Can the problem depends on huge fps?

from pyscenedetect.

Breakthrough avatar Breakthrough commented on June 3, 2024

Is that the same video? If the framerate is 50 FPS, then 131833 frames represents 43 minutes [1] that PySceneDetect processed. The progress bar bases the total # of frames on whatever the video container reports, which may not be accurate. To confirm this, you can try re-encoding the video with ffmpeg and then process it again with PySceneDetect.

Are you seeing this problem on different videos or just a single input? Have you tried another backend (e.g. --backend pyav)?

[1] 131833 frames / (50 frames/sec * 60 secs/min) = 43 minutes

Edit: To answer your question, the problem shouldn't depend on framerate as long as it is fixed.

from pyscenedetect.

vladoossss avatar vladoossss commented on June 3, 2024

Is that the same video? If the framerate is 50 FPS, then 131833 frames represents 43 minutes [1] that PySceneDetect processed. The progress bar bases the total # of frames on whatever the video container reports, which may not be accurate. To confirm this, you can try re-encoding the video with ffmpeg and then process it again with PySceneDetect.

Are you seeing this problem on different videos or just a single input? Have you tried another backend (e.g. --backend pyav)?

[1] 131833 frames / (50 frames/sec * 60 secs/min) = 43 minutes

Edit: To answer your question, the problem shouldn't depend on framerate as long as it is fixed.

I've tried 2 diffrent video(both 50 fps, ~1.5 hours). But it's always processes half of the frames.

I agree with your calculation. But when i save one image per scene and looking at last image, i see ~the middle frame of my vildeo.

I also used another backend(moviepy) and it works well(with all frames), but too slow compared to opencv(4-5 times slower).

from pyscenedetect.

Breakthrough avatar Breakthrough commented on June 3, 2024

Are you able to share a sample video with me that shows the issue? That would be useful to help debug what the issue may be. 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.