Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -105,8 +105,8 @@ def get_frames(video_in, img_type):
|
|
| 105 |
#resize the video
|
| 106 |
# Cut the video to the first 5 seconds
|
| 107 |
video_out = f"{img_type}_video_cut.mp4"
|
| 108 |
-
ffmpeg_extract_subclip(video_in, start_time=0, end_time=5, targetname=video_out)
|
| 109 |
|
|
|
|
| 110 |
# Now, proceed with resizing the cut video
|
| 111 |
clip = VideoFileClip(video_out)
|
| 112 |
|
|
|
|
| 105 |
#resize the video
|
| 106 |
# Cut the video to the first 5 seconds
|
| 107 |
video_out = f"{img_type}_video_cut.mp4"
|
|
|
|
| 108 |
|
| 109 |
+
ffmpeg_extract_subclip(video_in, t1=0, t2=5, targetname=video_out)
|
| 110 |
# Now, proceed with resizing the cut video
|
| 111 |
clip = VideoFileClip(video_out)
|
| 112 |
|