C6 Firefox Esr H.264 Support On Youtube

Home » CentOS » C6 Firefox Esr H.264 Support On Youtube
CentOS 18 Comments

I was able to get h.264 support on www.youtube.com/html5 on fedora 21 by installing

gstreamer1-libav

but that package does not exist in C6 (or it’s popular third party repos)

What is the name of the package which adds h.264 to firefox on youtube/html5 in C6?

18 thoughts on - C6 Firefox Esr H.264 Support On Youtube

  • I had already looked at the nux repo. They may have that package for C7 but I can’t see it for C6.

    I’m thinking h.264 gstreamer support must be provided by another package in C6.

    I have gstreamer-plugins-base & good installed. And I’ve already tried ugly and gstreamer-ffmpeg.

  • Sorry, I didn’t have that repository set up for C6 and when trying to do a quick switch I didn’t actually manage to switch it from C7
    to C6. I agree, I don’t see it there for C6, even in their -testing.

    Looking at rpmfind it appears to be available from RpmFusion back to fedora-18. That may not be old enough (forget what the fc “base” is for C6), but you may be able to find older fc versions with a little looking.

  • Yes I do in seamonkey, the browser I use. Strangely the box is not checked in firefox although FF and SM are very similar, but I never use FF on this system so maybe it’s just not configured correctly.

    $ rpm -qa | grep -i ‘gst\|libva’
    gstreamer-plugins-base-0.10.29-2.el6.x86_64
    phonon-backend-gstreamer-4.6.2-28.el6_5.x86_64
    gstreamer-plugins-bad-0.10.22-2.el6.nux.x86_64
    PackageKit-gstreamer-plugin-0.5.8-25.el6.x86_64
    gstreamer-plugins-good-0.10.23-3.el6.x86_64
    gstreamer-0.10.29-1.el6.x86_64
    gstreamer-plugins-bad-free-extras-0.10.19-3.el6_5.x86_64
    gstreamer-plugins-ugly-0.10.18-3.el6.nux.x86_64
    gstreamer-tools-0.10.29-1.el6.x86_64
    gstreamer-plugins-bad-nonfree-0.10.18-1.el6.nux.x86_64
    gstreamer-ffmpeg-0.10.12-1.5.el6.nux.x86_64
    libva-1.0.15-1.el6.x86_64
    gstreamer-plugins-bad-free-0.10.19-3.el6_5.x86_64

  • My understanding, which may be incorrect, was that the firefox in EL6 wasn’t built with gstreamer support, so adding that library isn’t sufficient.

    jh

  • Works fine for me.

    $ rpm -qa | grep -i ‘gst\|libva’
    gstreamer-plugins-good-0.10.23-3.el6.x86_64
    libva-1.0.15-1.el6.x86_64
    gstreamer-ffmpeg-0.10.11-2.el6.x86_64
    gstreamer-plugins-bad-free-0.10.19-3.el6_5.x86_64
    gstreamer-plugins-base-0.10.29-2.el6.x86_64
    gstreamer-0.10.29-1.el6.x86_64
    gstreamer-python-0.10.16-1.1.el6.x86_64
    gstreamer-plugins-ugly-0.10.18-4.el6.x86_64
    phonon-backend-gstreamer-4.6.2-28.el6_5.x86_64
    gstreamer-tools-0.10.29-1.el6.x86_64

  • “You always need native OS support to be able to play media files with the HTML5 media player”
    https://support.mozilla.org/en-US/questions/1068031#answer-743907

    I found this because I was looking for a (legal in the US) way to look at h264 streams from local net video encoders on EL6, without having to resort to expensive decoder software which I can’t get anytime soon. Initially I thought that I might get Firefox to do it for me with the openh264 plugin, but then I found the above link. I am currently looking at how possible/painful it is to get the gstreamer openh264 plugin [1] built on EL6 (to go with the existing 0.10 gstreamer), such that I can use openh264 [2][3], which if I understand it would allow me to have a legal and working viewer (sans sound, which I don’t need anyway). It would be nice (from a functional point of view) if Red Hat could get us an audio codec for h264 licensed in a similar way.

    If anyone has clues on how to build and add just a portion of gst-plugins-bad into the existing EL OS set of gstreamer plugins, please share (even URL pointers).

    [1] http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/openh264
    [2] https://en.wikipedia.org/wiki/OpenH264
    [3] http://www.openh264.org/

    Even when this disclaimer is not here:
    I am not a contracting officer. I do not have authority to make or modify the terms of any contract.

  • John Hodrien wrote:

    I believe the EL6 build of firefox sets media.gstreamer.enabled to
    ‘false’ (see about:config)

    Try setting that to ‘true’

    Although that appears to stop the libtotem plugins from working ?

    James Pearson

  • All we did was rebuild the CentOS 6 packages tweaking the SPEC so that it was configured with:

    –enable-gstreamer=0.10

    h264 then worked once you’d got the appropriate gstreamer plugins installed.

    Also google-chrome on EL6 does h264.

    jh

  • This makes sense as I remember reading the latest versions of Firefox supporting gstreamer1 not 0.10. That’s probably why gstreamer1-libav works with Firefox 40.

  • Thanks for that tip about building it with that tweak. I will try it. BTW
    how are you running google-chrome on EL6?

  • These days I grab the Linux/x86_64 tar.bz2 from seamonkey-project.org , tar xfvj, and symlink /usr/lib64/mozilla/plugins/ in the resulting subdir. But I see there’s now an ESR version in EPEL.

  • Note the nux-dextop has chrome-deps-stable, which is the only package you need to be able to use the upstream chrome rpms.

    jh

  • Hello John,

    Thanks for the tip!

    I retrieved CentOS 6.7’s firefox-38.2.1-1.el6.x86_64 srpm and rebuilt it with the –enable-gstreamer=0.10 changes in .spec file, rebuilt on my CentOS 6.5 system, and it works like a charm (htm5test.org and youtube detect the h264 support etc.).

    Regards,