Saturday, October 16, 2010

How to convert a series of photos into a video

Actually rather simple:

  • Rename the pictures to have consecutive filenames. I used muCommander, sorted by date, and used the batch rename tool.
  • Turn them in the right position, scale them and place them on a black background:

    mogrify -background black -auto-orient -resize "960x720>" -extent "960x720" -gravity center -format PNG *.jpg

  • Convert the pictures into a video:

    mencoder "mf://*.PNG" -mf fps=9.2 -ovc lavc -lavcopts vcodec=mjpeg:vhq:vqscale=2 -oac copy -audiofile Breakeven.mp3 -o movie.avi

  • Profit!

The final result:

1 comment:

  1. Very cool - I mean the video! :-)
    The description is still to complicated for non-techies... ;-)