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])
|
quota_by = int(sys.argv[1])
|
||||||
in_file = sys.argv[2]
|
in_file = sys.argv[2]
|
||||||
out_file = sys.argv[3]
|
out_file = sys.argv[3]
|
||||||
|
filters = sys.argv[4:]
|
||||||
|
|
||||||
quota_bi = quota_by * 8
|
quota_bi = quota_by * 8
|
||||||
duration = duration_file(in_file)
|
duration = duration_file(in_file)
|
||||||
|
@ -44,6 +45,7 @@ cmd = [
|
||||||
"ffmpeg",
|
"ffmpeg",
|
||||||
"-i",
|
"-i",
|
||||||
in_file,
|
in_file,
|
||||||
|
] + filters + [
|
||||||
"-b:v",
|
"-b:v",
|
||||||
str(video_br_bi),
|
str(video_br_bi),
|
||||||
"-b:a",
|
"-b:a",
|
||||||
|
@ -51,4 +53,5 @@ cmd = [
|
||||||
out_file,
|
out_file,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
print(' '.join(cmd))
|
||||||
subprocess.run(cmd, check=True)
|
subprocess.run(cmd, check=True)
|
||||||
|
|
Loading…
Reference in a new issue