mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-24 01:04:18 +01:00
fix: replaced pipe with empty string on helper function
This commit is contained in:
parent
8cc3513a8a
commit
ef4067cbdd
@ -367,7 +367,7 @@ 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 != ""])
|
||||
stream_size = sum([int(line.replace("|", "")) for line in stdout.split("\n") if line != ""])
|
||||
video_bitrate = round((stream_size * 8 / 1024.0) / video_duration, 2)
|
||||
|
||||
if "r_frame_rate" in video_info.keys():
|
||||
|
Loading…
Reference in New Issue
Block a user