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

Skip to content

Commit 3f212ce

Browse files
dopplershiftMeeseeksDev[bot]
authored and
MeeseeksDev[bot]
committed
Backport PR #10739: FIX: ffmpeg logging level
1 parent a7747e5 commit 3f212ce

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
@@ -669,8 +669,9 @@ def _args(self):
669669
'-s', '%dx%d' % self.frame_size, '-pix_fmt', self.frame_format,
670670
'-r', str(self.fps)]
671671
# Logging is quieted because subprocess.PIPE has limited buffer size.
672-
673-
if (_log.getEffectiveLevel() < logging.DEBUG):
672+
# If you have a lot of frames in your animation and set logging to
673+
# DEBUG, you will have a buffer overrun.
674+
if (_log.getEffectiveLevel() > logging.DEBUG):
674675
args += ['-loglevel', 'quiet']
675676
args += ['-i', 'pipe:'] + self.output_args
676677
return args

0 commit comments

Comments
 (0)