mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-10 06:37:17 +08:00
Stops FFmpeg from flooding youtube-dl progress with excess download info
This commit is contained in:
parent
9f182c23ba
commit
8a9d889fae
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user