Choppy audio when recording desktop via PipeWire and Mic/Aux is enabled
Operating System Info
Other
Other OS
openSuSE Tumbleweed
OBS Studio Version
28.1.1
OBS Studio Version (Other)
No response
OBS Studio Log URL
https://obsproject.com/logs/arkgDbKjziEuVOtn
OBS Studio Crash Log URL
No response
Expected Behavior
Audio is recorded smoothly, the way it is with e.g. parecord capture.wav.
Current Behavior
Audio is very choppy and stuttery.
Steps to Reproduce
- Run a video game, in this case "Sunless Skies".
- Start a recording with the desktop audio capture enabled.
Anything else we should know?
I've attached a sample of the recorded audio to demonstrate the issue. The bug happens even when not grabbing the window, i.e. recording a blank canvas.
It also does not happen when merely recording the desktop under regular usage (e.g. playing music), it seems to only happen intermittently when running something "strenuous enough" to trigger it (e.g. a video game).
I've also attached the output of pw-dump with both OBS and Sunless Skies running.
An update: It seems that disabling the 'mic/aux capture' (enabled by default) solved the issue. I no longer hear any stuttering whatsoever when recording just the default audio monitor.
Edit: Here is a log of a successful recording, with no choppy audio: https://obsproject.com/logs/pRE6lCQEIpfBDF85
For those who have the same issue: what @haasn was saying is basically that as a workaround you can set your mic as mix/aux instead of creating multiple sources.
I don't know why.
Edit: it seems to be some kind of issue when recording from multiple audio tracks.
Did this still happen on the latest version of PipeWire and OBS Studio since you are on OpenSUSE Tumbleweed ?
Did this still happen on the latest version of PipeWire and OBS Studio since you are on OpenSUSE Tumbleweed ?
I'm on Pipewire 0.3.66 and OBS 29.0.2 (Ubuntu 22.04), seems to be fixed for me
Closing as fixed as stated above and the author did not gave any update since the my message (3 weeks).