mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-22 06:17:58 -05:00
Vp9 fixes (#438)
* Fix fo ffprobe appending pipe * Fix media remains pending when only encoding to webm
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user