Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,6 +44,8 @@ def find_scenes(video_path, threshold=27.0):
|
|
44 |
#print(scene_list)
|
45 |
|
46 |
timecodes = []
|
|
|
|
|
47 |
shots = []
|
48 |
stills = []
|
49 |
|
@@ -64,7 +66,6 @@ def find_scenes(video_path, threshold=27.0):
|
|
64 |
frame_in = shot[0].get_frames()
|
65 |
frame_out = shot[1].get_frames()
|
66 |
|
67 |
-
timecodes.append({"title": filename, "fps": framerate})
|
68 |
timecode = {"tc_in": tc_in, "tc_out": tc_out, "frame_in": frame_in, "frame_out": frame_out}
|
69 |
timecodes.append(timecode)
|
70 |
|
|
|
44 |
#print(scene_list)
|
45 |
|
46 |
timecodes = []
|
47 |
+
timecodes.append({"title": filename + ".mp4", "fps": framerate})
|
48 |
+
|
49 |
shots = []
|
50 |
stills = []
|
51 |
|
|
|
66 |
frame_in = shot[0].get_frames()
|
67 |
frame_out = shot[1].get_frames()
|
68 |
|
|
|
69 |
timecode = {"tc_in": tc_in, "tc_out": tc_out, "frame_in": frame_in, "frame_out": frame_out}
|
70 |
timecodes.append(timecode)
|
71 |
|