Skip to content

--min-scene-len does not respect first scene #105

@charlesvestal

Description

@charlesvestal

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:

  1. Provide a full copy of the command line options you are using, for example:

scenedetect -i video.mp4 detect-threshold --min-scene-len 14000

  1. Add -v debug -l BUG_REPORT.txt to the beginning of the command, then re-run PySceneDetect and attach the generated BUG_REPORT.txt file.

BUG_REPORT.txt

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions