Playing youtube (and other) video and audio

Support and discussions for the x86/x64 Linux version of Pale Moon.

Moderators: trava90, satrow

surveyor 7
New to the forum
New to the forum
Posts: 2
Joined: Wed, 22 Nov 2017, 22:12

Playing youtube (and other) video and audio

Postby surveyor 7 » Thu, 30 Nov 2017, 21:41

When I moved to Pale Moon, I found no sound on youtube (or anywhere else).

Trying to debug that from the forum led me to the test pages https://www.youtube.com/html5 and http://www.quirksmode.org/html5/tests/video.html, which both told me H.264 wasn't working. I checked that ffmpeg -codecs had h.264, and that downloaded files played fine in mplayer using H.264.

Eventually, my searching came across
https://github.com/MoonchildProductions/Pale-Moon/tree/master/dom/media/platforms/ffmpeg
which says the minimum version for libavcodec.so is 54.35.1. So I found and installed a newer version to go with my two older versions. (I understand from using other A/V programs that ffmpeg's innards change frequently.)

This activated H.264 in the test pages, but I still had no sound, although digging into the second test page I found that

Code: Select all

mplayer http://www.quirksmode.org/html5/videos/big_buck_bunny.mp4
worked fine.

Eventually, I found an old thread https://forum.palemoon.org/viewtopic.php?f=37&t=9661&p=65944
and did the same syntax transformation to my ALSA config /etc/asound.conf, which had been working fine for everything else. Now it appears that everything else *and* Pale Moon is happy.

User avatar
stevepusser
Lunatic
Lunatic
Posts: 340
Joined: Sat, 01 Aug 2015, 18:33
Location: California

Re: Playing youtube (and other) video and audio

Postby stevepusser » Fri, 01 Dec 2017, 03:06

That begs the question of what ye olde version of Linux didn't have libavcodec54...stock Debian Wheezy has only libavcodec53, but that can be upgraded to libavcodec55 from wheezy-backports. Seems like I should add a minimum version to the ffmpeg/libav-tools dependency in my packages, then.

Walter Dnes
Astronaut
Astronaut
Posts: 506
Joined: Thu, 30 Jul 2015, 20:29
Location: Vaughan, ON, Canada

Re: Playing youtube (and other) video and audio

Postby Walter Dnes » Fri, 01 Dec 2017, 04:15

One option that'll allow slightly older versions to work in Pale Moon for linux is to go to about:buildconfig and set the option media.libavcodec.allow-obsolete to true. It won't work for really ancient libraries but it will work with slightly older versions than the default value of true. Is trava90 monitoring this thread? Can he give us the exact version numbers this works for?
There's a right way
There's a wrong way
And then there's my way

User avatar
trava90
Contributing developer
Contributing developer
Posts: 1444
Joined: Mon, 20 May 2013, 18:19
Location: Earth
Contact:

Re: Playing youtube (and other) video and audio

Postby trava90 » Fri, 01 Dec 2017, 13:48

Pale Moon supports libavcodec versions from 53 to 57 (which is the most recent stable release if I'm not mistaken), while anything below version 54.35.1 is blocked by default (unless the allow-obsolete pref is flipped).


Return to “Pale Moon for Linux”

Who is online

Users browsing this forum: No registered users and 7 guests