8000 Merge pull request #5453 from auneri/patch-1 · matplotlib/matplotlib@57d1343 · GitHub
[go: up one dir, main page]

Skip to content

Commit 57d1343

Browse files
committed
Merge pull request #5453 from auneri/patch-1
FIX: Force frame rate of FFMpegFileWriter input
2 parents 595868a + 018f0e4 commit 57d1343

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
@@ -446,7 +446,8 @@ class FFMpegFileWriter(FileMovieWriter, FFMpegBase):
446446
def _args(self):
447447
# Returns the command line parameters for subprocess to use
448448
# ffmpeg to create a movie using a collection of temp images
449-
< 548C span class=pl-k>return [self.bin_path(), '-i', self._base_temp_name(),
449+
return [self.bin_path(), '-r', str(self.fps),
450+
'-i', self._base_temp_name(),
450451
'-vframes', str(self._frame_counter),
451452
'-r', str(self.fps)] + self.output_args
452453

0 commit comments

Comments
 (0)
0