[ffmpeg] Fix features detection

This commit is contained in:
pukkandan 2022-04-27 05:36:06 +05:30
parent ca04e1bf49
commit e13945a2fe
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39

View file

@ -146,7 +146,8 @@ def get_ffmpeg_version(path, prog):
self._paths[basename] = location self._paths[basename] = location
self._versions = {} 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: if prefer_ffmpeg is False:
executables = {k: v[::-1] for k, v in executables.items()} executables = {k: v[::-1] for k, v in executables.items()}
for var, prefs in executables.items(): for var, prefs in executables.items():