From 03826715ce9a44ea61c7709c549a3601d3b023f8 Mon Sep 17 00:00:00 2001 From: Colle Date: Tue, 8 Jan 2019 13:25:20 +0100 Subject: [PATCH] When no cut return the whole file as a scene Return one scene (which will be the size of the video) when there is 0 cut detected --- scenedetect/scene_manager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scenedetect/scene_manager.py b/scenedetect/scene_manager.py index 581a172f..34fee38f 100644 --- a/scenedetect/scene_manager.py +++ b/scenedetect/scene_manager.py @@ -92,6 +92,7 @@ def get_scenes_from_cuts(cut_list, base_timecode, num_frames, start_frame=0): # Scene list, where scenes are tuples of (Start FrameTimecode, End FrameTimecode). scene_list = [] if not cut_list: + scene_list.append((base_timecode + start_frame, base_timecode + num_frames)) return scene_list # Initialize last_cut to the first frame we processed,as it will be # the start timecode for the first scene in the list.