Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 57d1343

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

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎lib/matplotlib/animation.py

Copy file name to clipboardExpand all lines: lib/matplotlib/animation.py
+2-1Lines 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-
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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.