Jump to content

PHP Script to convert any type of video to FLV while uploading the file to MySQL


sureshrhce

Recommended Posts

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 : p.kumaravelin@gmail.com

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.