Given a trajectory with maybe hundreds of frame, we can render each frame and then use a movie encoder to combine all frames into a movie. VMD has facilities to render and directly pass all the images to a movie encoder of your choice — here we use the free FFmpeg encoder.
Install ffmpeg
from https://ffmpeg.org
Try installing with your package manager, e.g., on Ubuntu and Debian:
sudo aptitude install ffmpeg
or get static build from https://www.ffmpeg.org/download.html and
install it in your ~/bin
directory. Then make sure that ffmpeg
is found on your PATH
:
echo "export PATH=$HOME/bin:$PATH" >> ~/.profile
(You might have to log out and log in for this to have full effect later on.)
Get the dmg installer package from
https://www.ffmpeg.org/download.html and make sure that ffmpeg
can
be found on your PATH
.
Get the installer package from https://www.ffmpeg.org/download.html
— make sure you know where the ffmpeg.exe
ended up.
We use the standard VMD plugin MovieMaker.
~/USERNAME/movies
(so that you can easily find the finished movie)adk_transition
.ffmpeg
.In order to rotate and zoom a movie during a trajectory we can use the VMD ViewChangeRender plugin together with MovieMaker.
Open ViewChangeRender: .
Generate “viewpoints” of your movie:
Add all viewpoints to movie: The final movie will smoothly interpolate between these points. You can check with Preview Movie. (Note that this plugin has a few bugs so you might have to quit and restart when it stops working.)
Once you are ready to render the movie: