possible to generate a thumbnail of an mpg with GD?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

possible to generate a thumbnail of an mpg with GD?

Post by Burrito »

I would like to be able to whip up a script that scan my folder for files and then generate thumbs for images and (if possible) mpegs.

I'd like to just capture like the tenth frame or so and then throw that into a thumb for a hyperlink to the "full" movie.

anyone?

thx,

Burrito
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Hm... under windows or linux? There some dos apps you may be able to passthru() to get the frame as an image... then the rest is obvious (i guess) ;-)
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

awesome Tim, that looks very promising...do you know if it will work with RM?

I didn't see it on the site, but in all honesty, I didn't look that hard.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

can't speak from experience, haven't had the chance to experiment with it yet...

but http://ffmpeg.sourceforge.net/ffmpeg-doc.html#SEC16 seems to mention real audio and video....
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

ok, another question:

will this work with windows? It says something about building into the php binary and then goes on about some other stuff that looks *nixesque to me.

because I'm a total we Todd with *nix it's all greek to me.

if it did work with windows, I'd think it would have a .dll no?

if it's not painfully obvious, I need something that will work with windows...
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

guess this thread flatlined...I'm bringin' back to life!

any ideas on the windows thingy?
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

could give it a whirl to find out
Post Reply