Skip to content

Audio issue with multiple inputs on the same source (OBS 30.1.2, Flatpak, PipeWire) #10808

Open

Description

@guilhem

When using multiple audio inputs on the same audio source in OBS, the sound quality becomes extremely poor and choppy. This issue occurs with my main "mic" input muted and another "audio input capture (pulseaudio)" on the same default audio source. When the "mic" input is redirected to another arbitrary source, the audio quality significantly improves. This issue is observed on OBS version 30.1.2 installed via Flatpak, using PipeWire for audio management.

Operating System Info

Other

Other OS

Ubuntu 24.04

OBS Studio Version

30.1.2

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/FEDqOVF67OAVZP9I

OBS Studio Crash Log URL

No response

Expected Behavior

The audio quality should remain consistent and clear regardless of the number of inputs on the same audio source.

Current Behavior

The audio becomes extremely poor and choppy when multiple inputs are added to the same audio source. Redirecting the "mic" input to another source resolves the issue and the audio quality improves.

Steps to Reproduce

  1. Install OBS version 30.1.2 via Flatpak.
  2. Configure PipeWire as the audio backend.
  3. Add a "mic" input and an "audio input capture (pulseaudio)" to the same audio source (default).
  4. Mute the "mic" input.
  5. Observe the audio quality.

Anything else we should know?

sound example
https://github.com/obsproject/obs-studio/assets/486876/d22fa1e6-8ab6-4d5d-9968-7af279d26fd5

Activity

  1. kkartaltepe commented on Jun 11, 2024

    @kkartaltepe
    Collaborator

    Replicated, it doesnt appear to affect output captures just input captures.

  2. added
    platform/linux
    issue/confirmed
    on Jun 11, 2024
  3. AdrianusWest commented on Jul 26, 2024

    @AdrianusWest

    Version 30.2.1-1, Arch linux:

    The microphone/add-on partially pierces the sound from the output stream capture. As a result, the microphone writes cleanly, but the external signal (e.g. from a browser) is duplicated with a slight delay and sounds echoed on the recording.

    20:24:47.015: pulse-input: Server name: 'PulseAudio (on PipeWire 1.2.1) 15.0.0'
    20:24:47.015: pulse-input: Audio format: s32le, 48000 Hz, 4 channels
    20:24:47.015: pulse-input: Started recording from 'alsa_input.usb-Yamaha_Corporation_Steinberg_UR22C-00.analog-surround-40'
    20:24:47.016: [Loaded global audio device]: 'Микр/доп'
    20:24:47.016:     - filter: 'Шумоподавление' (noise_suppress_filter_v2)
    20:24:47.016:     - filter: 'Компрессор' (compressor_filter)
    20:24:47.016: [window-capture: 'Захват окна (Xcomposite)'] update settings:
    20:24:47.016: 	title: unknown
    20:24:47.016: 	class: unknown
    20:24:47.016: 
    20:24:47.017: pulse-input: Server name: 'PulseAudio (on PipeWire 1.2.1) 15.0.0'
    20:24:47.017: pulse-input: Audio format: s32le, 48000 Hz, 2 channels
    20:24:47.018: pulse-input: Started recording from 'alsa_output.usb-Yamaha_Corporation_Steinberg_UR22C-00.iec958-stereo.monitor'
    20:24:47.019: Switched to scene 'Сцена 1'
    20:24:47.019: ------------------------------------------------
    
  4. A1RM4X commented on Aug 16, 2024

    @A1RM4X

    Replicated, I actually opened a report on the pipewire's gitlab thinking it was on their end... I do realise now it could be an OBS / Linux bug.

    FYI: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3861

  5. amenoko commented on Mar 18, 2025

    @amenoko

    Assuming I'm understanding correctly and this is the same issue, I can replicate it as well, on two computers. This happens in the flatpak 30.2.2 and in the Arch repo package 31.0.1-2. One of these audio tracks ends up skipping and glitching. Whichever comes second, I believe.

    Image

    I reported this on the Pipewire Gitlab in July https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/4150 but unfortunately the problem persists until now. I switched to Pulseaudio at the time because it didn't have this issue. gitlab.freedesktop.org is currently unavailable until the 22nd.

    if I run two instances of pw-record recording from the same mic simultaneously, both output files sound fine. If I record from that same mic in OBS at the same time as those two pw-record instances, all three sound fine. Perhaps this is an OBS issue in the way it interacts with Pipewire?

  6. A1RM4X commented on Mar 18, 2025

    @A1RM4X

    Thanks for sharing your feedback @amenoko !

    I have no idea what is the process to aggravate the priority of this Issue, but this should be the TOP one on Linux. It is impossible to create any multi track recording with only one hardware device on Linux with OBS. And it has been the case for a long time... This feature is a almost a requirement when it comes to content creation...

  7. stephematician commented on Aug 21, 2025

    @stephematician
    Contributor

    I have no idea what is the process to aggravate the priority of this Issue, but this should be the TOP one on Linux. It is impossible to create any multi track recording with only one hardware device on Linux with OBS. And it has been the case for a long time... This feature is a almost a requirement when it comes to content creation...

    I believe a workaround (in the meantime) would be to create a loopback node in pipewire?

  8. A1RM4X commented on Jan 21, 2026

    @A1RM4X

    With the help of Cryssness, I was able to fix my audio issue with OBS. I believe this issue surfaces after an update in pipewire related to the sound buffer of the device.

    The fix: setup a fixed buffer in the pipewire properties.

    How to fix: create a configuration file in your %HOME pipewire configuration (~/.config/pipewire/pipewire.conf.d)

    nano ~/.config/pipewire/pipewire.conf.d/99-low-latency.conf

    context.properties = {
        default.clock.rate = 48000
        default.clock.allowed-rates = [ 44100 48000 ]
        default.clock.quantum = 512
        default.clock.min-quantum = 512
        default.clock.max-quantum = 512
    }
    

    then restart wireplumber / pipewire services

    systemctl --user restart wireplumber.service
    systemctl --user restart pipewire.service
    

    Launch OBS and enjoy recording multiple track on Linux without any issue / crackly sound.

    Cheers!

  9. added a commit that references this issue on Mar 2, 2026
  10. winex commented on Apr 16, 2026

    @winex

    FYI:

    settings could be changed w/o restarting anything (probably not every one, but most)
    from pipewire-bin/debian or pipewire-utils/fedora package

    • change stuff:
    $ pw-metadata -n settings 0 clock.min-quantum 512
    $ pw-metadata -n settings 0 clock.max-quantum 1024
    • check values:
    $ pw-metadata -n settings
    • monitor streams, watch for errors, check formats, etc...
    $ pw-top

    press Q to quit

    latency

    btw, 8192/48 (kHz) == 170ms is insanely high latency!
    if you are setting such quantum values for anything to avoid crackling, then your CPU is overloaded with something else: check whether pipewire server process correctly gets RT priority and/or try using -rt kernel instead (ubuntu-studio anyone?)...

  11. Lunxara commented on Jun 9, 2026

    @Lunxara

    Hey I have deleted my old comment and am coming here to report that recently this issue came back in full force, dunno if from a Kernel update the recent VLC plugin updates or the most recent Nvidia driver update but suddenly any audio that was coming through our pulse audio layer sources had crackling. Our fix of doing

        #default.clock.rate          = 48000
        #default.clock.allowed-rates = [ 48000 ]
        #default.clock.quantum       = 1024
        default.clock.min-quantum   = 512
        #default.clock.max-quantum   = 2048
    

    in our pipewire config wasn't even working anymore. What finally fixed this, finally was replacing our sources with direct Pipewire sources using this plugin https://github.com/dimtpap/obs-pipewire-audio-capture The second we started using this and stopped using audio sources from the pipewire-pulse layer our recordings stopped having audio crackling and distortion and corruption. If the devs of OBS watching this thread could please integrate this natively that would be absolutely fantastic as this seems to be the definitive fix to finally squash this bug that keeps rearing it's ugly head. No version of OBS would resolve this for me either, the official Flatpak, the CachyOS OBS-Studio-Browser or the native Arch Linux OBS-Studio I tested all of these and it kept happening it was finally using this plugin that fully resolved the issue ^^

  12. stephematician commented on Jun 9, 2026

    @stephematician
    Contributor

    @Lunxara - oh I'm sorry I never mentioned that here, but I find that 99% of audio issues can usually be resolved by switching to the OBS pipewire plugin. There's just something odd about pipewire + pulse + OBS that doesn't play nice.

  13. amenoko commented on Jul 18, 2026

    @amenoko

    Oddly enough I can't replicate this anymore, even though I see you guys still having the same issue. I'm still on Arch but with newer package versions obviously, pipewire 1:1.6.8-1, OBS 32.1.2-modified (compiled locally). I have a config file that sets min-quantum to 256, changed it with pw-metadata and restarted OBS, no change. All tracks sound fine. This is with a Behringer USB interface that has 1 stereo out and 1 stereo in, I can record the stereo out monitor (primary desktop audio output) to multiple tracks in OBS and they all sound fine. I can do the same with its stereo in and I can do the same with my onboard motherboard audio. Not sure if "works on my machine" helps here but I posted about the issue before so I figured I'd follow up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedplatform/linux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions