open_movie#
- Plotter.open_movie(filename, framerate=24, quality=5, **kwargs)#
Establish a connection to the ffmpeg writer.
- Parameters
- filename
str
Filename of the movie to open. Filename should end in mp4, but other filetypes may be supported. See
imagio.get_writer
.- framerate
int
,optional
Frames per second.
- quality
int
,optional
Quality 10 is the top possible quality for any codec. The range is
0 - 10
. Higher quality leads to a larger file.- **kwargs
dict
,optional
See the documentation for
imageio.get_writer
for additional kwargs.
- filename
Notes
See the documentation for imageio.get_writer
Examples
Open a MP4 movie and set the quality to maximum.
>>> import pyvista >>> pl = pyvista.Plotter >>> pl.open_movie('movie.mp4', quality=10)