fix bitrate not detected on some videos

This commit is contained in:
Martin Sekera 2021-08-27 12:19:12 +02:00
parent ffd18a9757
commit f9b19ebdc4
2 changed files with 3 additions and 1 deletions

View file

@ -750,6 +750,8 @@ if __name__ == "__main__":
info.video_bitrate = over.text.Unit(video["bit_rate"], "b/s")
elif "tags" in video and "BPS" in video["tags"]:
info.video_bitrate = over.text.Unit(int(video["tags"]["BPS"]), "b/s")
elif "tags" in video and "BPS-eng" in video["tags"]:
info.video_bitrate = over.text.Unit(int(video["tags"]["BPS-eng"]), "b/s")
else:
info.video_bitrate = "<R>??<.>"
info.pixel_fmt = video["pix_fmt"]