Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#58236 - [firefox] missing (optional) dependency on ffmepeg2.8

Attached to Project: Arch Linux
Opened by Fabian Franke (Schrödingers Zombie) - Sunday, 15 April 2018, 09:19 GMT
Last edited by Eli Schwartz (eschwartz) - Monday, 16 April 2018, 12:33 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Firefox recently stopped playing h264 encoded videos.

After a long time looking for a solution I finally installed the ffmpeg2.8 package and tada: Videoplayback works again.

To spare other users this long time searching fo a solution I would like to see ffmpeg2.8 as optional dependency for firefox.

This task depends upon

Closed by  Eli Schwartz (eschwartz)
Monday, 16 April 2018, 12:33 GMT
Reason for closing:  Not a bug
Additional comments about closing:  User error
Comment by userwithuid (userwithuid) - Sunday, 15 April 2018, 14:57 GMT
Arch-Firefox already depends on ffmpeg (3.4) with which it should play h264 just fine. If it doesn't for you, ffmpeg2.8 is a (temporary) workaround that hides the actual issue. Using ffmpeg-git (3.5) from AUR instead of ffmpeg could cause this for example.

Most likely not an Arch bug.
Comment by Doug Newgard (Scimmia) - Monday, 16 April 2018, 04:38 GMT
Yeah, this makes no sense. How are you running firefox and what does `type firefox` return?
Comment by Fabian Franke (Schrödingers Zombie) - Monday, 16 April 2018, 07:34 GMT
I run firefox with "Mod+R firefox" in Awesom WM.
Starting firefox from bash doesn't make a difference.
"type firefox" returns "firefox is /usr/bin/firefox"

"pacman -Qi ffmpeg" gives the following:
> Name : ffmpeg
> Version : 1:3.4.2-2
> Description : Complete solution to record, convert and stream audio and video
> [...]
> Packager : Maxime Gauduin <alucryd@archlinux.org>
> Build Date : Wed Feb 21 23:10:09 2018
> Install Date : Mon Mar 12 14:09:36 2018
> Install Reason : Installed as a dependency for another package
> [...]

I just verified, that if I remove ffmpeg2.8 h264 playback stops working.

I just reinstalled ffmpeg doesn't make any difference.

Comment by Doug Newgard (Scimmia) - Monday, 16 April 2018, 07:40 GMT
How about pacman -Qo /usr/bin/firefox?
Comment by Fabian Franke (Schrödingers Zombie) - Monday, 16 April 2018, 08:00 GMT
"/usr/bin/firefox is owned by firefox 59.0.2-2"
Comment by AK (Andreaskem) - Monday, 16 April 2018, 09:04 GMT
With firefox running, what is the output of the following terminal command (you might need to install lsof first)?

lsof | grep firefox | grep libav

Maybe with and without ffmpeg2.8 installed.
Comment by Fabian Franke (Schrödingers Zombie) - Monday, 16 April 2018, 09:21 GMT
This gives (in both cases) no output.
Comment by AK (Andreaskem) - Monday, 16 April 2018, 10:54 GMT
Sorry, I missed something. Please show the following instead:

lsof | grep libav
Comment by Fabian Franke (Schrödingers Zombie) - Monday, 16 April 2018, 11:55 GMT
Thank you two for helping.

The error is indeed on my machine.

"lsof | grep libav" gave me the needed hint.
With ffmpeg2.8 installed this returned "/usr/lib/libavutil.so.55.78.100" and "/usr/lib/libavcodec.so.57.107.100" which are both included in ffmpeg (3.4).
Eventually I figgured out that ffmpeg2.8 installed a file in /etc/ld.conf.d/ which included /usr/lib (and /usr/lib/ffmpeg2.8) in the shared library search path.
Without this /usr/lib is only searched last.

So I had a broken/outdated/incompatible libgomp in the library search path without ffmpeg2.8 firefox tried to use this for h264 playback. With ffmpeg2.8 installed it used the correct libgomb in /usr/lib.


So sorry for wasting your time. And thank you.

Loading...