From f9b19ebdc494db2595fb868fc00c886f4916daff Mon Sep 17 00:00:00 2001 From: Martin Sekera Date: Fri, 27 Aug 2021 12:19:12 +0200 Subject: [PATCH] fix bitrate not detected on some videos --- over-video.py | 2 ++ version.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/over-video.py b/over-video.py index f2887d1..3ca22fb 100755 --- a/over-video.py +++ b/over-video.py @@ -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 = "??<.>" info.pixel_fmt = video["pix_fmt"] diff --git a/version.py b/version.py index 0505248..23c7700 100644 --- a/version.py +++ b/version.py @@ -4,5 +4,5 @@ major = 2 # VERSION_MAJOR_IDENTIFIER minor = 0 # VERSION_MINOR_IDENTIFIER # 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))