Update app.py
Browse files
app.py
CHANGED
@@ -21,9 +21,9 @@ def find_scenes(video_path, threshold=27.0):
|
|
21 |
shot_out = int(scene_list[0][1].get_frames())
|
22 |
#print(shot_in, shot_out)
|
23 |
|
24 |
-
|
25 |
|
26 |
-
return scene_list, video_out
|
27 |
|
28 |
video_input=gr.Video(source="upload", format="mp4", mirror_webcam="False");
|
29 |
|
|
|
21 |
shot_out = int(scene_list[0][1].get_frames())
|
22 |
#print(shot_in, shot_out)
|
23 |
|
24 |
+
ffmpeg_extract_subclip(video_path, shot_in, shot_out, targetname="video_out.mp4")
|
25 |
|
26 |
+
return scene_list, "video_out.mp4"
|
27 |
|
28 |
video_input=gr.Video(source="upload", format="mp4", mirror_webcam="False");
|
29 |
|