#!/bin/sh AFILES=stills.txt NAME=2.4_5.0-`date "+%Y-%m-%d"` for file in *.png do convert -resize 760x400 $file $file.jpg done if [ -e ${NAME}.mp4 ]; then rm ${NAME}.mp4 fi if [ ! -e $AFILES ]; then ls *.jpg | sort -n >$AFILES ls *.jpg | sort -n | tail -n1 >>$AFILES fi mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4:aspect=760/400:vbitrate=8000000 -vf scale=760:400 -o ${NAME}.avi -mf type=jpeg:fps=0.5 mf://@$AFILES ffmpeg -i ${NAME}.avi ${NAME}.mp4 rm ${NAME}.avi