-
Notifications
You must be signed in to change notification settings - Fork 474
Description
Bug/Issue Description:
--min-scene-len returns scenes shorter than specified length at the beginning and end of a file
Required Information:
Provide the following information to assist with reporting the bug:
- Provide a full copy of the command line options you are using, for example:
scenedetect -i video.mp4 detect-threshold --min-scene-len 14000
- Add
-v debug -l BUG_REPORT.txtto the beginning of the command, then re-run PySceneDetect and attach the generatedBUG_REPORT.txtfile.
Expected Behavior:
A clear and concise description of what you expected to happen.
When specifying the min-scene-len, I would expect no scenes to be returned of below the length specified. It appears that internal scenes are respected, but not the first or last segment.
For instance, if I have a 30m video with a fade to black at 1m, 15m and 29m. I would expect with a threshold of 300,000 (10 minutes), I would only have two 15m slices. Instead, I see the first fade detected, as well as the third, as the scenes in between are of sufficient length.
Expected behavior would be that these are included as part of the adjacent scenes.
Computing Environment:
- OS: osx
- Python Version: 2.7
- OpenCV Version: 4.1.0_2