1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-09 22:57:16 +08:00

Stops FFmpeg from flooding youtube-dl progress with excess download info

This commit is contained in:
Forthrin 2019-04-06 13:16:49 +02:00
parent 9f182c23ba
commit 8a9d889fae

View File

@ -229,10 +229,12 @@ 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
if self.params.get('quiet', False):
args += ['-loglevel', 'quiet']
elif self.params.get('verbose', False):
args += ['-loglevel', 'verbose']
else:
args += ['-loglevel', 'warning', '-stats']
seekable = info_dict.get('_seekable')
if seekable is not None: