View Single Post
Old 05-20-2006, 04:56 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
7 line perl script to make thumbs for movies

got to thank the owner of www.leenks.com for this handy script

thought i would share

#!/usr/local/bin/bash
for i in *.mpg *.wmv
do
mplayer -ss 00:00:04 -quiet -frames 2 -vo jpeg -ao null "$i"
rm 00000001.jpg
mv 00000002.jpg "$i.jpg"
done

seeks in 4 seconds, put the videos in a temp dir and run the file.

remember to have mplayer compiled.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote