MP4/H.264 Codec For Firefox?

Home » CentOS » MP4/H.264 Codec For Firefox?
CentOS 8 Comments

Hello,

I am trying to get MP4/H.264 playback in Firefox to work on my CentOS
laptop (for vimeo).

I installed the gstreamer plugins as described here:

https://wiki.CentOS.org/TipsAndTricks/MultimediaOnCentOS7

(No, I did not install Flash, VLC and all the other stuff. I only want HTML5 MP4 playback..)

I enabled the nux repos. I did install all available gstreamer plugins, i.e. -good -bad -ugly -ffmpeg etc. No success.

Has anybody got mp4 playback working?

Here’s a test page:

https://www.quirksmode.org/html5/tests/video.html

Help would be appreciated!

Best regards, Roman

8 thoughts on - MP4/H.264 Codec For Firefox?

  • Yes, it’s working here, but I can’t remember for sure exactly what I
    needed to install to get it working.

    Here’s my installed gstreamer packages:

    rpm -qa | grep gstreamer | sort gstreamer-0.10.36-7.el7.x86_64
    gstreamer1-1.10.4-2.el7.x86_64
    gstreamer1-libav-1.0.6-1.el7.nux.x86_64
    gstreamer1-plugins-bad-free-1.10.4-2.el7.x86_64
    gstreamer1-plugins-bad-freeworld-1.0.6-1.el7.nux.x86_64
    gstreamer1-plugins-base-1.10.4-1.el7.x86_64
    gstreamer1-plugins-good-1.10.4-2.el7.x86_64
    gstreamer1-plugins-ugly-1.0.6-2.el7.nux.x86_64
    gstreamer-plugins-bad-free-0.10.23-23.el7.x86_64
    gstreamer-plugins-base-0.10.36-10.el7.x86_64
    gstreamer-plugins-good-0.10.31-13.el7.x86_64
    gstreamer-plugins-ugly-0.10.19-17.el7.nux.x86_64
    gstreamer-tools-0.10.36-7.el7.x86_64
    PackageKit-gstreamer-plugin-1.1.5-1.el7.x86_64
    phonon-backend-gstreamer-4.6.3-3.el7.x86_64

    and here’s everything from the nux repo on this box:

    rpm -qa | grep ‘el7\.nux’ | sort faac-1.28-6.0.el7.nux.x86_64
    faad2-libs-2.7-5.el7.nux.x86_64
    ffmpeg-2.6.8-3.el7.nux.x86_64
    ffmpeg-libs-2.6.8-3.el7.nux.x86_64
    gstreamer1-libav-1.0.6-1.el7.nux.x86_64
    gstreamer1-plugins-bad-freeworld-1.0.6-1.el7.nux.x86_64
    gstreamer1-plugins-ugly-1.0.6-2.el7.nux.x86_64
    gstreamer-plugins-ugly-0.10.19-17.el7.nux.x86_64
    libavdevice-2.6.8-3.el7.nux.x86_64
    libcddb-1.3.2-12.el7.nux.x86_64
    libdca-0.0.5-7.el7.nux.x86_64
    libdvdcss-1.2.13-1.el7.nux.x86_64
    libmimic-1.0.4-7.el7.nux.x86_64
    libmms-0.6.4-1.el7.nux.x86_64
    libmpeg2-0.5.1-10.el7.nux.x86_64
    libquicktime-1.2.4-19.el7.nux.x86_64
    librtmp-2.4-2.20131205.gitdc76f0a.el7.nux.x86_64
    libsidplay-1.36.60-2.el7.nux.x86_64
    live555-2013.11.26-1.el7.nux.x86_64
    mjpegtools-libs-2.1.0-5.el7.nux.x86_64
    nux-dextop-release-0-5.el7.nux.noarch opencore-amr-0.1.3-3.el7.nux.x86_64
    twolame-libs-0.3.13-3.el7.nux.x86_64
    vlc-2.2.5.1-2.el7.nux.x86_64
    vlc-core-2.2.5.1-2.el7.nux.x86_64
    vo-amrwbenc-0.1.2-1.el7.nux.x86_64
    x264-libs-0.142-11.20141221git6a301b6.el7.nux.x86_64
    x265-libs-1.9-1.el7.nux.x86_64
    xvidcore-1.3.2-5.el7.nux.x86_64

    Let me know if you need info on other installed packages.

  • Am 26.09.2017 um 21:51 schrieb Phil Perry:

    Thanks, that helped!
    The missing part was ffmpeg-libs and its dependencies.

    Thanks and cheers, Roman

  • I recently updated to 7.4 and found a number of media channels not working. This evening I issued the following command:

    # yum install flash-plugin icedtea-web smplayer ffmpeg HandBrake-{gui,cli} libdvdcss gstreamer{,1}-plugins-ugly gstreamer-plugins-bad-nonfree gstreamer1-plugins-bad-freeworld

    The history entry shows (you’ll need a wide format to see clearly):

    Transaction performed with:
    Installed rpm-4.11.3-25.el7.x86_64 @base
    Installed yum-3.4.3-154.el7.CentOS.noarch @base
    Installed yum-metadata-parser-1.1.4-10.el7.x86_64 @anaconda
    Installed yum-plugin-fastestmirror-1.1.31-42.el7.noarch @base Packages Altered:
    Install HandBrake-cli-0.9.9-5.el7.nux.x86_64
    @nux-dextop
    Install HandBrake-gui-0.9.9-5.el7.nux.x86_64
    @nux-dextop
    Dep-Install aalib-libs-1.4.0-0.22.rc5.el7.x86_64 @epel
    Dep-Install crystalhd-firmware-3.10.0-11.el7.noarch @epel
    Dep-Install enca-1.18-1.el7.x86_64 @epel
    Dep-Install faac-1.28-6.0.el7.nux.x86_64
    @nux-dextop
    Dep-Install fdk-aac-0.1.4-1.x86_64
    @nux-dextop
    Install ffmpeg-2.6.8-3.el7.nux.x86_64
    @nux-dextop
    Dep-Install ffmpeg-libs-2.6.8-3.el7.nux.x86_64
    @nux-dextop
    Dep-Install fribidi-0.19.4-6.el7.x86_64 @base
    Install gstreamer-plugins-bad-nonfree-0.10.23-2.el7.nux.x86_64
    @nux-dextop
    Install gstreamer-plugins-ugly-0.10.19-17.el7.nux.x86_64
    @nux-dextop
    Install gstreamer1-plugins-ugly-1.0.6-2.el7.nux.x86_64
    @nux-dextop
    Dep-Install lame-libs-3.99.5-8.el7.x86_64 @epel
    Dep-Install liba52-0.7.4-27.el7.x86_64 @epel
    Dep-Install libass-0.13.4-1.el7.x86_64 @epel
    Dep-Install libavdevice-2.6.8-3.el7.nux.x86_64
    @nux-dextop
    Dep-Install libbs2b-3.1.0-13.el7.x86_64 @epel
    Dep-Install libcaca-0.99-0.17.beta17.el7.x86_64 @epel
    Dep-Install libcrystalhd-3.10.0-11.el7.x86_64 @epel
    Dep-Install libdc1394-2.2.2-3.el7.x86_64 @epel
    Install libdvdcss-1.2.13-1.el7.nux.x86_64
    @nux-dextop
    Dep-Install libmad-0.15.1b-20.el7.x86_64 @epel
    Dep-Install libmpeg2-0.5.1-10.el7.nux.x86_64
    @nux-dextop
    Dep-Install libnemesi-0.7.0-0.5.20110215git.el7.nux.x86_64
    @nux-dextop
    Dep-Install libsidplay-1.36.60-2.el7.nux.x86_64
    @nux-dextop
    Dep-Install libva-1.2.1-3.el7.x86_64 @epel
    Dep-Install libvdpau-1.1.1-3.el7.x86_64 @base
    Dep-Install lirc-libs-0.10.0-3.el7.x86_64 @epel
    Dep-Install mplayer-1.1-33.20150505svn.el7.nux.x86_64
    @nux-dextop
    Dep-Install mplayer-common-1.1-33.20150505svn.el7.nux.x86_64
    @nux-dextop
    Dep-Install netembryo-0.1.1-5.el7.nux.x86_64
    @nux-dextop
    Dep-Install opencore-amr-0.1.3-3.el7.nux.x86_64
    @nux-dextop
    Dep-Install qt5-qtbase-5.6.2-1.el7.x86_64 @base
    Dep-Install qt5-qtbase-common-5.6.2-1.el7.noarch @base
    Dep-Install qt5-qtbase-gui-5.6.2-1.el7.x86_64 @base
    Dep-Install qt5-qtscript-5.6.2-1.el7.x86_64 @base
    Dep-Install qtlockedfile-qt5-2.4-20.20150629git5a07df5.el7.x86_64 @epel
    Dep-Install qtsingleapplication-qt5-2.6.1-28.el7.x86_64 @epel
    Dep-Install schroedinger-1.0.11-4.el7.x86_64 @epel
    Install smplayer-17.7.0-1.el7.nux.x86_64
    @nux-dextop
    Dep-Install twolame-libs-0.3.13-3.el7.nux.x86_64
    @nux-dextop
    Dep-Install webkitgtk-2.4.9-1.el7.x86_64 @epel
    Dep-Install x264-libs-0.142-11.20141221git6a301b6.el7.nux.x86_64
    @nux-dextop
    Dep-Install x265-libs-1.9-1.el7.nux.x86_64
    @nux-dextop
    Dep-Install xcb-util-renderutil-0.3.9-3.el7.x86_64 @base
    Dep-Install xcb-util-wm-0.4.1-5.el7.x86_64 @base
    Dep-Install xvidcore-1.3.2-5.el7.nux.x86_64
    @nux-dextop

    The result is that I can now watch TV, and ALL 3 of your test cases work with Firefox ESR 52.3.0

    Hope that helps, Martin

  • Roman Kennke writes:

    All movies on that page play without having taken any particular precautions in Seamonkey (I dislike Firefox).

    However, I have ffmpeg and mplayer installed (compiled from source because there aren´t packages for those). I don´t know if any of them are being used by Seamonkey.

    yum list installed | grep gstream gstreamer.x86_64 0.10.36-7.el7 @base
    gstreamer-plugins-base.x86_64 0.10.36-10.el7 @base
    gstreamer-tools.x86_64 0.10.36-7.el7 @base
    gstreamer1.x86_64 1.10.4-2.el7 @base
    gstreamer1-plugins-base.x86_64 1.10.4-1.el7 @base

    Those must have been installed for dependencies; I didn´t install them explicitly.


    “Didn’t work” is an error.

  • Am 01.10.2017 um 12:28 schrieb hw:

    Installing ffmpeg-libs solved it for me. I suspect that FF links against ffmpeg-libs or via gstreamer-ffmpeg or some such.

    Thanks, Roman

  • Version : 2.6.8
    Release : 3.el7.nux Architecture: x86_64
    Install Date: Wed 27 Apr 2016 06:23:09 PM CST
    Group : Unspecified Size : 13562904
    License : GPLv2+
    Signature : RSA/SHA1, Wed 27 Apr 2016 06:35:00 AM CST, Key ID e98bfbe785c6cd8a Source RPM : ffmpeg-2.6.8-3.el7.nux.src.rpm Build Date : Wed 27 Apr 2016 06:33:00 AM CST
    Build Host : rpmbuilder Relocations : (not relocatable)
    Packager : http://li.nux.ro/
    Vendor : Nux!
    URL : http://ffmpeg.org/
    Summary : Libraries for ffmpeg Description :
    FFmpeg is a complete and free Internet live audio and video broadcasting solution for Linux/Unix. It also includes a digital VCR. It can encode in real time in many formats including MPEG1 audio and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash. This package contains the libraries for ffmpeg