nobleseba Posted April 11, 2017 Share Posted April 11, 2017 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. Quote Link to comment Share on other sites More sharing options...
requinix Posted April 11, 2017 Share Posted April 11, 2017 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. Quote Link to comment Share on other sites More sharing options...
nobleseba Posted April 11, 2017 Author Share Posted April 11, 2017 Hi, Thank you for the replay. Normally client upload 2 gb, 5 gb size... conversion take more time than normal upload? for example 2 gb video take 40 min to upload then convert to for example mp4 will take more time. Quote Link to comment Share on other sites More sharing options...
requinix Posted April 11, 2017 Share Posted April 11, 2017 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. Quote Link to comment 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.