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")
|
info.video_bitrate = over.text.Unit(video["bit_rate"], "b/s")
|
||||||
elif "tags" in video and "BPS" in video["tags"]:
|
elif "tags" in video and "BPS" in video["tags"]:
|
||||||
info.video_bitrate = over.text.Unit(int(video["tags"]["BPS"]), "b/s")
|
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:
|
else:
|
||||||
info.video_bitrate = "<R>??<.>"
|
info.video_bitrate = "<R>??<.>"
|
||||||
info.pixel_fmt = video["pix_fmt"]
|
info.pixel_fmt = video["pix_fmt"]
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
major = 2 # VERSION_MAJOR_IDENTIFIER
|
major = 2 # VERSION_MAJOR_IDENTIFIER
|
||||||
minor = 0 # VERSION_MINOR_IDENTIFIER
|
minor = 0 # VERSION_MINOR_IDENTIFIER
|
||||||
# VERSION_LAST_MM 2.0
|
# VERSION_LAST_MM 2.0
|
||||||
patch = 0 # VERSION_PATCH_IDENTIFIER
|
patch = 1 # VERSION_PATCH_IDENTIFIER
|
||||||
str = ".".join(str(v) for v in (major, minor, patch))
|
str = ".".join(str(v) for v in (major, minor, patch))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue