Hi.
On Sat, Jul 15, 2006 at 09:19:12AM -0700, Raman Agarwal wrote: > Hi, > > i have a small question. > > i need to present my work in a lecture and therefore wish to make movies of > various simulations that i have done in my lab. I have saved the frames as > .pnm files, but dont know how to convert these sequential frames in .avi or > .mpeg formats. > > since I am new to linux i have little idea how to go about it. You can make a video of your pictures very easily using mencoder (two-pass method): mencoder mf://*.jpg -mf type=jpg:fps=25 -ovc lavc -ffourcc XVID -lavcopts vcodec=mpeg4:vhq:vqscale=4:trell:mbd=2:vmax_b_frames=1:v4mv:subq=8:vb_strategy=0:vlelim=0:vcelim=0:cmp=2:subcmp=2:precmp=2:predia=1:dia=1:vme=4:vpass=1:psnr -of avi -o /dev/null mencoder mf://*.jpg -mf type=jpg:fps=25 -ovc lavc -ffourcc XVID -lavcopts vcodec=mpeg4:vhq:vqscale=4:trell:mbd=2:vmax_b_frames=1:v4mv:subq=8:vb_strategy=0:vlelim=0:vcelim=0:cmp=2:subcmp=2:precmp=2:predia=1:dia=1:vme=4:vpass=2:psnr -of avi -o output.avi FPS is Frames per second. I'm overriding the fourcc to be XVID because the default is not correctly recognized by all players (specially in Windows). The jpegs should have a good quality, and the colorspace should be RGB Easy way to convert your images using Imagemagick: for i in `find . -name "*.pnm"` ; do convert $i -type truecolor -quality 100 rgb/`basename $i .pnm`.jpg ; done Let us know how it works out. Greetings, Alexis. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Playerstage-gazebo mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
