Solved Sound is skipping

It sounds like nothing fundemental is broken in your sound system, since mpg123 works and vlc works. Something is mal-installed which is why your libavcodec seems to be out of sync with mpv. You could try uninstalling libavcodec and then re-install mpv, it should pull in the correct version of libavcodec as a dependency. I'm not sure how it has got out of sync. The libavcodec is provided by the ffmpeg package. Try uninstalling ffmpeg and mpv, and then reinstalling them.

# pkg remove ffmpeg mpv
# pkg install ffmpeg mpv
- and see if that sorts out the dependencies correctly.
Somewhere along the line, you seem to have got a version of ffmpeg that is not version compatible with mpv. So the problem is a software misconfiguration, not something fundamental in a device driver or the sound layer. At least, that's how it appears.

The problem with the browser is probably similar, some kind of software misconfiguration. Your mpv should definitely be able to play videos correctly, and so should the web browser. I would get mpv working first, then re-test the browser.

Or you could just use vlc and not worry about it, although it's better to get everything working properly.

Just a FYI note:
Removing ffmpeg seemed to be a big deal. It seemed to remove many libraries. And it broke some key applications.
Reinstalling ffmpeg did not fix everything. When I restarted my system caja did not work, and jellyfin did not work.
I did a pkg upgrade. That fixed most everything, except jellyfin did not work.
Not a real big deal, but worth noting.
I just removed jellyfin, I am going to try minidlna.
 
I believe Chromium uses ALSA that talks to OSS or Pulseaudio. Is there special configs done for Chromium? Also you can check using pkg info to see what audio supports it comes with.

When chromium runs do you see any userland sound daemon running?

# pkg info -f chromium | grep -iE 'pulse|alsa|oss|sndio'
ALSA : on
PULSEAUDIO : on
SNDIO : on
libsndio.so.7.3
 
Run chromium and check top if there is an audio service running.

I can see pulseaudio and mate-volume-control.

Also, if chromium is running:
$ ps aux | grep -E 'sndiod|pulse|pipewire'
_sndio 2361 0.0 0.0 16304 2752 - I<s 08:16 0:00.00 /usr/local/bin/sndiod
walter 3078 0.0 0.1 374320 11524 - S 08:17 0:27.72 /usr/local/bin/pulseaudio --start --log-target=syslog
walter 4119 0.0 0.0 14164 2672 0 S+ 14:43 0:00.00 grep -E sndiod|pulse|pipewi
 
Really pretty strange... I use it all the time, haven't noticed any problems like that. You could try the waterfox port, that's basically firefox but with a load of telemetry code taken out. There's a waterfox port. I tend to use them interchangably. I think you just need 'pkg install waterfox'. Might be worth a try. When you run it you'll find the about box calls it 'nightly', that just means its a nightly build snapshot but the name is a bit confusing!

I am using waterfox right now. It seems to play audio smoothly. So far so good, but I have only used for a few minutes.
 
Really pretty strange... I use it all the time, haven't noticed any problems like that. You could try the waterfox port, that's basically firefox but with a load of telemetry code taken out. There's a waterfox port. I tend to use them interchangably. I think you just need 'pkg install waterfox'. Might be worth a try. When you run it you'll find the about box calls it 'nightly', that just means its a nightly build snapshot but the name is a bit confusing!

I think the problems I was having with firefox may have been caused by the extensions I was running. I was running darkreader and uBlock. With waterfox, I have those extensions installed, but not enabled. I don't need those extensions in waterfox because waterfox has a dark theme that works well, and waterfox has it's own ad blocker.
 
you may have to prevent pulseaudio from running also remove sndiod and let it uses oss natively to see if it helps.

I am reluctant to completely remove those from my system, because some apps may need them. I don't know of any way to just turn them off for chromium.
I am using waterfox now, and so far it seems to play audio and video smoothly.
I think I will consider the issue solved.
 
I think the problems I was having with firefox may have been caused by the extensions I was running. I was running darkreader and uBlock. With waterfox, I have those extensions installed, but not enabled. I don't need those extensions in waterfox because waterfox has a dark theme that works well, and waterfox has it's own ad blocker.
I routinely run with ublock, and never seen any problem like buttons not working.
 
One little thing I just remembered: to get sound working with firefox or waterfox talking directly to freebsd's OSS sound layer, you need to set the browser's backend to 'oss', as follows:-

Go to 'about:config' and set the system variable:-
media.cubeb.backend = oss

Might be worth a try, if you haven't already got that configured. That should bypass any sound daemon that is running like pulseaudio, etc. I don't have any of pulseaudio, pipewire or sndiod installed, or any gnome, xfce or kde sound components, and sound works fine in standalone mpv, mpd and waterfox/firefox, which does pretty much all I need. Audacity works fine too. Not sure about vlc, it's a long time since I tried it; mpv does pretty much everything I need. Mplayer works too, of course, and front ends like smplayer.
 
you may have to prevent pulseaudio from running also remove sndiod and let it uses oss natively to see if it helps.

with a chromium on a new install of 15.1 recently, I guess you could say the sound was skipping or like a hiccup to me...
seems like chromium pulled in pulse audio so I went ahead and installed pavucontrol which got sound working ok.
 
Back
Top