From 9100edac1ee706e29621e9f3bf71df070db9f530 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:13:27 +0100 Subject: [PATCH] videoQuota: Support filters --- config/scripts/videoQuota | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/scripts/videoQuota b/config/scripts/videoQuota index 58af75e..1313ba8 100755 --- a/config/scripts/videoQuota +++ b/config/scripts/videoQuota @@ -33,6 +33,7 @@ audio_br_bi = 128000 quota_by = int(sys.argv[1]) in_file = sys.argv[2] out_file = sys.argv[3] +filters = sys.argv[4:] quota_bi = quota_by * 8 duration = duration_file(in_file) @@ -44,6 +45,7 @@ cmd = [ "ffmpeg", "-i", in_file, +] + filters + [ "-b:v", str(video_br_bi), "-b:a", @@ -51,4 +53,5 @@ cmd = [ out_file, ] +print(' '.join(cmd)) subprocess.run(cmd, check=True)