Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

DOC: Add constructor parameter documentation to FFMpegFileWriter#30222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
nrnavaneet wants to merge1 commit intomatplotlib:main
base:main
Choose a base branch
Loading
fromnrnavaneet:fix-ffmpeg-doc
Open
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletionslib/matplotlib/animation.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -611,6 +611,23 @@ class FFMpegFileWriter(FFMpegBase, FileMovieWriter):
This effectively works as a slideshow input to ffmpeg with the fps passed as
``-framerate``, so see also `their notes on frame rates`_ for further details.

Parameters
----------
fps : int, default: 5
Movie frame rate (frames per second).
codec : str or None, default: :rc:`animation.codec`
The codec to use for video compression.
bitrate : int, default: :rc:`animation.bitrate`
The bitrate of the movie, in kilobits per second. Higher values mean
better quality at the cost of file size. A value of -1 lets ffmpeg choose.
extra_args : list of str or None, optional
Additional command-line arguments passed to ffmpeg.
If None, uses :rc:`animation.ffmpeg_args`.
metadata : dict of str, default: {}
Metadata to embed in the output file. Possible keys include:
'title', 'artist', 'genre', 'subject', 'copyright',
'srcform', and 'comment'.

.. _their notes on frame rates: https://trac.ffmpeg.org/wiki/Slideshow#Framerates
"""
supported_formats = ['png', 'jpeg', 'tiff', 'raw', 'rgba']
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp