Sunday, December 23, 2007

Creating stopmotion movies with ffmpeg

Based on this page, I've just been able to successfully convert a bunch of photos to a MPEG4 movie:
c=0; for i in *.jpg; do mv "$i" "`printf %05d $c`.jpg"; c=$((c+1));done
for i in *.jpg; do convert "$i" -resize 600x600 -normalize "$i"; done
ffmpeg -r 5 -b 1800 -i %05d.jpg output.mp4
These are the settings for a bitrate of 1800 and 5 fps and the larger side of the images being scaled down to 600 pixels.

No comments: