fix bitrate not detected on some videos
This commit is contained in:
parent
ffd18a9757
commit
f9b19ebdc4
2 changed files with 3 additions and 1 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue