3. ffmpeg: Movies#

ffmpeg Download

ffmpeg can convert image files to a video. Download the program, and add this to your ~/Programs folder.

After creating image files from VMD, use ffmpeg to make the video by:

~/Programs/ffmpeg file.%05d.ppm -b:v 500M output.mp4

file.%05d.ppm - file is the name of your output, %05d is a a 5 digit number left-padded with zeros, and ppm is the file type.

-b:v 500M - Set bitrate to 500 M for better quality

output.mp4 - Video name and filetype

3.1. Convert ppm to png#

~/Programs/ffmpeg -i file.%05d.ppm file.%05d.png

3.2. MOV to MP4#

ffmpeg \
    -i cas9.%05d.ppm \
    -c:v libx264 \
    -crf 25 \
    -vf "scale=1000:1000,format=yuv420p" \
    -b:v 500M \
    -movflags +faststart \
    test.mp4