Vp9 fixes (#438)

* Fix fo ffprobe appending pipe
* Fix media remains pending when only encoding to webm
This commit is contained in:
DecaTec
2022-06-01 12:42:35 +02:00
committed by GitHub
parent 0f182c2b15
commit 3e7b106482
2 changed files with 7 additions and 5 deletions

View File

@@ -443,7 +443,8 @@ def media_file_info(input_file):
input_file,
]
stdout = run_command(cmd).get("out")
stream_size = sum([int(line) for line in stdout.split("\n") if line != ""])
# ffprobe appends a pipe at the end of the output, thus we have to remove it
stream_size = sum([int(line.replace("|", "")) for line in stdout.split("\n") if line != ""])
audio_bitrate = round((stream_size * 8 / 1024.0) / audio_duration, 2)
ret.update(