Snap package no longer detects ffmpeg media codecs since switching to core24
Categories
(Firefox Build System :: Third Party Packaging, defect)
Tracking
(firefox-esr115 unaffected, firefox-esr128 unaffected, firefox130 unaffected, firefox131 unaffected, firefox132+ verified)
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox-esr128 | --- | unaffected |
| firefox130 | --- | unaffected |
| firefox131 | --- | unaffected |
| firefox132 | + | verified |
People
(Reporter: ke5trel, Assigned: gerard-majax)
Details
(Keywords: regression)
Attachments
(2 files, 1 external file)
H264 videos started stuttering today with the latest snap package Nightly 132.0a1 (2024-09-24) on Ubuntu 24.04. about:support indicates H264 and AAC codecs are unavailable for software decoding when previously they were working. They still work in the Beta 131.0b9 snap package which uses core22.
Likely regressed by the switch to core24:
https://github.com/canonical/firefox-snap/pull/84
| Assignee | ||
Comment 1•2 years ago
|
||
Amin can you take a look? I have no idea of the difference
| Assignee | ||
Comment 2•2 years ago
|
||
alex@portable-alex:~/codaz/Mozilla/glibc$ snap run firefox_edge
update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/local/share/doc /usr/local/share/doc none bind,ro 0 0): cannot open directory "/usr/local/share": permission denied
update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/gimp/2.0/help /usr/share/gimp/2.0/help none bind,ro 0 0): cannot write to "/var/lib/snapd/hostfs/usr/share/gimp/2.0/help" because it would affect the host in "/var/lib/snapd"
update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/sphinx_rtd_theme /usr/share/sphinx_rtd_theme none bind,ro 0 0): cannot write to "/var/lib/snapd/hostfs/usr/share/sphinx_rtd_theme" because it would affect the host in "/var/lib/snapd"
update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/xubuntu-docs /usr/share/xubuntu-docs none bind,ro 0 0): cannot write to "/var/lib/snapd/hostfs/usr/share/xubuntu-docs" because it would affect the host in "/var/lib/snapd"
Gtk-Message: 19:17:39.935: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
/usr/share/libdrm/amdgpu.ids: No such file or directory
[fluent] Missing message in locale fr: menu-view-review-checker
libva info: VA-API version 1.20.0
libva info: Trying to open /snap/firefox/5000/gnome-platform/usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_14
/usr/share/libdrm/amdgpu.ids: No such file or directory
libva info: va_openDriver() returns 0
/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
^CExiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
alex@portable-alex:~/codaz/Mozilla/glibc$ sudo snap refresh
[sudo] Mot de passe de alex :
firefox_edge (edge) 132.0a1 par Mozilla✓ mis à jour
firefox_nightly (edge) 132.0a1 par Mozilla✓ mis à jour
alex@portable-alex:~/codaz/Mozilla/glibc$ snap run firefox_edge
libpxbackend-1.0.so: cannot open shared object file: No such file or directory
Failed to load module: /home/alex/snap/firefox_edge/common/.cache/gio-modules/libgiolibproxy.so
Gtk-Message: 19:21:34.338: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
/usr/share/libdrm/amdgpu.ids: No such file or directory
[fluent] Missing message in locale fr: menu-view-review-checker
libva info: VA-API version 1.20.0
libva info: Trying to open /snap/firefox/5020/gpu-2404/usr/lib/x86_64-linux-gnu/dri//radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_20
/usr/share/libdrm/amdgpu.ids: No such file or directory
libva info: va_openDriver() returns 0
/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
/usr/share/libdrm/amdgpu.ids: No such file or directory
There are much more errors about the missing file with the new build on core24
| Assignee | ||
Comment 3•2 years ago
|
||
It's weird, h264 hw decoding is reported correctly but not sw. Looks like we dont precisely report the library shared object we successfully loaded ...
Comment 4•2 years ago
|
||
Launching the latest core24-based Nightly snap from a terminal using snap run firefox and visiting YouTube the following were printed on the terminal which weren't present before with core22 (aside from the atk warning):
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
Gtk-Message: 14:45:20.109: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[Child 8859, MediaDecoderStateMachine #1] WARNING: Decoder=7c0787cf3700 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - Error no decoder found for audio/mp4a-latm: file /build/firefox/parts/firefox/build/dom/media/MediaDecoderStateMachineBase.cpp:167
[Child 8859, MediaDecoderStateMachine #1] WARNING: Decoder=7c0787cf3d00 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - Error no decoder found for audio/mp4a-latm: file /build/firefox/parts/firefox/build/dom/media/MediaDecoderStateMachineBase.cpp:167
[Child 8859, MediaDecoderStateMachine #1] WARNING: Decoder=7c0787cf4f00 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - Error no decoder found for audio/mp4a-latm: file /build/firefox/parts/firefox/build/dom/media/MediaDecoderStateMachineBase.cpp:167
[Child 8859, MediaDecoderStateMachine #1] WARNING: Decoder=7c0787cf4900 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - Error no decoder found for audio/mp4a-latm: file /build/firefox/parts/firefox/build/dom/media/MediaDecoderStateMachineBase.cpp:167
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen
Doing a
$ ldd -r /snap/firefox/5020/usr/lib/x86_64-linux-gnu/libavcodec.so.60
in the snap env suggests that some dependencies are missing from the snap, libjxl0.7 libsvtav1enc1d1 libvpl2
Checking a recent build log, https://launchpadlibrarian.net/751308540/buildlog_snap_ubuntu_noble_amd64_firefox-snap-nightly_BUILDING.txt.gz
Lint warnings:
- library: usr/lib/x86_64-linux-gnu/libavcodec.so.60.31.102: missing dependency 'libSvtAv1Enc.so.1'. (https://snapcraft.io/docs/linters-library)
- library: usr/lib/x86_64-linux-gnu/libavcodec.so.60.31.102: missing dependency 'libjxl.so.0.7'. (https://snapcraft.io/docs/linters-library)
- library: usr/lib/x86_64-linux-gnu/libavcodec.so.60.31.102: missing dependency 'libjxl_threads.so.0.7'. (https://snapcraft.io/docs/linters-library)
- library: usr/lib/x86_64-linux-gnu/libavcodec.so.60.31.102: missing dependency 'librav1e.so.0'. (https://snapcraft.io/docs/linters-library)
- library: usr/lib/x86_64-linux-gnu/libavcodec.so.60.31.102: missing dependency 'libvpl.so.2'. (https://snapcraft.io/docs/linters-library)
- library: usr/lib/x86_64-linux-gnu/libavutil.so.58.29.100: missing dependency 'libvpl.so.2'. (https://snapcraft.io/docs/linters-library)
- library: usr/lib/x86_64-linux-gnu/libswresample.so.4.12.100: missing dependency 'libvpl.so.2'. (https://snapcraft.io/docs/linters-library)
| Assignee | ||
Comment 6•2 years ago
|
||
(In reply to seb128 from comment #5)
Doing a
$ ldd -r /snap/firefox/5020/usr/lib/x86_64-linux-gnu/libavcodec.so.60
in the snap env suggests that some dependencies are missing from the snap, libjxl0.7 libsvtav1enc1d1 libvpl2
Checking a recent build log, https://launchpadlibrarian.net/751308540/buildlog_snap_ubuntu_noble_amd64_firefox-snap-nightly_BUILDING.txt.gz
Lint warnings:
- library: usr/lib/x86_64-linux-gnu/libavcodec.so.60.31.102: missing dependency 'libSvtAv1Enc.so.1'. (https://snapcraft.io/docs/linters-library)
- library: usr/lib/x86_64-linux-gnu/libavcodec.so.60.31.102: missing dependency 'libjxl.so.0.7'. (https://snapcraft.io/docs/linters-library)
- library: usr/lib/x86_64-linux-gnu/libavcodec.so.60.31.102: missing dependency 'libjxl_threads.so.0.7'. (https://snapcraft.io/docs/linters-library)
- library: usr/lib/x86_64-linux-gnu/libavcodec.so.60.31.102: missing dependency 'librav1e.so.0'. (https://snapcraft.io/docs/linters-library)
- library: usr/lib/x86_64-linux-gnu/libavcodec.so.60.31.102: missing dependency 'libvpl.so.2'. (https://snapcraft.io/docs/linters-library)
- library: usr/lib/x86_64-linux-gnu/libavutil.so.58.29.100: missing dependency 'libvpl.so.2'. (https://snapcraft.io/docs/linters-library)
- library: usr/lib/x86_64-linux-gnu/libswresample.so.4.12.100: missing dependency 'libvpl.so.2'. (https://snapcraft.io/docs/linters-library)
Thanks seb128, I'm hacking the snap and check if it is enough
| Assignee | ||
Comment 7•2 years ago
|
||
nice, my repackage debug build does not show the missing dependency warning anymore ... youtube works ... but. All the content of about:support is missing somehow ?!
| Assignee | ||
Comment 8•2 years ago
|
||
Seems to be enough?
| Assignee | ||
Comment 9•2 years ago
|
||
Updated•2 years ago
|
| Assignee | ||
Comment 10•2 years ago
|
||
Ok so https://launchpad.net/~mozilla-snaps/firefox/+snap/firefox-snap-nightly/+build/2609041 is now on the store under revision 5028 and we should be back to something correct, I get the same about:support list of supported codecs as in comment 8.
| Reporter | ||
Comment 11•2 years ago
|
||
Confirming the latest snap edge channel revision 5028 has working H264 and AAC codecs like before.
Description
•