Plotter.open_movie#
- Plotter.open_movie( ) None[source]#
Establish a connection to the ffmpeg writer.
Requires
imageioto be installed.- Parameters:
- filename
str|Path Filename of the movie to open. Filename should end in mp4, but other filetypes may be supported. See
imageio.get_writer().- framerate
int, default: 24 Frames per second.
- quality
int, default: 5 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#
Download Python source code | Download Jupyter notebook
Open a MP4 movie and set the quality to maximum.
>>> import pyvista as pv
>>> pl = pv.Plotter()
>>> pl.open_movie('movie.mp4', quality=10)