From e13945a2fe34bbec5581b02a7f1dc308bad6f3e7 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Wed, 27 Apr 2022 05:36:06 +0530 Subject: [PATCH] [ffmpeg] Fix features detection --- yt_dlp/postprocessor/ffmpeg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yt_dlp/postprocessor/ffmpeg.py b/yt_dlp/postprocessor/ffmpeg.py index 500fc1950..bb7a630c6 100644 --- a/yt_dlp/postprocessor/ffmpeg.py +++ b/yt_dlp/postprocessor/ffmpeg.py @@ -146,7 +146,8 @@ class FFmpegPostProcessor(PostProcessor): self._paths[basename] = location self._versions = {} - executables = {'basename': ('ffmpeg', 'avconv'), 'probe_basename': ('ffprobe', 'avprobe')} + # NB: probe must be first for _features to be poulated correctly + executables = {'probe_basename': ('ffprobe', 'avprobe'), 'basename': ('ffmpeg', 'avconv')} if prefer_ffmpeg is False: executables = {k: v[::-1] for k, v in executables.items()} for var, prefs in executables.items():