# Making a Gif Movie of Simulation

**URL:** <https://gromacs.bioexcel.eu/t/making-a-gif-movie-of-simulation/10418>\
**Category:** User discussions\
**Created:** [October 25, 2024, 9:11pm UTC](https://gromacs.bioexcel.eu/t/making-a-gif-movie-of-simulation/10418 "2024-10-25T21:11:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cthangav](https://avatars.discourse-cdn.com/v4/letter/c/7ba0ec/32.png) [@Cthangav](https://gromacs.bioexcel.eu/u/Cthangav)\
**Post date:** [October 25, 2024, 9:11pm UTC](https://gromacs.bioexcel.eu/t/making-a-gif-movie-of-simulation/10418/1 "2024-10-25T21:11:52Z")

</div>

GROMACS version:  
GROMACS modification: Yes/No  
Hello I’m a beginner trying to save a video of a simulation using an xtc and gro topology file.  
This successfully generates a video in my jupyter notebook:

> import nglview as ng  
> import mdtraj as md  
> traj = md.load(“hvrwt\_pub.xtc”, top=“hvrwt\_pub.gro”)  
> view = ng.show\_mdtraj(traj)  
> view

However when I try to save the video I get a progress bar showing it is rendering, then an error I can’t fully see. (I made it short for testing purposes)

> !pip install moviepy==0.2.2.11  
> !pip install imageio==1.6  
> from nglview.contrib.movie import MovieMaker  
> download\_folder = ‘/home/thangavelucs/MD\_Intro\_Tutorial/md-intro-tutorial-main/HVR’  
> output = ‘hvrwt\_movie.gif’  
> mov = MovieMaker(view, download\_folder=download\_folder, output=output, start=0, stop=5, step=1)  
> mov.make()

After rednering completes, this is the output error:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/2X/9/9a9fc14087a3f7fd0e9e5c1376141cf17363bb5c.png)

Do you have an working code/tips for saving videos?
