Bugzilla – Bug 1226383
Firefox 127 fails to play H.264 using libavcodec61
Last modified: 2024-06-16 16:52:23 UTC
The upcoming Firefox version 127 from [1] fails to play videos using the H.264 codec using libavcodec61 (matching FFmpeg 7) and logs [Child 17872, MediaDecoderStateMachine #1] WARNING: Decoder=7f4534045f00 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - mozilla::MediaResult mozilla::FFmpegDataDecoder<61>::InitDecoder(AVDictionary**): Couldn't open avcodec: file /home/abuild/rpmbuild/BUILD/firefox-127.0/dom/media/MediaDecoderStateMachineBase.cpp:167 to stderr. Removing libavcodec61 so that only libavcodec60 remains appears to resolve the problem for now. [1] https://build.opensuse.org/package/show/mozilla/firefox127
It seems to work for me. Please check which version of libavcodec is installed exactly. If you got the openSUSE repo one it most likely still has no H.264 support. Make sure you try the packman version (or any other with H.264 support).
(In reply to Wolfgang Rosenauer from comment #1) > It seems to work for me. > Please check which version of libavcodec is installed exactly. If you got > the openSUSE repo one it most likely still has no H.264 support. Make sure > you try the packman version (or any other with H.264 support). Yes, I am using the Packman Essentials and the reported behaviour is triggered when libavcodec61 7.0-1699.2.pm.6 is installed.
Maybe some additional combinatorics: The Firefox 126 package from OBS worked with both libavcodec60 and libavcodec61. The Mozilla binaries for Firefox 127 however show the same issue when libavcodec61 is present. The Flatpak builds of Firefox 127 also work but I guess that is to be expected since they do not use the system-provided libavcodec.
Hmm, I cannot reproduce. Please post any video where you see this. I am playing H.264 videos here and even checked in the process space that really libavcodec.61.3.100 is loaded
I was testing this using https://tekeye.uk/html/html5-video-test-page or more specifically https://tekeye.uk/html/images/Joren_Falls_Izu_Jap.mp4
And now I cannot reproduce it either. I think there were updated packages shipped by Packman after I wrote this, so I suspect it was an issue with libavcodec61 rather than Firefox and I just noticed it with Firefox because it is the only application which regularly encounters H.264 on my system. This would also fit with the Mozilla binaries not working either. Sorry for the noise.s would also fit with the Mozilla binaries not working either. Sorry for the noise.