Update app.py
Browse files
app.py
CHANGED
@@ -85,9 +85,12 @@ async def convert_video_task(input_path, downscale, faster, use_mp3, audio_only,
|
|
85 |
|
86 |
# Compress video without audio
|
87 |
video_cmd = [
|
88 |
-
|
89 |
-
|
90 |
|
|
|
|
|
|
|
91 |
if custom_bitrate:
|
92 |
video_cmd += ['-b:v', f"{int(video_bitrate)}k"]
|
93 |
else:
|
|
|
85 |
|
86 |
# Compress video without audio
|
87 |
video_cmd = [
|
88 |
+
'ffmpeg', '-y', '-hwaccel', accel, '-i', input_path
|
89 |
+
]
|
90 |
|
91 |
+
if downscale:
|
92 |
+
video_cmd += ['-vf', 'scale=-2:144']
|
93 |
+
|
94 |
if custom_bitrate:
|
95 |
video_cmd += ['-b:v', f"{int(video_bitrate)}k"]
|
96 |
else:
|