Closed yoqto closed 6 months ago
Can you try the latest commit?
Sure: 5c47e1ab fixes it for me! :+1: Whatever I throw at it now, it records just fine, even when combining multiple sampling rates at random and from various source applications. Thank you so much, that was much faster than I'd hoped for!
Hi,
I adapted a single setting from the default pipewire config for my user:
This prevents software resampling when listening to mixed 44.1kHz and 48kHz audio as my onboard sound chip supports both and switches between them just fine, depending on what media I consume at the moment.
When recording or streaming with sound played via native pipewire output and recorded via this plugin with OBS, only 48/96kHz sources sound fine in the recording/stream, 44.1kHz sources are heavily distorted. To me locally on my headphones everything sounds just fine, no matter the source material sampling rate.
Steps to reproduce:
pw-top
)pw-top
says OBS is recording at 48kHzmpv
's nativepipewire
output:testfiles.tar.gz
This is not limited to mpv, but seem to happen with other audio sources as well - maybe even somewhat randomly.
pw-record -v somefile.wav
does not appear to have this issue. I have this plugin set up to record everything except forvesktop.bin
to exclude audio from discord calls. Only recordingmpv
via the plugin produces the same distorted results.I've found two possible workarounds:
pipewire.conf
to the default (-> 48kHz only)pw-record -v somefile.wav
running at the same time as recording through OBSGentoo Linux Pipewire 1.0.4 obs-pipewire-audio-capture 1.1.4, built from source Wireplumber 0.4.7 OBS 30.1 running on the host (no Flatpak or docker or anything) Kernel 6.8.1 KDE Plasma 6.0.2 Some generic onboard sound chip on AMD X570 -> module
snd_hda_intel
If there's more info I can provide or a patch to try out, please let me know.