Hi
I want to convert some image files to animation. But I am having trouble piping the stream of files into the conversion command. Now all my files are named 0.png, 1.png 2.png etc etc. However I cannot simply use a *.png command, as this pulls in files in non numerical order. Now I can pull in files in numerical order with
ls | sort -n
However I want to use the commands on
http://www.pymolwiki.org/index.php/Making_Movies
such as
mencoder -mc 0 -noskip -skiplimit 0 -ovc lavc -lavcopts \
vcodec=mpeg4:vhq:trell:mbd=2:vmax_b_frames=1:v4mv:vb_strategy=0:vlelim=0:vcelim=0:cmp=6:subcmp=6

re cmp=6

redia=3:dia=3:vme=4:vqscale=1 \
mf://*.png -mf type=png:fps=18 -o output.avi
I have no idea how to pipe the output from the ls into the right format such that I can create the image files correctly. How can this be done.
Thanks