University of Washington | College of the Environment | School of Oceanography | Physical Oceanography

What's New?

Notes on making movies

6/30/2016 PM:

The new distribution of Processing has a tool that allows you to make QuickTime movies from a folder of PNG's.  The results looked as good as what I get from using "Open Image Sequence" in QuickTime 7.

How to make an animated gif (6/11/2016 PM)

From JPaul Rinheimer, February 2015

This is the command I use to convert a series of images into movies: ffmpeg on the command line. ffmpeg [] is a general-purpose, open source audio/video conversion library and is available on Linux, OSX (via Homebrew and natively) and Windows. It has way too many options, however, so it took me a while to get it to work properly. Here's the one-liner I use to create movies from ffmpeg:

ffmpeg -f image2 -r 10 -i im_%05d.png -c:v libx264 -pix_fmt yuv420p test.mp4

I haven't used this in awhile, but I remember the quality was the same as the input files and it worked on all systems (I think...).

Jim Bennett notes: Indeed, I use ffmpeg on my Mac all the time (and pretty much that command line) and it is very good. One piece of ffmpeg lore I discovered painfully (and actually not sure it still applies): Make sure your figures have an even number of pixels for height and width. I ensure that using the dpi=<even number> parameter to matplotlib.figure().

From Shih-Nan Chen

From Samantha Siedlecki:

From Tom Connolly: