Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

How does Google do it?

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch
Impact
19
Hey
I have seen it in action at Google video, YouTube and alot of other websiteS: I am talking about the ability to Generate Screenshots of the video using PHP.
I am opening a Video site...nothing like youtube or google video...its a humour video section and i dont want to have to take the screenshot of every video and post it manually..i was wondering if there is a tutorial or guide on that...
Thanks :)
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
I'm sure that the script calls an external program to do that.
 
0
Close
yes there is no way for php to do this itself.

They will be using php/asp or whatever to call to an external script that takes a screen grab of the video. The same is done by the likes of alexa and google when they show a screen shot of a webpage.
 
0
Close
oh okay..that sux :( i thought it could be done using PHP
 
0
Close
what abt YouTube Clones..anyone using that script and know how its doing it???
 
0
Close
there is a php script that i have seen before that can extract iondividual frames form mpeg movies, i can't remember the URL but i tihnk it is called mpeg2php, or something along those lines, i think that would do what you are looking for
 
0
Close
Google Video and YouTube both make use of the flash video format...not mpeg. There might be a simple way to do this given that piece of info.
 
0
Close
i've just written a script myself that does that (make thumbnails of movies) the only way i could find to do it, was to use one of the programs on the os to generate the thumbnail. but on any system with safemode enabled that'd be out of the question, but yourtube and google video wouldn't be worring about that thou ..
 
0
Close
Hm i think this is what does it :
http://ffmpeg-php.sourceforge.net/
i saw the Youtube clone sale page and thats what it said..and i went to that site and read the stuff there and it looks like its the right tool :D
 
0
Close
it cant be done off php you need an external script to do it, you could get a youtube clone site script and grab the code off it :p
 
0
Close
0
Close
and if you read the requirements unknowngiver you will see that it needs:-

ffmpeg-0.4.9_pre1 (chances are you dont have this and have no permission to install it)
php-4.3.0 (you should have this, at least I hope so)
gd-2.0 (ussually installed)

As you can see it relies on a couple of extensions, gd is ussually on servers but
ffmpeg-0.4.9_pre1 is certainly not. And unless you have root access on a server you will have no way to install it.
 
0
Close
filth@flexiwebhost said:
<SNIP>
As you can see it relies on a couple of extensions, gd is ussually on servers but
ffmpeg-0.4.9_pre1 is certainly not. And unless you have root access on a server you will have no way to install it.

yes totaly agree, i only was able to install it, along with dozens of codec's was because i am the admin of the server the site is on. no way in hell any decent hosting company would give you access to stuff like that - if they did - wouldn't expect them to be around for to long....
 
0
Close
you can alwayz request them to install it...or look for a host that has it installed
 
0
Close
Googles amazing thats all i can say.
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back