Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   PHP (http://www.programmingforums.org/forum29.html)
-   -   Screenshot Of Video (http://www.programmingforums.org/showthread.php?t=11510)

berts-sister-wanda Oct 6th, 2006 10:30 AM

Screenshot Of Video
 
Does anyone know any tools/scripts/external libarires which allow you to capture a single video single as a jpg or gif etc... the same way digg does it with their videos

Infinite Recursion Oct 6th, 2006 10:44 AM

windows movie maker?

berts-sister-wanda Oct 6th, 2006 10:47 AM

automated
 
Looking for a solution which does it when a video is uploaded to my site..
Related question anyone have any knowledge of automated compression codecs....

pufuwozu Oct 6th, 2006 10:57 AM

Quote:

Originally Posted by berts-sister-wanda (Post 115947)
Does anyone know any tools/scripts/external libarires which allow you to capture a single video single as a jpg or gif etc... the same way digg does it with their videos

Digg doesn't do it. Youtube and Google Video make thumbnails for all of their movies and Digg just copies them.

matthewvb Oct 7th, 2006 3:09 PM

I'd look into snagit (http://www.techsmith.com/snagit.asp) which is meant to capture screen shots.

Sane Oct 7th, 2006 3:16 PM

That isn't at all what the original poster wants. Jesus. XD

He wants a PHP function that can automatically convert a frame from inside a video in to a still image, inside the PHP script itself. It would be useful, if for example, a user submitted a video.

Then a thumbnail could be automatically generated by the same PHP script that recieved the upload from the user, and saved to the server. In the same manner Google Videos and You Tube does it...

That is what you want right? If I understand correctly? I'm not sure how you would do this in PHP. You should search the manual: http://php.net/ You might need to enable some external library for PHP...

Edit : I think the way YouTube does it, is after having the video uploaded, there is an executable programmed in some language (doesn't matter what), that's basically a server-side robot. This robot walks the storage locations for the videos and creates images for each video it finds.

In order to do this, you would have to have complete control of the server, in order to run a server-side executable. This is my educated guess, based on the premise of how I've noticed the thumbnail for a video takes a random time to get generated after it has been uploaded.

The reason for this robot would be because PHP doesn't have the capabilities to do this automatically. But other languages, C++ for instance, probably have support for it.

If you don't feel like programming a "robot", persay, you could program a single tasked executable, and see if you can call it from a PHP "startfile" function, if such exists. I hope this helps... and good luck!

a thing Oct 8th, 2006 4:03 PM

Wouldn't it make more sense to have PHP run another executable when the file's uploaded, instead of randomly crawling the site?

Sane Oct 8th, 2006 4:23 PM

Quote:

Originally Posted by a thing (Post 116049)
Wouldn't it make more sense to have PHP run another executable when the file's uploaded, instead of randomly crawling the site?

Quote:

Originally Posted by Sane (Post 116005)
If you don't feel like programming a "robot", persay, you could program a single tasked executable, and see if you can call it from a PHP "startfile" function, if such exists.

Mmhmm...


All times are GMT -5. The time now is 1:11 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC