0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-22 06:00:00 +00:00

[downloader/external] Pass -loglevel to ffmpeg downloader (closes #13183)

This commit is contained in:
Sergey M․ 2017-05-22 23:40:07 +07:00
parent afdb387cd8
commit a609e61a90
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -212,6 +212,11 @@ def _call_downloader(self, tmpfilename, info_dict):
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