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

Read ffprobe path from environment

parent 54f6eca7
Pipeline #43467 passed with stage
in 6 seconds
......@@ -44,7 +44,8 @@ def _decode(o):
def run_ffprobe(options, silent=False):
cmd = f"ffprobe -v quiet -print_format json {options}"
ffprobe_path = os.environ.get('FFPROBE_PATH') or 'ffprobe'
cmd = f"{ffprobe_path} -v quiet -print_format json {options}"
status, output = subprocess.getstatusoutput(cmd)
if status != 0:
Markdown is supported
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