I am looking for a script/software that will accept a video upload from a user. It needs to compress the video, take a snapshot of the video (for a intro image), etc. just like YouTube or other sites. What scripts/software is available out there? Any suggestions or recommendations?
If you want to use a premade script and want to have it for free just search for youtube clnoe scripts you will find some free on google. If you want to code it personally then look into ffmpeg it is a program used on mostly unix servers sometimes you can find a windows server with ffmpeg installed . It is used to encode programs to all formats en resizing etc there are also function you can use to take a snapshot of a certain moment in the video. It works via the command line wich can be issued in php with the 'shell_exec' command . So in youtube you could simple have <?php $inputFile = input.avi; shell_exec("ffmpeg -i ".$inputFile . " output.flv"); unlink($inputFile); ?> Code (markup): Wich will result in the video being encoded to the lightweight format flv and the avi file will be removed.
Thank you very much for your reply molipoli. I will look more into ffmpeg when I am ready to store the video on my own servers - for now, I've found solutions with YouTubes API. Thanks!