From 7aeecb1bff9b2c0aeaa42eef1558ae94ab5f5518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Fri, 17 Dec 2021 22:41:47 +0100 Subject: [PATCH] =?UTF-8?q?videoQuota:=20=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/scripts/videoQuota | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/config/scripts/videoQuota b/config/scripts/videoQuota index 1313ba8..03e6c76 100755 --- a/config/scripts/videoQuota +++ b/config/scripts/videoQuota @@ -41,17 +41,21 @@ tot_br_bi = quota_bi / duration video_br_bi = int(tot_br_bi - audio_br_bi) assert video_br_bi > 0, "Not even enough space for audio" -cmd = [ - "ffmpeg", - "-i", - in_file, -] + filters + [ - "-b:v", - str(video_br_bi), - "-b:a", - str(audio_br_bi), - out_file, -] +cmd = ( + [ + "ffmpeg", + "-i", + in_file, + ] + + filters + + [ + "-b:v", + str(video_br_bi), + "-b:a", + str(audio_br_bi), + out_file, + ] +) -print(' '.join(cmd)) +print(" ".join(cmd)) subprocess.run(cmd, check=True)