Wowza picture video script

This script will generate a movie for wowza based on the picture "1.jpg" located in the same folder as the script. The script takes one argument describing the desired length of the video in seconds. The output video will be called test.mov.

for i in `seq 2 $1`;
do
        cp 1.jpg $i.jpg
done
mencoder "mf://*.jpg" -mf fps=1 -o test.avi -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=800 
ffmpeg -i test.avi test.mov