Commit 51c39c9a authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Added max_muxing_queue_size to ffmpeg check command | refs #34039

parent feb4bde9
......@@ -105,12 +105,12 @@ class MediaChecker:
os.makedirs(logs_dir, exist_ok=True)
deep_log = os.path.join(logs_dir, deep_log)
if self.options.max_duration:
cmd = f'ffmpeg -v error -i "{path}" -t {self.options.max_duration} -f null - >"{deep_log}" 2>&1'
cmd = f'ffmpeg -v error -i "{path}" -max_muxing_queue_size 4096 -t {self.options.max_duration} -f null - >"{deep_log}" 2>&1'
else:
cmd = f'ffmpeg -v error -i "{path}" -f null - >"{deep_log}" 2>&1'
cmd = f'ffmpeg -v error -i "{path}" -max_muxing_queue_size 4096 -f null - >"{deep_log}" 2>&1'
logging.debug(f'Running {cmd}')
status, output = subprocess.getstatusoutput(cmd)
if os.path.getsize(deep_log) > 0:
if os.path.getsize(deep_log) and os.path.getsize(deep_log) > 0:
logging.error(f'Found decoding errors, media is corrupted, logs in {deep_log}')
return False
elif status != 0:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment