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

Skip to content

Commit 2b17953

Browse files
committed
Let ffmpeg report errors.
at -loglevel errors, one gets for example the error messages for non-existent directories ("/foo/bar/baz.mp4: no such file or directory"), which get then picked up by Matplotlib's logging.
1 parent 910f9fd commit 2b17953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/animation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ def _args(self):
625625
# If you have a lot of frames in your animation and set logging to
626626
# DEBUG, you will have a buffer overrun.
627627
if _log.getEffectiveLevel() > logging.DEBUG:
628-
args += ['-loglevel', 'quiet']
628+
args += ['-loglevel', 'error']
629629
args += ['-i', 'pipe:'] + self.output_args
630630
return args
631631

0 commit comments

Comments
 (0)