Skip to content

Commit

Permalink
Backport PR matplotlib#10739: FIX: ffmpeg logging level
Browse files Browse the repository at this point in the history
  • Loading branch information
dopplershift authored and MeeseeksDev[bot] committed Mar 12, 2018
1 parent a7747e5 commit 3f212ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/matplotlib/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,8 +669,9 @@ def _args(self):
'-s', '%dx%d' % self.frame_size, '-pix_fmt', self.frame_format,
'-r', str(self.fps)]
# Logging is quieted because subprocess.PIPE has limited buffer size.

if (_log.getEffectiveLevel() < logging.DEBUG):
# If you have a lot of frames in your animation and set logging to
# DEBUG, you will have a buffer overrun.
if (_log.getEffectiveLevel() > logging.DEBUG):
args += ['-loglevel', 'quiet']
args += ['-i', 'pipe:'] + self.output_args
return args
Expand Down

0 comments on commit 3f212ce

Please sign in to comment.