Update app.py
Browse files
app.py
CHANGED
@@ -17,8 +17,8 @@ def find_scenes(video_path, threshold=27.0):
|
|
17 |
|
18 |
#print(scene_list)
|
19 |
|
20 |
-
shot_in =
|
21 |
-
shot_out =
|
22 |
#print(shot_in, shot_out)
|
23 |
|
24 |
ffmpeg_extract_subclip(video_path, shot_in, shot_out, targetname="video_out.mp4")
|
|
|
17 |
|
18 |
#print(scene_list)
|
19 |
|
20 |
+
shot_in = scene_list[0][0].get_frames()
|
21 |
+
shot_out = 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")
|