# PetscDrawSetSaveMovie
Saves a movie produced from a `PetscDraw` into a file 
## Synopsis
```
#include "petscdraw.h" 
PetscErrorCode PetscDrawSetSaveMovie(PetscDraw draw, const char movieext[])
```
Collective on draw


## Input Parameters

- ***draw      -*** the graphics context
- ***movieext  -*** optional extension defining the movie format



## Options Database Key

- ***-draw_save_movie <.ext> -*** saves a movie with extension .ext





## Note
You should call this AFTER calling `PetscDrawSetSave()` and BEFORE creating your image with `PetscDrawSave()`.
The ffmpeg utility must be in your path to make the movie.


## See Also
 `PetscDraw`, `PetscDrawSetSave()`, `PetscDrawSetFromOptions()`, `PetscDrawCreate()`, `PetscDrawDestroy()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/interface/dsave.c.html#PetscDrawSetSaveMovie">src/sys/classes/draw/interface/dsave.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/draw/interface/dsave.c)


[Index of all Draw routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
