firefox having problems with codecs

This thread is not about “firefox having problems with codecs”. It’s about sloppy and clueless maintenance by the administrators.:wink:

Proper configuration of repos and solver defaults ensures that the correct version of codecs gets installed and upgraded at any time:

**erlangen:~ #** zypper se -is libavcodec59.x86_64 
Loading repository data... 
Reading installed packages... 

S | Name         | Type    | Version   | Arch   | Repository 
--+--------------+---------+-----------+--------+----------- 
i | libavcodec59 | package | 5.1.2-4.5 | x86_64 | Packman 
**erlangen:~ #**

I was having exactly the problems described in this thread after I upgraded to tumbleweed from leap 15 a week ago, with an upgrade of firefox to v.106 from somewhere in the 90s i think.

at first I searched on the mozilla forum https://support.mozilla.org/en-US/questions/1396039#answer-1547605

Then I found this thread and tried the solution suggested on 9th may '22 to change vendor by running

sudo zypper install --from Packman libavcodec59

however this failed as i did not have the packman libraries installed. Someone on the mozilla thread suggested the install as follows
“… the site I always use after an OS install to get packman with just a few clicks. https://www.opensuse-community.org/

i used this to get the packman libraries, and then the zypper command, and hey wonderful presto, i can now watch the videos i was having problems with.

There were quite a few error messages along the way, but choosing solutions suggested by the install applications all went well. These were often about duplicate libraries or older versions. Here is the output from the zypper command:

Loading repository data... 
Reading installed packages... 
Resolving package dependencies... 

Problem: the installed libavformat59-5.1.2-3.1.x86_64 requires 'libavcodec59 = 5.1.2-3.1', but this requiremen
t cannot be provided 
 Solution 1: Following actions will be done: 
  install libavformat59-5.1.2-4.5.x86_64 from vendor http://packman.links2linux.de 
    replacing libavformat59-5.1.2-3.1.x86_64 from vendor openSUSE 
  install ffmpeg-5-5.1.2-4.5.x86_64 from vendor http://packman.links2linux.de 
    replacing ffmpeg-5-5.1.2-3.1.x86_64 from vendor openSUSE 
  install libavdevice59-5.1.2-4.5.x86_64 from vendor http://packman.links2linux.de 
    replacing libavdevice59-5.1.2-3.1.x86_64 from vendor openSUSE 
  install libavfilter8-5.1.2-4.5.x86_64 from vendor http://packman.links2linux.de 
    replacing libavfilter8-5.1.2-3.1.x86_64 from vendor openSUSE 
  install libpostproc56-5.1.2-4.5.x86_64 from vendor http://packman.links2linux.de 
    replacing libpostproc56-5.1.2-3.1.x86_64 from vendor openSUSE 
  install libswresample4-5.1.2-4.5.x86_64 from vendor http://packman.links2linux.de 
    replacing libswresample4-5.1.2-3.1.x86_64 from vendor openSUSE 
  install libswscale6-5.1.2-4.5.x86_64 from vendor http://packman.links2linux.de 
    replacing libswscale6-5.1.2-3.1.x86_64 from vendor openSUSE 
 Solution 2: do not install libavcodec59-5.1.2-4.5.x86_64 
 Solution 3: break libavformat59-5.1.2-3.1.x86_64 by ignoring some of its dependencies 

**Choose from above solutions by number or cancel [1/2/3/c/d/?] (c): **1 
Resolving dependencies... 
Resolving package dependencies... 

Problem: the to be installed libavcodec59-5.1.2-4.5.x86_64 requires 'libavutil57 = 5.1.2-4.5', but this requir
ement cannot be provided 
  not installable providers: libavutil57-5.1.2-4.5.i586[http-ftp.gwdg.de-7d19f9c0] 
                   libavutil57-5.1.2-4.5.x86_64[http-ftp.gwdg.de-7d19f9c0] 
                   libavutil57-5.1.2-4.5.i586[http-ftp.gwdg.de-da39408a] 
                   libavutil57-5.1.2-4.5.x86_64[http-ftp.gwdg.de-da39408a] 
 Solution 1: Following actions will be done: 
  do not install libavcodec59-5.1.2-4.5.x86_64 
  do not install libpostproc56-5.1.2-4.5.x86_64 
 Solution 2: Following actions will be done: 
  do not install ffmpeg-5-5.1.2-4.5.x86_64 
  do not install libavcodec59-5.1.2-4.5.x86_64 
  do not install libavfilter8-5.1.2-4.5.x86_64 
  do not install libswscale6-5.1.2-4.5.x86_64 
  do not install libavdevice59-5.1.2-4.5.x86_64 
 Solution 3: install libavutil57-5.1.2-4.5.x86_64 from vendor http://packman.links2linux.de 
  replacing libavutil57-5.1.2-3.1.x86_64 from vendor openSUSE 
 Solution 4: break libavcodec59-5.1.2-4.5.x86_64 by ignoring some of its dependencies 

**Choose from above solutions by number or cancel [1/2/3/4/c/d/?] (c): **3 
Resolving dependencies... 
Resolving package dependencies... 

The following 9 packages are going to be upgraded:
  ffmpeg-5 libavcodec59 libavdevice59 libavfilter8 libavformat59 libavutil57 libpostproc56 libswresample4 
  libswscale6 

The following 9 packages are going to change vendor:
  ffmpeg-5        openSUSE -> http://packman.links2linux.de 
  libavcodec59    openSUSE -> http://packman.links2linux.de 
  libavdevice59   openSUSE -> http://packman.links2linux.de 
  libavfilter8    openSUSE -> http://packman.links2linux.de 
  libavformat59   openSUSE -> http://packman.links2linux.de 
  libavutil57     openSUSE -> http://packman.links2linux.de 
  libpostproc56   openSUSE -> http://packman.links2linux.de 
  libswresample4  openSUSE -> http://packman.links2linux.de 
  libswscale6     openSUSE -> http://packman.links2linux.de 

9 packages to upgrade, 9  to change vendor. 
Overall download size: 9.6 MiB. Already cached: 0 B. After the operation, additional 6.9 MiB will be used. 
**Continue? [y/n/v/...? shows all options] (y): **y 
Retrieving package libavutil57-5.1.2-4.5.x86_64                          (1/9), 308.2 KiB (793.7 KiB unpacked) 
Retrieving: libavutil57-5.1.2-4.5.x86_64.rpm ...........................................................[done] 
Retrieving package libpostproc56-5.1.2-4.5.x86_64                        (2/9),  60.3 KiB (120.1 KiB unpacked) 
Retrieving: libpostproc56-5.1.2-4.5.x86_64.rpm .........................................................[done] 
Retrieving package libswresample4-5.1.2-4.5.x86_64                       (3/9),  67.4 KiB (148.0 KiB unpacked) 
Retrieving: libswresample4-5.1.2-4.5.x86_64.rpm ............................................[done (9.5 KiB/s)] 
Retrieving package libswscale6-5.1.2-4.5.x86_64                          (4/9), 182.6 KiB (612.0 KiB unpacked) 
Retrieving: libswscale6-5.1.2-4.5.x86_64.rpm ...........................................................[done] 
Retrieving package libavcodec59-5.1.2-4.5.x86_64                         (5/9),   4.8 MiB ( 11.9 MiB unpacked) 
Retrieving: libavcodec59-5.1.2-4.5.x86_64.rpm ..............................................[done (1.5 MiB/s)] 
Retrieving package libavformat59-5.1.2-4.5.x86_64                        (6/9),   1.0 MiB (  2.4 MiB unpacked) 
Retrieving: libavformat59-5.1.2-4.5.x86_64.rpm .........................................................[done] 
Retrieving package libavfilter8-5.1.2-4.5.x86_64                         (7/9),   1.4 MiB (  4.1 MiB unpacked) 
Retrieving: libavfilter8-5.1.2-4.5.x86_64.rpm ............................................[done (230.1 KiB/s)] 
Retrieving package libavdevice59-5.1.2-4.5.x86_64                        (8/9),  73.9 KiB (164.1 KiB unpacked) 
Retrieving: libavdevice59-5.1.2-4.5.x86_64.rpm .........................................................[done] 
Retrieving package ffmpeg-5-5.1.2-4.5.x86_64                             (9/9),   1.8 MiB (  2.4 MiB unpacked) 
Retrieving: ffmpeg-5-5.1.2-4.5.x86_64.rpm ................................................[done (231.5 KiB/s)] 

Checking for file conflicts: ..........................................................................[error] 
Detected 30 file conflicts: 

File /usr/bin/aviocat 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/bin/cws2fws 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/bin/ffescape 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/bin/ffeval 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/bin/ffhash 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/bin/ffmpeg 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/bin/ffprobe 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/bin/fourcc2pixfmt 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/bin/graph2dot 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/bin/ismindex 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/bin/pktdumper 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/bin/probetest 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/bin/qt-faststart 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/bin/seek_print 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/bin/sidxindex 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/bin/trasher 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/share/ffmpeg/ffprobe.xsd 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/share/man/man1/ffmpeg-all.1.gz 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/share/man/man1/ffmpeg-bitstream-filters.1.gz 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/share/man/man1/ffmpeg-codecs.1.gz 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/share/man/man1/ffmpeg-devices.1.gz 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/share/man/man1/ffmpeg-filters.1.gz 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/share/man/man1/ffmpeg-formats.1.gz 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/share/man/man1/ffmpeg-protocols.1.gz 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/share/man/man1/ffmpeg-resampler.1.gz 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/share/man/man1/ffmpeg-scaler.1.gz 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/share/man/man1/ffmpeg-utils.1.gz 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/share/man/man1/ffmpeg.1.gz 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/share/man/man1/ffprobe-all.1.gz 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

File /usr/share/man/man1/ffprobe.1.gz 
  from install of 
     ffmpeg-5-5.1.2-4.5.x86_64 (Packman Repository) 
  conflicts with file from package 
     ffmpeg-3-3.4.9-1.50.x86_64 (@System) 

**File conflicts happen when two packages attempt to install files with the same name but different contents. If**
 you continue, conflicting files will be replaced losing the previous content.
**Continue? [yes/no] (no): **yes 

(1/9) Installing: libavutil57-5.1.2-4.5.x86_64 .........................................................[done] 
(2/9) Installing: libpostproc56-5.1.2-4.5.x86_64 .......................................................[done] 
(3/9) Installing: libswresample4-5.1.2-4.5.x86_64 ......................................................[done] 
(4/9) Installing: libswscale6-5.1.2-4.5.x86_64 .........................................................[done] 
(5/9) Installing: libavcodec59-5.1.2-4.5.x86_64 ........................................................[done] 
(6/9) Installing: libavformat59-5.1.2-4.5.x86_64 .......................................................[done] 
(7/9) Installing: libavfilter8-5.1.2-4.5.x86_64 ........................................................[done] 
(8/9) Installing: libavdevice59-5.1.2-4.5.x86_64 .......................................................[done] 
(9/9) Installing: ffmpeg-5-5.1.2-4.5.x86_64 ............................................................[done] 
 

Firefox mp4 playback is broken again because ffmpeg-5 (libavcodec59 et al) has disappeared from Packman for Leap 15.4, it only appears for Tumbleweed: http://packman.links2linux.org/package/ffmpeg-5
:frowning:

I just found out, I am having this issue too. Chrome however does play the vids, firefox wont. :\

Found in yast a few red lines,

| libavcodec59 - FFmpeg codec library
|

|

While trying to switch to packman:
What does this mean ? Install despite the inferior architecture ?
Is that safe to do ?

I’m not sure, but I suspect it is somehow proposing i586 packages instead of x86-64 (maybe from Tumbleweed or something)?
I went ahead and posted to the Packman list to see if they know about this issue: https://lists.links2linux.de/pipermail/packman/2022-December/017282.html
Olivier

Thank you, but I am on tumbleweed.

What ever I try, in yast or through zypper, I end up with my system suggesting to uninstall pipewire spa plugins. (trying to switch to Packman)

To me it looks both leap and tumbleweed are having this issue ?

I cant play mp4 vids anymore either. ( unless I use vlc )

rpm -e --nodeps libavcodec59

and firefox will fall back to libavcodec58 from Packman. This solves this issue but it breads dependencies on other packages. >:(

The issue is that Tumbleweed will force you to switch repos to stay up-to-date, which is the main idea behind running a rolling release. Maybe this is something that could be added to a KB somewhere as a FAQ (assuming you originally went through the Pacman thing).

Problem: I updated my system and now Firefox doesn’t play videos
Answer: confirm that you’re using Pacman’s libavcodec59 and not the OpenSUSE one.

erlangen:~ # zypper if libavcodec59
Loading repository data...
Reading installed packages...


Information for package libavcodec59:
-------------------------------------
Repository     : Packman
Name           : libavcodec59
Version        : 5.1.2-15.1
Arch           : x86_64
Vendor         : http://packman.links2linux.de
Installed Size : 11.9 MiB
Installed      : Yes (automatically)
Status         : up-to-date
Source package : ffmpeg-5-5.1.2-15.1.src
Upstream URL   : https://ffmpeg.org/
Summary        : FFmpeg codec library
Description    : 
    The libavcodec library provides a generic encoding/decoding framework
    and contains multiple decoders and encoders for audio, video and
    subtitle streams, and several bitstream filters.

erlangen:~ # 

Right, that IS the answer, my point being that it could go into some KB somewhere (wiki, maybe?)

No need for doing so: firefox having problems with codecs - #21 by karlmistelberger. Consistent maintenance and administration helps in avoiding problems of that kind. See also Installing Packman Codecs