Merge pull request #1902 from pypeclub/bugfix/burnins_bitrate_fix

Burnins: Use input's bitrate in h624
This commit is contained in:
Jakub Trllo 2021-08-05 12:26:16 +02:00 committed by GitHub
commit 39aa169a3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -113,6 +113,10 @@ def _h264_codec_args(ffprobe_data):
output.extend(["-codec:v", "h264"])
bit_rate = ffprobe_data.get("bit_rate")
if bit_rate:
output.extend(["-b:v", bit_rate])
pix_fmt = ffprobe_data.get("pix_fmt")
if pix_fmt:
output.extend(["-pix_fmt", pix_fmt])