GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   7 line perl script to make thumbs for movies (https://gfy.com/showthread.php?t=612029)

fris 05-20-2006 04:56 AM

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.

woj 05-20-2006 04:58 AM

not bad, except you need mplayer installed, which has shitload of dependencies..

fris 05-20-2006 05:00 AM

Quote:

Originally Posted by woj
not bad, except you need mplayer installed, which has shitload of dependencies..

ya only took under a min to install using the ports

Violetta 05-20-2006 05:42 AM

neat!! :)

Tempest 05-20-2006 05:56 AM

Cool script.. it's not perl though..

martinsc 05-20-2006 06:24 AM

nice one :thumbsup

fris 05-20-2006 06:36 AM

Quote:

Originally Posted by Tempest
Cool script.. it's not perl though..

oops bash script :p


All times are GMT -7. The time now is 05:48 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123