How do I get HTML5 h.264 Video working on Firefox?

According the the release notes for Firefox 26, h.264 video should now be working in Linux. It does also say the appropriate gstreamer plug-ins need to be installed. Does anyone know what these are?

I used this test site and the YouTube HTML5 page to verify that h.264 support works in Google Chrome on my Ubuntu 12.04 64-bit, but does not work on Firefox 26.


Solution 1:

For 12.04 / 14.04 / 18.10

Just visited the HTML5 Youtube test and I have H.264 checked; you probably will need to install Ubuntu restricted extras to get the gstreamer codecs.

sudo apt-get install ubuntu-restricted-extras

You may need to restart.

enter image description here

Solution 2:

For 14.04

The solutions above are not working anymore with Trusty Tahr 14.04. The reason for this is the package gstreamer0.10-ffmpeg has been replaced by gstreamer1.0-libav but Firefox is planning to support gstreamer 1.0 only with version 30.

So in the meantime you can install the gstreamer0.10-ffmpeg from saucy for your appropriate architecture here :

  • https://launchpad.net/~mc3man/+archive/trusty-media