I have a machine here running a freshly updated and rebooted Debian
testing where I can't get Firefox (more specifically `firefox-esr`) to
use audio.
I have a machine here running a freshly updated and rebooted Debian
testing where I can't get Firefox (more specifically `firefox-esr`) to
use audio.
Check if installing apulse helps. It's supposed to make obstinate apps like Firefox act as though pulseaudio is installed, dead technology, which is not needed when pipewire and wireplumber are working.
I have a machine here running a freshly updated and rebooted Debian
testing where I can't get Firefox (more specifically `firefox-esr`) to
use audio.
Check if installing apulse helps. It's supposed to make obstinate apps like >> Firefox act as though pulseaudio is installed, dead technology, which is not >> needed when pipewire and wireplumber are working.
Hmm... let's see.
Hmm... no, didn't make a difference: after installing `apulse` the same `firefox -P` still behaves identically (with the same error messages),
and so does `apulse firefox -P`.
On 15/08/2024 02:32, Stefan Monnier wrote:
Error no decoder found for audio/mp4a-latm
It relies on non-free AAC codec that you likely do not have installed. Perhaps chromium has a built-in implementation.
I have a machine here running a freshly updated and rebooted Debian
testing where I can't get Firefox (more specifically `firefox-esr`) to
use audio. E.g. I go to
https://tekeye.uk/html/html5-video-test-page
and none of the videos give me any audio output.
I'm using pipewire and it generally works fine with other applications.
E.g. `paplay` successfully plays my music files, and `chromium` on the
same web page gives me audio output just fine.
Stefan Monnier composed on 2024-08-14 15:32 (UTC-0400):
I have a machine here running a freshly updated and rebooted Debian
testing where I can't get Firefox (more specifically `firefox-esr`) to
use audio.
Check if installing apulse helps. It's supposed to make obstinate apps like Firefox act as though pulseaudio is installed, dead technology, which is not needed when pipewire and wireplumber are working.
Aha -- so you are using pipewire's pulseaudio emulation?
Search engineering (hah) turns up some noises like this [1] which at
least suggest to tinker with sandbox settings. They might have painted themselves again into a corner by not allowing some processes to see
some paths in the file system. Granted, this is just a thin thing to
go by, sorry.
Error no decoder found for audio/mp4a-latmIt relies on non-free AAC codec that you likely do not have installed.
That's a side-issue: the web page I pointed to has various videos in
various formats and none of them work (hence the error messages
mentioning other "decoder not found" mime types).
Error no decoder found for audio/mp4a-latmIt relies on non-free AAC codec that you likely do not have installed.
I have no idea what sandbox settings you're referring to.[1a] also: about:config -> security.sandbox.*
How/where can I find those to "tinker" with?
If you have libavcodec installed (from "Recommends") then it might be some testing issue. There is no problem in bookworm.
Firefox exposes some codec info in about:support#media
I have a machine here running a freshly updated and rebooted Debian
testing where I can't get Firefox (more specifically `firefox-esr`) to
use audio. E.g. I go to
https://tekeye.uk/html/html5-video-test-page
and none of the videos give me any audio output.
I'm using pipewire and it generally works fine with other applications.
E.g. `paplay` successfully plays my music files, and `chromium` on the
same web page gives me audio output just fine.
When I have `pavucontrol` open, I can "see" that Firefox does not appear
in the "Playback" tab, contrary to `paplay` and `chromium`.
When I try `firefox -P` and use a fresh new profile, the same
problem occurs. Also I can see errors in the output such as:
[Child 13905, MediaDecoderStateMachine #1] WARNING: Decoder=7fe182f6a100 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - Error no decoder found for audio/mp4a-latm: file ./dom/media/MediaDecoderStateMachineBase.cpp:164
[Child 13905, MediaDecoderStateMachine #1] WARNING: Decoder=7fe182875800 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - Error no decoder found for audio/mp4a-latm: file ./dom/media/MediaDecoderStateMachineBase.cpp:164
[Child 13905, MediaDecoderStateMachine #1] WARNING: Decoder=7fe181797300 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - Error no decoder found for audio/mp4a-latm: file ./dom/media/MediaDecoderStateMachineBase.cpp:164
[Child 13905, MediaDecoderStateMachine #1] WARNING: Decoder=7fe181797300 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - Error no decoder found for video/avc: file ./dom/media/MediaDecoderStateMachineBase.cpp:164
[Child 13905, MediaDecoderStateMachine #1] WARNING: Decoder=7fe181797c00 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - Error no decoder found for audio/mp4a-latm: file ./dom/media/MediaDecoderStateMachineBase.cpp:164
[Child 13905, MediaDecoderStateMachine #1] WARNING: Decoder=7fe181796a00 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - Error no decoder found for audio/mp4a-latm: file ./dom/media/MediaDecoderStateMachineBase.cpp:164
[Child 13905, MediaDecoderStateMachine #1] WARNING: Decoder=7fe181797c00 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - Error no decoder found for video/avc: file ./dom/media/MediaDecoderStateMachineBase.cpp:164
[Child 13905, MediaDecoderStateMachine #1] WARNING: Decoder=7fe181796a00 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - Error no decoder found for video/avc: file ./dom/media/MediaDecoderStateMachineBase.cpp:164
[Child 13905, MediaDecoderStateMachine #1] WARNING: Decoder=7fe181797f00 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - Error no decoder found for audio/mp4a-latm: file ./dom/media/MediaDecoderStateMachineBase.cpp:164
[Child 13905, MediaDecoderStateMachine #1] WARNING: Decoder=7fe181797f00 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - Error no decoder found for video/avc: file ./dom/media/MediaDecoderStateMachineBase.cpp:164
[Child 13905, BackgroundThreadPool #1] WARNING: 7fe1838484c0 OpenCubeb() failed to init cubeb: file ./dom/media/AudioStream.cpp:281
[Child 13905, MediaDecoderStateMachine #1] WARNING: Decoder=7fe17c60cd00 [OnMediaSinkAudioError]: file ./dom/media/MediaDecoderStateMachine.cpp:4604
The last two lines occur when I click on the "unmute" button in the
video (on the above web page) which is muted by default.
Any idea what might be going on and/or how to track it down further?
Stefan
I have not found the real source of the problem,
but I have found out why it worked on other machines and not on this one:
some months
(years?) ago I made this i386 machine use `firefox-esr:amd64` because
Firefox tabs kept crashing (even for fairly simple pages).
[ I've been using the i386 version of `firefox-esr` without problem on
other machines, so I don't know why it crashed on this one, but
switching to the amd64 version did "solve" the problem back then.
My crystal ball told me that it was probably due to the relatively
large about of RAM (24G) available in this machine confusing Firefox
into the illusion that it can allocate a lot more memory than the i386
architecture really allows, and thus getting memory allocation
failure. ]
I do have it installed. I also tried to install `libavcodec-extra` atYou do not have AAC in the list of supported codecs and I am unsure if it is due to alsa backend or due to a missed package (libfdk-aac2, gstreamer1.0-fdkaac?).
some point (when I saw that `mp4a-latm` 🙂), but it made no difference
of course.
I would revert these settings to defaults unless you have confirmed thatFirefox exposes some codec info in about:support#mediaThanks. When I "disable sandboxing" (by setting the three vars
I mentioned in my answer to Tomas) it says:
they are really necessary.
Audio Backend: alsaI have pulse-rust here.
If you still have motivation to debug i386 vs. amd64 issue, have you
tried to start firefox with a clean profile (--profile /some/dir)?
I would check if there are earlier messages related to audio backend, maybe during firefox startup. Perhaps verbosity of some component should be increased
https://firefox-source-docs.mozilla.org/xpcom/logging.html
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 164:36:49 |
| Calls: | 12,095 |
| Calls today: | 3 |
| Files: | 15,001 |
| Messages: | 6,517,798 |