Does anybody know of a php script or can anybody write one that will do this live so the following would happen. Website user uploads video: Code saves original: Code makes a copy and converts to FLV: Code saves. As a bonus a script that can also take a snap shot of the video and save as an image would be great. If anyone can do this or knows of one please reply here, PM me, or add me to msn: .
I think if you installed ffmpeg you would be able to get PHP to send it the right parameters to convert a video. It would be a very simple script but without ffmpeg or some similar software installed on the server I don't think it would be possible to do. If you have ffmpeg on your server the example on this page: http://www.onlamp.com/pub/a/php/2007/05/24/creating-mytube-with-flex-and-php.html will propable do most of what you want. Sky22
Thanks I have been seeing alot about ffmpeg, just it is going on a script for distribution and I won't know who will have it installed or not :-\ I will just use different file types and different video player until flash brings out better video support. Thanks for your reply though.
Yea that's the annoying thing about scripts for distribution. One thing I have seen done with a script like that which you could do was the developer had ffmpeg installed on there server and when a video was uploaded if the users server didn't have ffmpeg then the video was sent to the developers server and converted and sent back. It would fix the problem but I think the bandwidth would be huge so unless you charged people without ffmpeg it wouldn't be worth it. Sky22
I know one software for it. This is Video to Flash Console but it more expensive. You can read about there: http://www.geovid.com/Video_to_Flash_Console/