Skip to content

Setting different values ​​for min_scene_len results in the same content being divided into different scenes #469

Answered by Breakthrough
iaaidev1 asked this question in Q&A
Discussion options

You must be logged in to vote

Any time the min_scene_len parameter is enforced, the results will differ since PySceneDetect needs to determine what to do. In previous versions (v0.6.3 and older), any cut points that occurred before min_scene_len were ignored.

Newer versions (v0.6.4+) allow you to customize what happens with the filter_mode param. By default, ContentDetector now merges cuts shorter than min_scene_len with the preceding scene. This greatly improves performance on videos with lots of flashing.

You can still get the old behaviour by setting the filter_mode param of ContentDetector to FlashFilter.Mode.SUPPRESS, e.g.:

from scenedetect.scene_detector import FlashFilter
content_detector = ContentDetector(..., f…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@iaaidev1
Comment options

@Breakthrough
Comment options

Answer selected by iaaidev1
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants