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