From 7df6aa42b41418e5e2221df5cc33896a2dcbe68c Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Sat, 4 Mar 2023 02:31:23 +0000 Subject: [PATCH] Ignore Insufficient bits warning from shaka --- devine/core/drm/widevine.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/devine/core/drm/widevine.py b/devine/core/drm/widevine.py index 84176e2..231def2 100644 --- a/devine/core/drm/widevine.py +++ b/devine/core/drm/widevine.py @@ -266,8 +266,14 @@ class Widevine: shaka_log_buffer = "" for line in iter(p.stderr.readline, ""): line = line.strip() - if line and ":INFO:" not in line: - shaka_log_buffer += f"{line.strip()}\n" + if not line: + continue + if ":INFO:" in line: + continue + if "Insufficient bits in bitstream for given AVC profile" in line: + # this is a warning and is something we don't have to worry about + continue + shaka_log_buffer += f"{line.strip()}\n" if shaka_log_buffer: # wrap to console width - padding - '[Widevine]: '