fffiloni commited on
Commit
86f6646
1 Parent(s): 7081512

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -8,11 +8,12 @@ def find_scenes(video_path, threshold=27.0):
8
  ContentDetector(threshold=threshold))
9
  # Detect all scenes in video from current position to end.
10
  scene_manager.detect_scenes(video)
 
11
  # `get_scene_list` returns a list of start/end timecode pairs
12
  # for each scene that was found.
13
 
14
- split_list = video_splitter.split_video_ffmpeg(input_video_path, scene_list, output_file_template='$VIDEO_NAME-Scene-$SCENE_NUMBER.mp4', video_name=None, arg_override='-c:v libx264 -preset fast -crf 21 -c:a aac', show_progress=False, show_output=False, suppress_output=None, hide_progress=None)
15
- return scene_manager.get_scene_list(), split_list
16
 
17
  video_input=gr.Video(source="upload", format="mp4", mirror_webcam="False");
18
 
 
8
  ContentDetector(threshold=threshold))
9
  # Detect all scenes in video from current position to end.
10
  scene_manager.detect_scenes(video)
11
+ scene_list = scene_manager.get_scene_list()
12
  # `get_scene_list` returns a list of start/end timecode pairs
13
  # for each scene that was found.
14
 
15
+ split_list = video_splitter.split_video_ffmpeg(video_path, scene_list, output_file_template='$VIDEO_NAME-Scene-$SCENE_NUMBER.mp4', video_name=None, arg_override='-c:v libx264 -preset fast -crf 21 -c:a aac', show_progress=False, show_output=False, suppress_output=None, hide_progress=None)
16
+ return scene_list, split_list
17
 
18
  video_input=gr.Video(source="upload", format="mp4", mirror_webcam="False");
19