Merge pull request #448 from tokejepsen/2.x/bugfix/burnin_bit_rate

Burnins: Copy bit rate of input video to match quality.
This commit is contained in:
Milan Kolar 2020-08-20 09:40:44 +02:00 committed by GitHub
commit 41baa5fb48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -524,6 +524,10 @@ def burnins_from_data(
profile_name = profile_name.replace(" ", "_").lower()
ffmpeg_args.append("-profile:v {}".format(profile_name))
bit_rate = burnin._streams[0].get("bit_rate")
if bit_rate:
ffmpeg_args.append("--b:v {}".format(bit_rate))
pix_fmt = burnin._streams[0].get("pix_fmt")
if pix_fmt:
ffmpeg_args.append("-pix_fmt {}".format(pix_fmt))