Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,11 @@ def find_scenes(video_path, threshold=27.0):
|
|
12 |
ContentDetector(threshold=threshold))
|
13 |
scene_manager.detect_scenes(video, show_progress=True)
|
14 |
scene_list = scene_manager.get_scene_list()
|
15 |
-
|
|
|
|
|
|
|
|
|
16 |
|
17 |
return scene_list
|
18 |
|
|
|
12 |
ContentDetector(threshold=threshold))
|
13 |
scene_manager.detect_scenes(video, show_progress=True)
|
14 |
scene_list = scene_manager.get_scene_list()
|
15 |
+
|
16 |
+
#create video from scene list
|
17 |
+
|
18 |
+
start_sec = int(scene_list[0][0]['frame_num'])
|
19 |
+
print(start_sec)
|
20 |
|
21 |
return scene_list
|
22 |
|