Spaces:
Runtime error
Runtime error
Commit
·
bcf3d61
1
Parent(s):
6d4a458
add ultrafast preset
Browse files- video_tool.py +1 -1
video_tool.py
CHANGED
@@ -22,7 +22,7 @@ def add_subtitle_to_video(input_file, subtitle_file, output_file, start_time, en
|
|
22 |
(
|
23 |
ffmpeg
|
24 |
.input(input_file)
|
25 |
-
.output(file_name.cut_video_file, ss=start_time, to=end_time, acodec='copy', vcodec='libx264')
|
26 |
.run(overwrite_output=True)
|
27 |
)
|
28 |
|
|
|
22 |
(
|
23 |
ffmpeg
|
24 |
.input(input_file)
|
25 |
+
.output(file_name.cut_video_file, ss=start_time, to=end_time, acodec='copy', vcodec='libx264', preset='ultrafast')
|
26 |
.run(overwrite_output=True)
|
27 |
)
|
28 |
|