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, libavcodec58, libavformat56, libavformat57, libavformat58, libavdevice56, libavdevice57, libavdevice58 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.
- It could be better to restart the computer. At least, to close/reopen the current session.
This solution works very fine for openSUSE Leap 15.0 on HP Probook 6470b and this is the only one which allows us to view videos on ARTE.TV tv channels and view the Eurosport player TV channel.
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.