Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not processing the whole video #19

Closed
SamriddhiJain opened this issue Nov 10, 2016 · 4 comments
Closed

Not processing the whole video #19

SamriddhiJain opened this issue Nov 10, 2016 · 4 comments

Comments

@SamriddhiJain
Copy link

Is there any limit to the size of video to be processed? I'm using the scenedetect scenedetect --input GOPR1631.MP4 -d content -df 4 command and it seems like it is processing only 26 frames.
[PySceneDetect] Detecting scenes (content mode)... [PySceneDetect] Parsing video GOPR1631.MP4... [PySceneDetect] Video Resolution / Framerate: 1280 x 720 / 29.970 FPS [PySceneDetect] Subsampling Enabled (4x, Resolution = 320 x 180) Verify that the above parameters are correct (especially framerate, use --force-fps to correct if required). [PySceneDetect] Processing complete, found 0 scenes in video. [PySceneDetect] Processed 26 frames in 38.6 secs (avg. 0.7 FPS).

The video I'm using is of size 4GB and am pretty sure it quite a large number frames. It is working fine with videos of relatively small sizes (few MBs) whereas when used for big videos it is processing only 26 frames. Currently I have no clue why is it so, am I missing some parameter? Thanks!

@Breakthrough
Copy link
Owner

Breakthrough commented Nov 14, 2016

Hi @SamriddhiJain interesting, the command you're using looks fine to me, so it should certainly be processing more than just 26 frames.

Could you give me a bit more details about your system? Are you on a 32-bit or 64-bit OS?

@SamriddhiJain
Copy link
Author

SamriddhiJain commented Nov 14, 2016

@Breakthrough I'm working on ubuntu 14.04 64 bit. I'm facing this issue while using a 4GB file, whereas when I sliced first 2 minutes of the video and used it, then it is processing all the frames correctly.

@Breakthrough
Copy link
Owner

Breakthrough commented Nov 18, 2016

@SamriddhiJain interesting, I would recommend you try wrapping it in a different container. My suggestion is to use mkvmerge (part of mkvtoolnix) to "convert" your video MP4 to MKV, and see if that solves the issue.

Sometimes ffmpeg/libav can be picky when it comes to improper MP4 headers, so if that doesn't work, you may have to split your video up into smaller chunks manually, or re-encode the original source file if that's feasible. Let me know how you make out, and if you're comfortable, feel free to upload a sample video that you can't process, that I can have a deeper look at.

@Breakthrough
Copy link
Owner

Closing issue until further information is provided. Feel free to add a comment to this issue at any time, or open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants