From: Sergey M․ Date: Mon, 22 May 2017 16:40:07 +0000 (+0700) Subject: [downloader/external] Pass -loglevel to ffmpeg downloader (closes #13183) X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=a609e61a90ad8f3b472e2e221f9f75c8408b65f2;p=youtube-dl [downloader/external] Pass -loglevel to ffmpeg downloader (closes #13183) --- diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py index e78169a0d..db018fa89 100644 --- a/youtube_dl/downloader/external.py +++ b/youtube_dl/downloader/external.py @@ -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