Skip to content

A feature-rich command-line audio/video downloader

[downloader/external] check for ffmpeg availablity when it used for m3u8 download

remitamine77dea16ac8bb
diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py
index 85cf834c7d..845a63e931 100644
--- a/youtube_dl/downloader/external.py
+++ b/youtube_dl/downloader/external.py
@@ -175,6 +175,9 @@ class FFmpegFD(ExternalFD):
def _call_downloader(self, tmpfilename, info_dict):
url = info_dict['url']
ffpp = FFmpegPostProcessor(downloader=self)
+ if not ffpp.available:
+ self.report_error('m3u8 download detected but ffmpeg or avconv could not be found. Please install one.')
+ return False
ffpp.check_version()
args = [ffpp.executable, '-y']