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

Skip to content

Commit c0c65e3

Browse files
tacaswellefiring
authored andcommitted
Merge pull request #5453 from auneri/patch-1
FIX: Force frame rate of FFMpegFileWriter input
1 parent 1d8435a commit c0c65e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/animation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,8 @@ class FFMpegFileWriter(FileMovieWriter, FFMpegBase):
466466
def _args(self):
467467
# Returns the command line parameters for subprocess to use
468468
# ffmpeg to create a movie using a collection of temp images
469-
return [self.bin_path(), '-i', self._base_temp_name(),
469+
return [self.bin_path(), '-r', str(self.fps),
470+
'-i', self._base_temp_name(),
470471
'-vframes', str(self._frame_counter),
471472
'-r', str(self.fps)] + self.output_args
472473

0 commit comments

Comments
 (0)