open_movie

Plotter.open_movie(filename, framerate=24, quality=5, **kwargs)

Establish a connection to the ffmpeg writer.

Parameters
filenamestr

Filename of the movie to open. Filename should end in mp4, but other filetypes may be supported. See imagio.get_writer.

framerateint, optional

Frames per second.

qualityint, optional

Quality 10 is the top possible quality for any codec. The range is 0 - 10. Higher quality leads to a larger file.

**kwargsdict, optional

See the documentation for imageio.get_writer for additional kwargs.

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)