SDB:Firefox MP4/H.264 Video Support
If your Firefox cannot play some HTML5 videos, this article can probably solve your problem.
- Add Packman Essentials repository or add VLC repository, which contain full-function ffmpeg/libav library.
- Install libavcodec56, libavcodec57, libavformat56, libavformat57, libavdevice56, libavdevice57 package from Packman or VLC repository. Other libav packages are also recommended.
- If you already installed libav packages from openSUSE official repository, switch to Packman or VLC. You can use YaST with following steps:
- Search, find and select the package.
- Open "Version" tab behind package list.
- Choose latest version from Packman/VLC.
- If any dependency problem happen, choose solution "Change vendor openSUSE --> Packman / VLC".
- Click "Accept" button and install updates.
- Restart your Firefox.
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.
To deal with 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.