I found this on another forum I read...so don't ask me what it means cuz i'm just copying it over.
Quote:
Made this console script and don't have the heart in me to charge for it:
Code:
#!/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
Run this in a folder full of .wmv and .mpg and it'll watermark all of them and make files called filename.wmv.jpg
Like this:
http://content.leenks.com/media/temp/
This particular script takes the screenshot at 4secs into the vid but can easily be customized to take user input on that - Also easy to implement into a php script.
You need mplayer installed.
Works with almost all files (depends on your mplayer version and config tho)
Simple!
|