]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[downloader/external] Pass -loglevel to ffmpeg downloader (closes #13183)
authorSergey M․ <dstftw@gmail.com>
Mon, 22 May 2017 16:40:07 +0000 (23:40 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 22 May 2017 16:40:07 +0000 (23:40 +0700)
youtube_dl/downloader/external.py

index e78169a0dbeb2ab5613db5a55cb6ad25cd14555a..db018fa89e7b137c55fae08bc78d5b8d1c98f83f 100644 (file)
@@ -212,6 +212,11 @@ class FFmpegFD(ExternalFD):
 
         args = [ffpp.executable, '-y']
 
+        for log_level in ('quiet', 'verbose'):
+            if self.params.get(log_level, False):
+                args += ['-loglevel', log_level]
+                break
+
         seekable = info_dict.get('_seekable')
         if seekable is not None:
             # setting -seekable prevents ffmpeg from guessing if the server