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

What's New?

Notes on making movies 3/12/2013-


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 [https://www.ffmpeg.org/] 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 Parker MacCready

From Samantha Siedlecki:

From Tom Connolly: