Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,8 @@ def clip_video_segment_2(input_video_path, start_time, duration):
|
|
86 |
(
|
87 |
ffmpeg
|
88 |
.input(input_video_path, ss=start_time) # Seek to start_time
|
89 |
-
.output(output_video_path, t=duration, c='copy') # Set the duration
|
|
|
90 |
.run(overwrite_output=True)
|
91 |
)
|
92 |
print('input_video_path', input_video_path, output_video_path)
|
|
|
86 |
(
|
87 |
ffmpeg
|
88 |
.input(input_video_path, ss=start_time) # Seek to start_time
|
89 |
+
# .output(output_video_path, t=duration, c='copy') # Set the duration
|
90 |
+
.output(output_video_path, t=duration) # Set the duration
|
91 |
.run(overwrite_output=True)
|
92 |
)
|
93 |
print('input_video_path', input_video_path, output_video_path)
|