File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -634,9 +634,15 @@ class FFMpegFileWriter(FFMpegBase, FileMovieWriter):
634634 def _args (self ):
635635 # Returns the command line parameters for subprocess to use
636636 # ffmpeg to create a movie using a collection of temp images
637- return [self .bin_path (), '-r' , str (self .fps ),
637+ args = [self .bin_path (), '-r' , str (self .fps ),
638638 '-i' , self ._base_temp_name (),
639- '-vframes' , str (self ._frame_counter )] + self .output_args
639+ '-vframes' , str (self ._frame_counter )]
640+ # Logging is quieted because subprocess.PIPE has limited buffer size.
641+ # If you have a lot of frames in your animation and set logging to
642+ # DEBUG, you will have a buffer overrun.
643+ if _log .getEffectiveLevel () > logging .DEBUG :
644+ args += ['-loglevel' , 'error' ]
645+ return [* args , * self .output_args ]
640646
641647
642648# Base class of avconv information. AVConv has identical arguments to FFMpeg.
You can’t perform that action at this time.
0 commit comments