sureshrhce Posted February 22, 2008 Share Posted February 22, 2008 Hi, i am a php programmer,I want to paly the video in my php site.I used the html object to play the video.But the user can upload any formated video(like .avi,mpeg,wmv).so for compatability i want to convert this formated video into .flv format(flash format) when they uploading. Does anyone know how to conert the vdieo using php script. i already read documents to convert the videos to flv using FFMPEGAV codec installed in the server, since i am using a shared server i cant install the codec there so i need a standalone PHP script to convert the video files to flv file while its uploading like youtube or google videos. Note: i dont need any softwares to convert videos, since i am unable to install software in my server thank u. my mail id is : [email protected] Quote Link to comment https://forums.phpfreaks.com/topic/92375-php-script-to-convert-any-type-of-video-to-flv-while-uploading-the-file-to-mysql/ Share on other sites More sharing options...
drisate Posted February 22, 2008 Share Posted February 22, 2008 I dont beleave that exists yet ... you should download the codec and see if you can build one out of it Quote Link to comment https://forums.phpfreaks.com/topic/92375-php-script-to-convert-any-type-of-video-to-flv-while-uploading-the-file-to-mysql/#findComment-473279 Share on other sites More sharing options...
mem0ri Posted February 22, 2008 Share Posted February 22, 2008 And if you do build one out of it...share...please :-) Quote Link to comment https://forums.phpfreaks.com/topic/92375-php-script-to-convert-any-type-of-video-to-flv-while-uploading-the-file-to-mysql/#findComment-473285 Share on other sites More sharing options...
deansatch Posted February 22, 2008 Share Posted February 22, 2008 find or write your own flash media player that plays all those types of files. Quote Link to comment https://forums.phpfreaks.com/topic/92375-php-script-to-convert-any-type-of-video-to-flv-while-uploading-the-file-to-mysql/#findComment-473521 Share on other sites More sharing options...
Daniel0 Posted February 22, 2008 Share Posted February 22, 2008 You can use ffmpeg if you're on a Linux server. Quote Link to comment https://forums.phpfreaks.com/topic/92375-php-script-to-convert-any-type-of-video-to-flv-while-uploading-the-file-to-mysql/#findComment-473527 Share on other sites More sharing options...
aschk Posted February 22, 2008 Share Posted February 22, 2008 I'm with dean on this one. I believe flash can play avi,mpeg,wmv files now. So build your flash player to incorporate switching between these types. Then when you store your media file in your database make sure to tag it with the relevant type so that your player knows which codec/code to load. Quote Link to comment https://forums.phpfreaks.com/topic/92375-php-script-to-convert-any-type-of-video-to-flv-while-uploading-the-file-to-mysql/#findComment-473529 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.