Skip to content

Commit

Permalink
Merge pull request #5453 from auneri/patch-1
Browse files Browse the repository at this point in the history
FIX: Force frame rate of FFMpegFileWriter input
  • Loading branch information
tacaswell committed Nov 11, 2015
2 parents 595868a + 018f0e4 commit 57d1343
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/matplotlib/animation.py
Expand Up @@ -446,7 +446,8 @@ class FFMpegFileWriter(FileMovieWriter, FFMpegBase):
def _args(self):
# Returns the command line parameters for subprocess to use
# ffmpeg to create a movie using a collection of temp images
return [self.bin_path(), '-i', self._base_temp_name(),
return [self.bin_path(), '-r', str(self.fps),
'-i', self._base_temp_name(),
'-vframes', str(self._frame_counter),
'-r', str(self.fps)] + self.output_args

Expand Down

0 comments on commit 57d1343

Please sign in to comment.