how to convert mp4 format video files to other formats like .ogg and .webm to run in all browsers during upload using php and jquery. And is there any solution to use encode one format to other formats according to browser's need so that it will occupy less space on server.
Asked
Active
Viewed 1,711 times
0
-
I'm surprised that disk space is a bigger concern then the CPU time needed to re-encode videos on demand in real time. – Quentin May 16 '14 at 14:58
-
@Quentin yes u r right. – Aisha May 16 '14 at 15:16
-
If you just want to show mp4 videos consistently through different (modern) browsers and devices, you may want to check http://www.picssel.com/play-mp4-videos-with-mediaelement-js-in-fancybox/ – JFK Jul 01 '14 at 23:23
1 Answers
1
If you want to have multiple files to use with HTML5 for browser compatibility, use FFMpeg to do the conversions on file upload.
If you want to just use one mp4 file and have a flash fallback for all browsers, I would recommend MediaElement.js.

Thomas
- 195
- 11
-
-
-
@user3456241 Yes, the license says GPLv2/MIT, so you can use it commercially. – Thomas May 16 '14 at 17:56