mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-29 15:20:47 +00:00
Log a better error message if ffprobe or avconv are not found (related #1134)
This commit is contained in:
parent
bbcbf4d459
commit
4aa16a50f5
1 changed files with 2 additions and 1 deletions
|
@ -100,7 +100,8 @@ def __init__(self, downloader=None, preferredcodec=None, preferredquality=None,
|
|||
self._nopostoverwrites = nopostoverwrites
|
||||
|
||||
def get_audio_codec(self, path):
|
||||
if not self._exes['ffprobe'] and not self._exes['avprobe']: return None
|
||||
if not self._exes['ffprobe'] and not self._exes['avprobe']:
|
||||
raise PostProcessingError(u'ffprobe or avprobe not found. Please install one.')
|
||||
try:
|
||||
cmd = [self._exes['avprobe'] or self._exes['ffprobe'], '-show_streams', encodeFilename(self._ffmpeg_filename_argument(path))]
|
||||
handle = subprocess.Popen(cmd, stderr=compat_subprocess_get_DEVNULL(), stdout=subprocess.PIPE)
|
||||
|
|
Loading…
Reference in a new issue