Take the 2-minute tour ×
Video Production Stack Exchange is a question and answer site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation. It's 100% free, no registration required.

I am going to re-sample a bunch of videos to be played through web browsers. (Current video is large, 3 MB for a 4s clip. Hoping to compress by 90%).

Use: These videos will be played in a web-based eduational app. They'll be up to about 5 seconds and be played in the latest Chrome or (on iOS/Mac) Safari browser.

I'm using Handbrake (.9.9.5530, latest) . These must be playable in Chrome and Safari (latest versions) browsers without any pluggins (and would be nice to be playable in the latest FireFox and IE). (I'm also open to using another free or cheap encoding software that will let me do batch processing.

What are the recommended settings (Video Codec, Quality (and constant or avg bit rate, etc.) My top priority is compatibility.

share|improve this question
How are you planning to embed the final video file into a web page without using plugins? This will help us determine the best codec for this problem. –  nchpmn Feb 3 at 0:20

3 Answers 3

up vote 2 down vote accepted

If compatibility is your top priority, then you should include two alternative versions of your video on your website, like in this HTML example.

As for the exact formats I would suggest:

  • H.264 and AAC in MP4: Chrome, Firefox 22+ on Windows, IE9, Safari 3.1
  • VP8 and Vorbis in WebM: Firefox fallback for Mac and older versions on Windows.
  • (If you need support for even older browsers (IE6-8), and mobile (Android, WP7), you could add mediaelement.js to your website.)

Make sure to put them in that order to make the fallback work. H.264 or MPEG-4 are recommended because they are the only formats to have hardware acceleration on newer devices.

Compression settings: start by using constant quality with default settings for video and 128 Kbps VBR audio. For H.264 make sure to not exceed Main Profile and Level 4.0. And since Handbrake doesn't do the WebM format, you could try Miro Video Converter.

share|improve this answer

There's a table here showing support for the various video codecs by the four main browsers around today. For Chrome and Safari the only option that plays on both is h.264 in an mp4 container.

I've found that main profile h264 video plays best across most modern devices, but you can wind it back to base profile if you're having problems. This is a good discussion about the differences between the profiles.

A quality setting of 20 is a good place to start; it's a good compromise between size and quality, but you could tweak depending on your results.

share|improve this answer

h.264 is probably the easiest. Just about anything plays it, particularly if you use a base profile (which reduces effectiveness, but also simplifies the playback for lower powered devices).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.