File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -634,9 +634,15 @@ class FFMpegFileWriter(FFMpegBase, FileMovieWriter):
634
634
def _args (self ):
635
635
# Returns the command line parameters for subprocess to use
636
636
# 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 ),
638
638
'-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 ]
640
646
641
647
642
648
# Base class of avconv information. AVConv has identical arguments to FFMpeg.
You can’t perform that action at this time.
0 commit comments