Ignore Insufficient bits warning from shaka

This commit is contained in:
rlaphoenix 2023-03-04 02:31:23 +00:00
parent 9fff14af30
commit 7df6aa42b4
1 changed files with 8 additions and 2 deletions

View File

@ -266,8 +266,14 @@ class Widevine:
shaka_log_buffer = "" shaka_log_buffer = ""
for line in iter(p.stderr.readline, ""): for line in iter(p.stderr.readline, ""):
line = line.strip() line = line.strip()
if line and ":INFO:" not in line: if not line:
shaka_log_buffer += f"{line.strip()}\n" 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: if shaka_log_buffer:
# wrap to console width - padding - '[Widevine]: ' # wrap to console width - padding - '[Widevine]: '