videoQuota: Support filters
This commit is contained in:
parent
76df5d4d80
commit
9100edac1e
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue