You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
The min_scene_len parameter specified in scene_manager.add_detector(ContentDetector(threshold=27.0, min_scene_len=15)) will only merge short scenes into large scenes. However, my requirement is to directly delete scenes with fragments less than 0.5 seconds without appearing in the scene list. Do you have this api function and parameter? Or Just use min_scene_len=0 and then use ffmpeg?
Thank you!
You can filter them out pretty easily with min_scene_len=0 and a list comprehension:
importscenedetectdetector=scenedetect.ContentDetector(min_scene_len=0))
scenes=scenedetect.detect("tests/resources/goldeneye.mp4", detector=detector)
# drop scenes shorter than 0.5 seconds, s[0] is start timecode, s[1] is end timecodescenes= [sforsinscenesif (s[1] -s[0]) >=0.5]
Repository owner locked and limited conversation to collaborators on Sep 22, 2024
Activity
Breakthrough commentedon Sep 22, 2024
You can filter them out pretty easily with
min_scene_len=0and a list comprehension: