Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- How to generate an image preview or a video?
January 27, 2006, 5:22 pm
rate this thread
Hello, I am developping a video log, with a feature that uploads videos to
the server and I'd like to create a feature that generates an image
preview of the first scene of the video. How could I do that using either
PHP, Python, Perl or Ruby?
Desenvolvimento e criação de sites: www.auriance.com
Hospedagem de sites e servidores dedicados: www.auriance.net
Re: How to generate an image preview or a video?
Everything I have seen for creating a "preview" or "thumbnail" of a file
requires significant cpu resources and creates a small picture. All of them
work offline. Your going to have to find an executable that can run on a
web-server that grabs the 1st n seconds of a video, makes it static, shrinks
it and then saves it. You can probably use Php to dynamically index
it/display it afterwards.
I suspect there is a Perl library that might help you handle that but I
don't have any info.