MediaElement.js - Best file type / encoding for browser?

I implemented a video player on my website using MediaElement.js. Users can upload videos to the site, and the player allows them to watch videos in a browser on the site.

I'm having problems, but different browsers may play certain formats, but not others. For example, MP4 files were a bit spotty, worked fine in some browsers, but didn't play on others. I believe this is because not every browser supports every video codec.

I thought I should recommend that users upload videos in a specific format / encoding that will play in a cross-browser environment on both Mac and Windows. My question is: are there any formats that MediaElement.js can play in all browsers? If so, which one should I recommend to users to download?

+3
source share
1 answer

I understand that this is an old question, but I hope this answer will be useful to everyone who is faced with this problem.

Here are the settings recommended by the plugin developer: http://johndyer.name/ffmpeg-settings-for-html5-codecs-h264mp4-theoraogg-vp8webm/

FFMPEG , .

+2

All Articles