obs-studio icon indicating copy to clipboard operation
obs-studio copied to clipboard

Choppy audio when recording desktop via PipeWire and Mic/Aux is enabled

Open haasn opened this issue 3 years ago • 2 comments

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

  1. Run a video game, in this case "Sunless Skies".
  2. 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.

haasn avatar Nov 09 '22 00:11 haasn

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

haasn avatar Nov 09 '22 00:11 haasn

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.

mijorus avatar Dec 04 '22 20:12 mijorus

Did this still happen on the latest version of PipeWire and OBS Studio since you are on OpenSUSE Tumbleweed ?

tytan652 avatar Mar 08 '23 20:03 tytan652

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

mijorus avatar Mar 09 '23 10:03 mijorus

Closing as fixed as stated above and the author did not gave any update since the my message (3 weeks).

tytan652 avatar Mar 29 '23 19:03 tytan652