Bug 1226383 - Firefox 127 fails to play H.264 using libavcodec61
Summary: Firefox 127 fails to play H.264 using libavcodec61
Status: RESOLVED INVALID
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Firefox (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Factory Mozilla
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-15 10:33 UTC by Adam Reichold
Modified: 2024-06-16 16:52 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Reichold 2024-06-15 10:33:48 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
Comment 1 Wolfgang Rosenauer 2024-06-16 14:00:48 UTC
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).
Comment 2 Adam Reichold 2024-06-16 14:22:15 UTC
(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.
Comment 3 Adam Reichold 2024-06-16 15:10:13 UTC
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.
Comment 4 Wolfgang Rosenauer 2024-06-16 15:46:09 UTC
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
Comment 5 Adam Reichold 2024-06-16 16:44:58 UTC
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
Comment 6 Adam Reichold 2024-06-16 16:52:23 UTC
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.