videoQuota: Support filters

This commit is contained in:
Geoffrey Frogeye 2021-12-17 22:13:27 +01:00
parent 76df5d4d80
commit 9100edac1e
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8

View file

@ -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)