-
Notifications
You must be signed in to change notification settings - Fork 376
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
Splitting videos with an analyzed duration only splits within analyzed area #106
Comments
Hi @charlesvestal; Thanks for your bug report! This definitely seems like an issue, I'll do some further investigation and hopefully have a fix for this included in the next release of PySceneDetect. Just to help with the analysis, do you see the same behaviour if instead of setting the end time, you set the duration instead? (e.g. replace -e 00:15:00 with -d 00:02:00) Thank you! |
Absolutely! Below is the output for all four scenarios: stream-copy and stream-copy -c in both explicit end and duration variants:
Thanks for such a great tool! |
Having same issue here |
Hey @charlesvestal / @snwfdhmp; I just pushed a fix for this to master just now (d097275). Feel free to download & install a copy locally to get a patched version up and running until this is available on pip (I'll likely publish v0.5.2 by mid September). I also updated the relevant unit tests to ensure that this case is specifically checked for now (namely, that all scenes returned by the SceneManager must be in ascending order, and the start timecode must be smaller than the end timecode). Thanks again @charlesvestal for your well-written and extensive report. All of the included information allowed me to make a much more focused and isolated root cause analysis, as well as updating the unit tests to prevent regressions going forwards. Much appreciated! |
Finally had a chance to test this (sorry!). While i'm now able to succesfully run the command, the analyzed area is treated as the whole area to split. My impression was that the analyzed area is where you would look for splits but the entire video would still be split. Is that incorrect? i.e. i know there's a break between 13m and 15m, but the video is 30m long, I want to limit the analysis for speed but still have two roughly 15m chunks. |
I think I'm wrong, and using the start and end time of the process duration as different from the clip duration is likely another feature request. ;) Thanks! |
Bug/Issue Description:
Specifying a time to analyze with time --start and --end in conjunction with
split-video
treats the end time of the analyzed window as the total length of the video, making it unable to be split, either via ffmpeg or mkvmerge.Required Information:
Provide the following information to assist with reporting the bug:
scenedetect -i somevideo.mp4 time -s 00:13:00 -e 00:15:00 detect-threshold split-video -c
-v debug -l BUG_REPORT.txt
to the beginning of the command, then re-run PySceneDetect and attach the generatedBUG_REPORT.txt
file.BUG_REPORT.txt
Expected Behavior:
The analyzed duration should provide timecode for splits, but the split files should be from the entire duration of the input file.
Computing Environment:
The text was updated successfully, but these errors were encountered: