Create a stop motion video with ffmpeg
Aus Markus' Wiki
Here is the command:
ffmpeg -qscale 5 -r 4 -b 9600 -i camera/bild_%04d.jpg camera/filmchen.mp4
Source:
http://raspberrypiguide.de/howtos/raspberry-pi-camera-how-to/