]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[downloader/external] check for ffmpeg availablity when it used for m3u8 download
authorremitamine <remitamine@gmail.com>
Sun, 13 Mar 2016 19:30:23 +0000 (20:30 +0100)
committerremitamine <remitamine@gmail.com>
Sun, 13 Mar 2016 19:34:51 +0000 (20:34 +0100)
youtube_dl/downloader/external.py

index 85cf834c7d69a873141a8ab1ea6299742bd0185f..845a63e931e5f7a6c57e6c19812f156665f460ab 100644 (file)
@@ -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']