Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8bc52ad

Browse files
authored
Merge pull request #10739 from jklymak/fix-ffmpeg-log-level
FIX: ffmpeg logging level
2 parents e99bee8 + a408aff commit 8bc52ad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/animation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,8 +667,9 @@ def _args(self):
667667
'-s', '%dx%d' % self.frame_size, '-pix_fmt', self.frame_format,
668668
'-r', str(self.fps)]
669669
# Logging is quieted because subprocess.PIPE has limited buffer size.
670-
671-
if (_log.getEffectiveLevel() < logging.DEBUG):
670+
# If you have a lot of frames in your animation and set logging to
671+
# DEBUG, you will have a buffer overrun.
672+
if (_log.getEffectiveLevel() > logging.DEBUG):
672673
args += ['-loglevel', 'quiet']
673674
args += ['-i', 'pipe:'] + self.output_args
674675
return args

0 commit comments

Comments
 (0)