Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def trim_vid(vid,start_time,end_time):
|
|
21 |
end_sec=int(end_time.split(":",2)[2])
|
22 |
start=start_hr+start_min+start_sec
|
23 |
end=end_hr+end_min+end_sec
|
24 |
-
|
25 |
ffmpeg_extract_subclip(vid, start, end, targetname=f"{uid}-clip.mp4")
|
26 |
return f"{uid}-clip.mp4"
|
27 |
|
|
|
21 |
end_sec=int(end_time.split(":",2)[2])
|
22 |
start=start_hr+start_min+start_sec
|
23 |
end=end_hr+end_min+end_sec
|
24 |
+
vid = f"{uid}-tmp.mp4"
|
25 |
ffmpeg_extract_subclip(vid, start, end, targetname=f"{uid}-clip.mp4")
|
26 |
return f"{uid}-clip.mp4"
|
27 |
|