After installing OBS Studio, the sound disappeared in Firefox-ESR & Tor-Browser

There is sound in Telegram and Falkon.
I don't even know where to start.

# cat /dev/sndstat
Bash:
Installed devices:
pcm0: <ATI R6xx (HDMI)> (play)
pcm1: <Realtek ALC887 (Rear Analog)> (play/rec) default
pcm2: <Realtek ALC887 (Front Analog)> (play/rec)
pcm3: <Realtek ALC887 (Internal Digital)> (play)
No devices installed from userspace.

# sysctl hw.snd.default_unit
Code:
hw.snd.default_unit: 1

GTK-mixer opens and works fine.
But "pulsa" has been hanging like this for about 30 minutes, the clock is spinning... see picture.
 

Attachments

  • 2025-07-03_19-53.png
    2025-07-03_19-53.png
    9.1 KB · Views: 162
Well, wow.

Have you tried rebooting the whole metal host? That can restart some things that were forgotten about during the installation.
 
astyle, thank you! Look what happens... it's treated like this:
1. delete OBS-Studio;
2. delete "pulseaudio";
3. the pulse plugin for XFCE4 (mixer) is also deleted.
4. reboot.
5. profit: there is sound!

We do steps 1-5, but only with installation --->>> the sound disappears again in Firefox-Tor-browser, but is in Telegram and Falkon.
 
More of a workaround, but I had to use sndio for Firefox for best performance with a 4K video (post), and if mixer/default audio still works it sounds like using sndio would avoid Firefox using Pulse.
 
# pkg query -e '%a=1' '%n' | grep pulseaudio
Code:
pulseaudio
# pkg query -e '%a=1' '%n' | grep sndio
Code:
sndio
# pkg query -e '%a=1' '%n' | grep pipewire
Code:
pipewire
I am a happy owner of three whales. All three whales were installed as dependencies.
Now I need to remove everything except sndio. But your guide saved me - now the sound is everywhere. In /etc/rc.conf
I wrote sndiod_enable="YES".
But why without sndio the sound in Firefox did not work when installing OBS-Studio. I can't explain.
I didn't understand why the "pulse" mixer does not work...
Okay, I'll figure it out.
 
Well, this is exactly why I don't bother putting in effort to exclude PulseAudio in favor of something else like sndio. I just select every single sound system available when I compile my ports. And that way, I don't worry about sound not being available in a given app - I got sound everywhere, even in places I don't want - but then it's just a matter of editing a .conf file to tell a specific app to shut up and not make sounds at me. 😤
 
astyle, yes, I regularly read your useful posts about how you approach things.
I've taken them on board. It's just that my machine is so old that I can't compile on it yet.
But on another PC, yes, they'll most likely follow your recommendations! Thank you!
 
Maybe try setting media.cubeb.backend option to any sound server you want, i.e oss, pulse(?), pipewire(?) in about:config page of both Firefox browsers. OBS should have had installed another sound server and that could cause issues. Personally, I don't feel like using anything than pure OSS unlike those "sound server"s.
 
Yeah, had a similar issue by losing audio after installing pipewire, had to specify the backend on FireFox with media.cubeb.backend. Tor browser is based on Firefox.

I eventually noticed it is a bit of a fuss to have multiple audio backends, and I see them as just overhead with more bug surface, while OSS works beautifuly, so I avoid any package or port that wants to pull stuff like Pulseaudio. You can achieve the same as OBS with ffmpeg, as far as I know, for example.
 
Yeah, had a similar issue by losing audio after installing pipewire, had to specify the backend on FireFox with media.cubeb.backend. Tor browser is based on Firefox.

I eventually noticed it is a bit of a fuss to have multiple audio backends, and I see them as just overhead with more bug surface, while OSS works beautifuly, so I avoid any package or port that wants to pull stuff like Pulseaudio. You can achieve the same as OBS with ffmpeg, as far as I know, for example.
Yeah - if you're willing to put in the time and effort it takes to actually learn how to actually use ffmpeg and all of its flags to achieve the same results. There's kind of a reason why OBS Studio exists in the first place, along with Premiere and Open Source variants like KDEnlive...
 
Yeah - if you're willing to put in the time and effort it takes to actually learn how to actually use ffmpeg and all of its flags to achieve the same results. There's kind of a reason why OBS Studio exists in the first place, along with Premiere and Open Source variants like KDEnlive...
Well, you are not wrong: By the end everyone does what is more convenient for them: I still think it a good idea to know how to use the computer avoiding big apps JIC (at a minimum, some of them won't work on other platforms, or you avoid pulling a ton of unwanted dependencies). But hey, what I need on my computer are not universal truths! And it is not like I can choose: I am sure OBS studio will melt my poor 14 year old laptop into liquid metal and plastic 😅
 
And it is not like I can choose: I am sure OBS studio will melt my poor 14 year old laptop into liquid metal and plastic
FFMPEG will also melt your hardware if you try to use THAT to achieve the kind of things that OBS Studio is famous for. Even small and simple tasks like coverting a 30-minute 480p movie from .avi to .mp4 - they will take a fairly long time on your hardware if you use FFMPEG, and done enough times, they will melt it. I've got a similar story from 2012 where I also tried to do format conversion on a laptop (with win7 on a Celeron) that was bought in 2006. Even with a simple and straighforward task, I had about a terabyte's worth of movies to convert. I found the software to do the job, installed it, the software ran fine (albeit slow) - but then that laptop fried from the stress on the hardware.
 
Back
Top