Update app.py
Browse files
app.py
CHANGED
@@ -79,7 +79,8 @@ async def convert_video_task(input_path, downscale, faster, use_mp3, audio_only,
|
|
79 |
ffmpeg_video_cmd += ['-b:v', f"{int(video_bitrate)}k"]
|
80 |
else:
|
81 |
ffmpeg_video_cmd += video_base_opts
|
82 |
-
|
|
|
83 |
ffmpeg_video_cmd.extend(['-preset', 'ultrafast'])
|
84 |
ffmpeg_video_cmd += [
|
85 |
'-c:a', 'libmp3lame', '-b:a', '8k', '-ar', '24000', '-ac', '1',
|
|
|
79 |
ffmpeg_video_cmd += ['-b:v', f"{int(video_bitrate)}k"]
|
80 |
else:
|
81 |
ffmpeg_video_cmd += video_base_opts
|
82 |
+
|
83 |
+
if faster:
|
84 |
ffmpeg_video_cmd.extend(['-preset', 'ultrafast'])
|
85 |
ffmpeg_video_cmd += [
|
86 |
'-c:a', 'libmp3lame', '-b:a', '8k', '-ar', '24000', '-ac', '1',
|