How to enable MSE & H.264 support on YouTube for Firefox right now
Update: Firefox supports all HTML5 media features that YouTube requires. When you open the HTML5 test page you will notice that all options are checked indicating that they are all supported. Note that some Linux distributions may lack support for some features. End
When you open YouTube's HTML5 page in the most recent stable version of Firefox right now, you will notice that support is not available for all technologies listed on the page.
Support may be available for HTMLVideoElement, H.264 and WebM VP8, but not for Media Source Extensions, MSE & H.264 or MSE & WebM VP9.
A configuration option is available to enable Media Source Extensions and MSE & WebM VP9 right now in the Firefox browser.
To do so, load about:config in the browser's address bar and search for the term media.mediasource.enabled there. Double-click the preference to set it to true if it is not set to true already.
Then, search for media.mediasource.webm.enabled afterwards and make sure it is set to true as well. If it is not, double-click on it to switch its value to true.
When you go back to YouTube's HMTL5 page afterwards, you will notice that only MSE & H.264 is listed as unsupported while all remaining options are supported.
If you do not do that, you will only receive select resolutions for videos on YouTube when using the HTML5 video player. This is quite problematic as Google will force Firefox users to use the HTML5 video player from Firefox 33 on.
Mozilla has not enabled the feature by default yet, not even in the most recent Nightly version of Firefox. This is an indicator that the feature is not yet ready for prime time and that it may take a couple of release cycles before it will be enabled by default.
Most video resolutions become available after you enable Media Source Extensions in Firefox. What is still not supported afterwards however is MSE & H.264 which means that some videos may not play in all resolutions yet on the site.
Enable MSE & H.264
A new preference in Firefox Nightly 34 changes that however, so that support for all requested technologies is provided afterwards on YouTube.
Note: While the article concentrates on Google's video hosting platform, enabling support for MSE & H.264 will benefit users of the browser on other websites as well.
You need to create a new preference to do so:
- Type about:config and hit enter.
- Confirm you will be careful.
- Right-click and select New > Boolean.
- Name the preference media.mediasource.ignore_codecs.
- Set its value to True.
Update: Linux userrs may change the following preferences as well:
- media.mediasource.mp4.enabled to true
- media.fragmented-mp4.* to true
- media.fragmented-mp4.use-blank-decoder to false
If you go back to YouTube's HTML page, you should see all six technologies listed as supported (in green).
Several bugs need to be resolved before the feature will be enabled directly by Mozilla for all users of the browser. You can check out the mediasource progress here.
This means that you may get hangs or experience other issues after enabling mp4 container support for Media Source Extensions in the browser.
Still, it is great to see that Mozilla is working on support for the feature in Firefox. It is unclear if it will manage to resolve all issues before Firefox 33 gets released, as it may result in an increase in support requests when Firefox users notice that YouTube is serving them only some resolutions.Advertisement