RandomPersonRR commited on
Commit
e23c3fd
·
verified ·
1 Parent(s): 466974a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -75,14 +75,16 @@ async def convert_video_task(input_path, downscale, faster, use_mp3, audio_only,
75
  ffmpeg_video_cmd = [
76
  'ffmpeg', '-y', '-hwaccel', accel, '-i', input_path
77
  ]
78
- if custom_bitrate:
 
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',
87
  output_video
88
  ]
 
75
  ffmpeg_video_cmd = [
76
  'ffmpeg', '-y', '-hwaccel', accel, '-i', input_path
77
  ]
78
+
79
+ if custom_bitrate:
80
  ffmpeg_video_cmd += ['-b:v', f"{int(video_bitrate)}k"]
81
  else:
82
  ffmpeg_video_cmd += video_base_opts
83
 
84
+ if faster:
85
+ ffmpeg_video_cmd.extend(['-preset', 'ultrafast'])
86
+
87
+ ffmpeg_video_cmd += [
88
  '-c:a', 'libmp3lame', '-b:a', '8k', '-ar', '24000', '-ac', '1',
89
  output_video
90
  ]