[MPlayer-users] Commands to capture frame X from all videos in a folder ?

Razvan Cosma razvan.cosma at pronetis.ro
Tue Mar 20 08:35:36 CET 2007


B James wrote:
> I am new to mplayer and looking for a way to batch process a folder of
> video
> files and save a screen capture from each.   I have a variety of mpg,
> avi,
> wmv, and  mov files.
>
This could be achieved with bash:
for i in `ls -A1` ; do mplayer -vo png:z=3 -frames 1 -ss 00:10 $i ; mv
00000001.png $i.png ; done

You'll get the frame at 10 seconds into the movie in file1.mpg.png,
file2.wmv.png etcetc





More information about the MPlayer-users mailing list