mirror of
https://github.com/l1ving/youtube-dl
synced 2020-11-18 19:53:54 -08:00
Stops FFmpeg from flooding youtube-dl progress bar with excess information
This commit is contained in:
parent
71ebd35d50
commit
5cab6fccb5
@ -229,10 +229,12 @@ class FFmpegFD(ExternalFD):
|
|||||||
|
|
||||||
args = [ffpp.executable, '-y']
|
args = [ffpp.executable, '-y']
|
||||||
|
|
||||||
for log_level in ('quiet', 'verbose'):
|
if self.params.get('quiet', False):
|
||||||
if self.params.get(log_level, False):
|
args += ['-loglevel', 'quiet']
|
||||||
args += ['-loglevel', log_level]
|
elif self.params.get('verbose', False):
|
||||||
break
|
args += ['-loglevel', 'verbose']
|
||||||
|
else:
|
||||||
|
args += ['-loglevel', 'warning', '-stats']
|
||||||
|
|
||||||
seekable = info_dict.get('_seekable')
|
seekable = info_dict.get('_seekable')
|
||||||
if seekable is not None:
|
if seekable is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user