Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,8 +18,9 @@ def find_scenes(video_path, threshold=27.0):
|
|
| 18 |
#start_sec = int(scene_list[0][0]['frame_num'])
|
| 19 |
#timecode, frame, fps = scene_list[1]
|
| 20 |
print(scene_list)
|
| 21 |
-
|
| 22 |
-
|
|
|
|
| 23 |
return scene_list
|
| 24 |
|
| 25 |
video_input=gr.Video(source="upload", format="mp4", mirror_webcam="False");
|
|
|
|
| 18 |
#start_sec = int(scene_list[0][0]['frame_num'])
|
| 19 |
#timecode, frame, fps = scene_list[1]
|
| 20 |
print(scene_list)
|
| 21 |
+
shot_in = scene_list[0][0].get_frames()
|
| 22 |
+
shot_out = scene_list[0][1].get_frames()
|
| 23 |
+
print(shot_in, shot_out)
|
| 24 |
return scene_list
|
| 25 |
|
| 26 |
video_input=gr.Video(source="upload", format="mp4", mirror_webcam="False");
|