Jump to content

php video upload and play different formats


Recommended Posts

Hi, we are developing a video upload website. Client will upload videos into different formats (avi,mp4,flv etc). Video upload to server by not playing. Only mp4 playing avi etc not playing. How can i play all video formats in php. Or we want to convert all video to mp4 at the time of upload using ffmpeg.

Please let me know a solution, we are using dedicated server fr this.

Link to post
Share on other sites

Video playback requires support from the browser. I suggest converting uploads to one standard format.

 

Install ffmpeg on your server, then either run the program from your PHP code manually, like

`ffmpeg $various_arguments_here`;
or use something like PHP-FFMpeg.
Link to post
Share on other sites

The time to upload depends on the user's connection speed and your server's connection speed.

The time to convert depends on how powerful your server is and how busy it is running other tasks.

 

The two are not related.

Link to post
Share on other sites
This thread is more than a year old.

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.