Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,8 +27,8 @@ def find_scenes(video_path, threshold=27.0):
|
|
27 |
# ffmpeg_extract_subclip("full.mp4", start_seconds, end_seconds, targetname="cut.mp4")
|
28 |
ffmpeg_extract_subclip(video_path, shot_in, shot_out, targetname="cut.mp4")
|
29 |
#print(output_video_path)
|
30 |
-
return scene_list,
|
31 |
|
32 |
-
video_input=gr.Video(source="upload", format="mp4"
|
33 |
|
34 |
gr.Interface(fn=find_scenes, inputs=video_input, outputs=["json", "video"]).launch()
|
|
|
27 |
# ffmpeg_extract_subclip("full.mp4", start_seconds, end_seconds, targetname="cut.mp4")
|
28 |
ffmpeg_extract_subclip(video_path, shot_in, shot_out, targetname="cut.mp4")
|
29 |
#print(output_video_path)
|
30 |
+
return scene_list, "cut.mp4"
|
31 |
|
32 |
+
video_input=gr.Video(source="upload", format="mp4");
|
33 |
|
34 |
gr.Interface(fn=find_scenes, inputs=video_input, outputs=["json", "video"]).launch()
|