Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,8 @@ def find_scenes(video_path, threshold=27.0):
|
|
18 |
|
19 |
#print(scene_list)
|
20 |
|
21 |
-
shot_in = scene_list[
|
22 |
-
shot_out = (scene_list[
|
23 |
#print(shot_in, shot_out)
|
24 |
|
25 |
#input_video_path = video_path
|
|
|
18 |
|
19 |
#print(scene_list)
|
20 |
|
21 |
+
shot_in = scene_list[1][0].get_frames() / scene_list[1][0].get_framerate()
|
22 |
+
shot_out = (scene_list[1][1].get_frames() - 1) / scene_list[1][0].get_framerate()
|
23 |
#print(shot_in, shot_out)
|
24 |
|
25 |
#input_video_path = video_path
|