On 06.03.2025 15:46, Jan Stary wrote:
Hi,

On Mar 06 10:48:06, em...@kollof.nl wrote:
I was wondering if people with USB audio interfaces have the same issue
as me. When using the microphone of my usb audio interface, the recorded
audio starts to stutter/pop, indicating buffering problems, usually when
I do something that causes a bit of load on the system (e.g. starting a
browser). A good example of this happening is here:
https://youtu.be/Vbi5f1SlXZw?si=5pjaMI4aAf6Luewx&t=380 (at the 6:20
mark, the link should take you there)

I don't have this problem with any of my USB audio inerfaces.

It Works For Me (tm)

How exactly are you recording this audio/video?

I use ffmpeg to grab the desktop (x11grab), encode using vaapi
(hardware), including the desktop audio (though mon) and webcam is
video(8) positioned so ffmpeg grabs it.

My system has 32GB of ram, and I have an 8-core AMD Ryzen 7 5800X3D, it
should be fast enough to do this comfortably. RAM and CPU should not be
bottlenecks.

Can you replicate the problem with plain aucat -o?

Yes, eventually it will garble like in the video. Mostly when I do
something that spikes the system load (starting something intensive,
like a browser, libreoffice, etc). This happens in 7.6 and in -current.

I would suspect the recording software rather than
tha audio subsystem itself, and it buffers etc.

I've thrown massive buffers at it, it still happens.
At any rate, try to do the same with sndiod -ddd
running in a script(1) and show the results:
any xruns will be reported there.

I did see a few of these:
rsnd/0: rec hw xrun, rused = 480 / 3840

But I have a videoconferencing sessiontn jitsi meet tomorrow, and I will
run sndiod in the foreground with debugging on, so I can see what's
going on when my meeting partners claim I sound like a robot again. This
always happens.
I did try some streaming and this is notoriously hard to reproduce.
Sometimes it works fine, sometimes it just goes loopy (as demonstrated
in the video).
Hopefully I have some more info tomorrow.

This also happens while videoconferencing with platforms like Teams and
Jitsi meet. The remote end claims I sound like a 'robot'.

Again, there are layers betwenn sndiod and what Teams and Jitsi
are doing (inside a browser I suppose? Which browser? Every browser?).

Every browser. I usually use chromium.
Oh this happens on both stable (7.6) and -current. Also updated to the
latest snapshot which shows the same behaviour.

sndiod_flags=-s default -m play,mon -s mon -r 48000 -b 24000

When you record audio with aucat -o, or sox's rec(1),
or any other _audio_ program, do you see the same problem?
With these sndiod flags or the defults?

With defaults, and with these flags. It will be fine for a time (no
fixed amount, it's pretty random), and then suddenly it starts to
chop/flake/pop/etc.

Could it be ulimit/login.conf? Would tweaking the daemon class help?


Reply via email to