On Wednesday 26 April 2006 18:26, Charles Myers wrote: > I'm trying to create screenshots (every so many frames) of some .avi's I > have. But it seems to be converting every frame to a .jpg > > Has anyone tried this before.. > > This is the command I have been trying... > > mplayer -vo jpeg quality=50 -frames 1000 -ao null homevideo1.avi > > > No matter what i set the -frames to it seems to do every frame.. :/ According to the man page for mplayer, that is what the jpeg output does. Also -frames merely sets the total number of frames to decode.
The option you are looking for is -sstep, which is the number of seconds to skip between frames. So, mplayer -vo jpeg quality=50 -frames 5 -sstep 60 -ao null homevideo1.avi will give you 5 jpegs, 60 seconds apart. Mplayer does have a screenshot video filter which you can use to take screenshots as you are viewing the movie. I have vf-add=screenshot in my ~/.mplayer/config file which binds the s key to take a screenshot. Cheers, Malcolm V. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
