videoQuota:

This commit is contained in:
Geoffrey Frogeye 2021-12-17 22:41:47 +01:00
parent f11338a04a
commit 7aeecb1bff
Signed by: geoffrey
GPG Key ID: C72403E7F82E6AD8
1 changed files with 16 additions and 12 deletions

View File

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