projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afdb387
)
[downloader/external] Pass -loglevel to ffmpeg downloader (closes #13183)
author
Sergey M․
<dstftw@gmail.com>
Mon, 22 May 2017 16:40:07 +0000
(23:40 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 22 May 2017 16:40:07 +0000
(23:40 +0700)
youtube_dl/downloader/external.py
patch
|
blob
|
history
diff --git
a/youtube_dl/downloader/external.py
b/youtube_dl/downloader/external.py
index e78169a0dbeb2ab5613db5a55cb6ad25cd14555a..db018fa89e7b137c55fae08bc78d5b8d1c98f83f 100644
(file)
--- 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