Home Wiki > SDB:Firefox MP4/H.264 Video Support
Sign up | Login

SDB:Firefox MP4/H.264 Video Support

tagline: From openSUSE

If your Firefox cannot play some HTML5 videos, this article can probably solve your problem.

Solution brief

  1. Add Packman Essentials repository or add VLC repository, which contain full-function ffmpeg/libav library.
  2. Install libavcodec56, libavcodec57, libavformat56, libavformat57, libavdevice56, libavdevice57 package from Packman or VLC repository. Other libav packages are also recommended.
  3. If you already installed libav packages from openSUSE official repository, switch to Packman or VLC. You can use YaST with following steps:
    1. Search, find and select the package.
    2. Open "Version" tab behind package list.
    3. Choose latest version from Packman/VLC.
    4. If any dependency problem happen, choose solution "Change vendor openSUSE --> Packman / VLC".
    5. Click "Accept" button and install updates.
  4. Restart your Firefox.

Learn more

As a historical issue, MP4/H.264 becomes a widely used video format on the internet. Many websites provide only MP4 format for HTML5 video stream. So if your web browser doesn't support H.264 codec, these videos cannot be loaded or played.

Deal to patent problems, neither Firefox nor openSUSE provides H264 codec to support. That is why your fresh new openSUSE installation cannot play video on web pages. Luckily, Packman and VLC repositories have these useful packages. If you installed libav libraries, Firefox can detect your system and use available them to decode MP4/H.264 video.

openSUSE provides ffmpeg/libav packages like libavcodec56, but they are "disabled". All patent related codecs were removed, so it is not able to play MP4/H.264 video. That is why you need to upgrade these packages with Packman/VLC's version.

If you want to know if your Firefox support H.264 video, checkout the following pages:

Though Firefox has OpenH264 (by Cisco) plugin, it is NOT used to decode HTML5 video.

Firefox VLC plugin has nothing to do with HTML5 video. It only gives a old way to embed VLC player inside web pages.

Unofficial Firefox plugins for xine decoders might be broken. If you have problems with them, uninstall these plugins and use ffmpeg/libav instead.