videoQuota: ✨
This commit is contained in:
parent
f11338a04a
commit
7aeecb1bff
|
@ -41,17 +41,21 @@ tot_br_bi = quota_bi / duration
|
||||||
video_br_bi = int(tot_br_bi - audio_br_bi)
|
video_br_bi = int(tot_br_bi - audio_br_bi)
|
||||||
assert video_br_bi > 0, "Not even enough space for audio"
|
assert video_br_bi > 0, "Not even enough space for audio"
|
||||||
|
|
||||||
cmd = [
|
cmd = (
|
||||||
|
[
|
||||||
"ffmpeg",
|
"ffmpeg",
|
||||||
"-i",
|
"-i",
|
||||||
in_file,
|
in_file,
|
||||||
] + filters + [
|
]
|
||||||
|
+ filters
|
||||||
|
+ [
|
||||||
"-b:v",
|
"-b:v",
|
||||||
str(video_br_bi),
|
str(video_br_bi),
|
||||||
"-b:a",
|
"-b:a",
|
||||||
str(audio_br_bi),
|
str(audio_br_bi),
|
||||||
out_file,
|
out_file,
|
||||||
]
|
]
|
||||||
|
)
|
||||||
|
|
||||||
print(' '.join(cmd))
|
print(" ".join(cmd))
|
||||||
subprocess.run(cmd, check=True)
|
subprocess.run(cmd, check=True)
|
||||||
|
|
Loading…
Reference in a new issue