How to do it...

This script will accept a list of images and will create an MPEG video file from it:

$ cat stills2mpg.sh
echo $* | tr ' ' '\n' >files.txt
mencoder mf://@files.txt -mf fps=24 -ovc lavc \
-lavcopts vcodec=msmpeg4v2 -noskip -o movie.mpg

To use this script, copy/paste the commands into a file named stills2mpg.sh, make it executable and invoke it as follows:

./stills2mpg.sh file1.jpg file2.jpg file3.jpg ...

Alternatively, use this to invoke it:

./stills2mpg.sh *.jpg