#!/bin/sh NAME=ping100-`date "+%Y-%m-%d"` if [ -e ${NAME}.mp4 ]; then rm ${NAME}.mp4 fi mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4:aspect=8/6:vbitrate=8000000 -vf scale=640:480 -o ${NAME}.avi -mf type=jpeg:fps=0.7 mf://@stills.txt ffmpeg -i ${NAME}.avi ${NAME}.mp4 rm -rf *.avi