aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-05-22 23:40:07 +0700
committerSergey M․ <dstftw@gmail.com>2017-05-22 23:40:07 +0700
commita609e61a90ad8f3b472e2e221f9f75c8408b65f2 (patch)
treefa841991f95d6f62fb5c90dff4757e647fe05b62
parentafdb387cd8f9f54ee666cf1f64416d877f4eba19 (diff)
[downloader/external] Pass -loglevel to ffmpeg downloader (closes #13183)
-rw-r--r--youtube_dl/downloader/external.py5
1 files changed, 5 insertions, 0 deletions
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