Tips and tricks for Linux
mencoder mf://*.jpg -mf fps=25:type=jpeg -ovc lavc -o sequence_dimage.avi
now encode it in reverse :
ls -r *.jpg >> filelist.txt; mencoder "mf://@filelist.txt"
-mf fps=25:type=jpeg -ovc lavc -o reverse.avi
-mf fps=25:type=jpeg