Skip to content

Mic stutter/cutting for over 3 years of recording videos on linux/pipewire #12835

Open

Description

@pollux78

Operating System Info

Other

Other OS

Cachyos

OBS Studio Version

32.0.2 Flatpak

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/EZb2XCgEbYeiIWcd

OBS Studio Crash Log URL

No response

Expected Behavior

For my mic not to stutter or make any cutting sounds on linux when recording.

Current Behavior

Currently will randomly cut or "stutter" on the mic audio on linux/pipewire.

Steps to Reproduce

  1. Be on a linux distro that defaults to pipewire
  2. Record the mic in obs studio with a audio interface, i am using a focusrite 2i2 gen4 but it also happens on the behringer um2 aswell
  3. I am using a podmic via a xlr cable but it can also happen on my at2020 mic aswell
    ...

Anything else we should know?

Here is a example of the cutting sound that occurs in this video at 5:37, this has been occurring for many years now on different mics and audio interfaces, i dont have a log of this occurring as it is hard to reproduce but i can show many examples of videos i have uploaded over the past 2 years or so of it happening.

https://youtu.be/t-DrJi1IFcA?si=pxhRn3AjUvskTSuA

If this is a pipewire problem i will report to them aswell.

Pipewire reported here

https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/4985

Activity

  1. ButterKing-28 commented on Nov 19, 2025

    @ButterKing-28

    This also happens in Ubuntu

  2. Rikaisan commented on Nov 25, 2025

    @Rikaisan

    Hey, did you find any workaround for the moment?

    Currently on Arch, using the Flatkpak version (32.0.2) and having the same issue, it sounds fine while monitoring, but stutters in the recording. I checked my sample rate and it's not the issue.

  3. pollux78 commented on Nov 25, 2025

    @pollux78
    Author

    Hey, did you find any workaround for the moment?

    Currently on Arch, using the Flatkpak version (32.0.2) and having the same issue, it sounds fine while monitoring, but stutters in the recording. I checked my sample rate and it's not the issue.

    Nope, unsure of how I am going to fix this.

  4. ogmkp commented on Nov 25, 2025

    @ogmkp

    Same issue here on OBS 31.1.2 on Debian 13, is it related to #4600 ?

  5. pollux78 commented on Nov 26, 2025

    @pollux78
    Author

    Same issue here on OBS 31.1.2 on Debian 13, is it related to #4600 ?

    It is related to 12428

  6. JuxGD commented on Dec 5, 2025

    @JuxGD

    I had this problem at a point, pretty sure it's the same problem as the one in your video, though seems to happen more frequently

    I managed to fix it, I think it had something to do with buffer size or sampling rate or bitrate or something, after I changed one of those it started working normally. I had to change settings with like pipewire and wireplumber and pactl or whatever.

    The problem's back now, that's why I'm here. I know it's the same problem but I don't remember which commands I did in order to fix it. I found them online but I can't find them again.

    Using my normal mic source works, but I'm using a custom sink and source setup thing so that I can mute the mic only for OBS through a Niri key shortcut, and that's the only broken one.

    I can share any info (command output etc) that could help. For now, my OBS sampling rate is set to 44.1 KHz, tried 48 KHz as well. I can't change the bitrate because I'm streaming to YouTube which only allows up to 160.

    Using NixOS


    (edit) Here's pw-top (which i just found out is a command that exists)

    Image

    (edit 2: See how there's some that have mismatch between the sampling rate and that number in "format"? Might be relevant?)

    and the relevant devices nodes things idk in Patchage

    Image
  7. ogmkp commented on Dec 5, 2025

    @ogmkp

    I tried all of this, sampling, bitrate, codec, I even set the global buffer, no xruns, but nothing works.
    We can't hear the issue during monitoring, it happens during encoding.
    It's like #10291 on input 2 and more but less problematic because it happens less often.

  8. ButterKing-28 commented on Dec 5, 2025

    @ButterKing-28

    This also happens in Ubuntu

    My issue was because, apparently, my CPU was getting "overwhelmed". I fixed this by lowering the recording quality.

  9. pacharanero commented on Dec 10, 2025

    @pacharanero

    I am having the same issue. I'm on Linux Mint 22.2, Linux kernel 6.14.0-36-generic. Using OBS from Flatpak - could this be the issue?
    I am recording using USB-C BOYA dual clip mics, and a Logitech C920 webcam, directly into OBS, with a browser window showing slides and the webcam as a small overlay of the hosts over the slides. No plugins, no filters or processing.

    When I'm recording the CPU usage never seems to be very high, usually around 2%. It's a powerful Core™ Ultra 9 185H machine with 64Gb RAM. But perhaps not all of that resource is available to OBS inside Flatpak.

    When editing the recording later, (in Shotcut) I am getting multiple very short cutouts, each lasting around 0.1-0.2 seconds. Sometimes the waveform in Shotcut doesn't show a dropout in the sound though. It's strange. Any pointers gratefully received.

  10. bivhitscar commented on Dec 29, 2025

    @bivhitscar

    I was having constant issues as soon as I started recording. I'm on Arch (EndeavourOS) with pipewire. I found that I needed to get a pipewire audio plugin (obs-pipewire-audio-capture on aur). Seems to have solved my issue.

  11. ogmkp commented on Dec 29, 2025

    @ogmkp

    The problem occurs with the Jack internal plugin entries too. For me, it's during encoding. If anyone can take a closer look in obs code, maybe @norihiro please? :)

  12. stephematician commented on Jan 4, 2026

    @stephematician
    Contributor

    I can get short cutouts with Audio Capture (Pulse Audio), but I don't get them using Audio Capture (PipeWire) from the plugin: https://obsproject.com/forum/resources/pipewire-audio-capture.1458/ (a.k.a. https://github.com/dimtpap/obs-pipewire-audio-capture).

    What I see is more like #4600 - which was reported for Windows. I think these might be related because I suspect there are risks (possibly even bugs) in the timestamp code for audio and video. I've recently tried to minimise some of the risks (and a bug) with async video, but I think audio is going to take a lot more digging.

    In the meantime (and probably the long term solution anyway) - I'd recommend using the pipewire audio capture plugin.

  13. ogmkp commented on Jan 17, 2026

    @ogmkp

    It seems that, as mentioned here #4600 , there are clock synchronization issues between the hardware sound card, which has its own clock, and OBS, which relies on clock_gettime(CLOCK_MONOTONIC, &ts) (high resolution, very, very accurate).
    And indeed, the problem occurs when acquiring sound from a sound card, via OBS's inputs from jack or pipewire, and whether or not using the kernel RT scheduling with a stable CPU frequency.

    In my example, I used a recording from OBS with four tracks.
    A1 is a Pipewire loop with Pipewire input in OBS from outputs A2, A3, and A4 via OBS's Pulseaudio monitoring to Pipewire-pulse.
    A2 is the sound from the microphone on a Pipewire input, A3 is another microphone on a jack input, and A4 is the sound from a video game runing alongside of OBS (internal sound).

    Image

    When A1 stutters, the other tracks do not stutter.
    When A2 stutters, A3 usually stutters at almost the same time.
    A4 never stutters.
    So why does A1 stutter on its own when the sound from A2 and A3 in OBS does not stutter...?

    And when A2 and A3 stuttered, A1 did not stutter (which, I remind, is a loop of the OBS monitoring outputs).

    Image

    In any case, it is never audible to the ear on the live pulseaudio monitoring, but the stuttering is noticeable on the live stream and in the recordings.
    I monitored pw-top and didn't get any xruns.

    @norihiro offers a plugin who seems to fix this problem. I'll try to reproduce it with and without it, a PR #6351 is pending.

    I don't understand everything, but it's okay.

  14. stephematician commented on Jan 17, 2026

    @stephematician
    Contributor

    I monitored pw-top and didn't get any xruns.

    That's the interesting part I think. Did you see anything in the OBS log when A2/A3 stutter?

    I have a feeling that audio monitoring uses timestamps a little differently to the recording; hence the stutters in A2/A3 not being repeated in A1.

  15. ogmkp commented on Jan 17, 2026

    @ogmkp

    Nothing in OBS log.

    OBS's pulseaudio monitoring has problems from long time. There have been lots of tickets for sound delay issues, which still occur but less than before, with a delay of a few seconds over several hours (previously it was within 5 minutes). Is this what is not being handled properly internally in the pulse-pipewire nodes and was already happening with the pulseaudio server or is it between the internal OBS sound stack and the OBS's pulse monitoring module? I dont know. We need pipewire monitoring to be full compliant with pipewire.

    For internal stuttering in OBS, there are also issues, but only with sound cards. I opened a ticket #10291 for OBS buses INPUT 2, 3, and 4. Is this really a clock issue? I don't know.

  16. norihiro commented on Jan 19, 2026

    @norihiro
    Contributor

    @norihiro offers a plugin who seems to fix this problem.
    Looking at the original report, the audio break happens much more frequently that what my plugin resolves, I expect ~20ms audio glitch to happen for every 10 minutes or less. Probably, this is another issue than #4600.

  17. ogmkp commented on Jan 19, 2026

    @ogmkp

    Thanks @norihiro, hope to find the solution.

    Found another ticket for the same issue #11083.

  18. m1neral-rocks commented on Mar 16, 2026

    @m1neral-rocks

    this isn't an obs specific issue, it still happens on discord for me if I use qpwgraph to attach my browser audio to my mic for example. It started happening a few months ago and haven't gotten better since.

  19. ogmkp commented on Apr 7, 2026

    @ogmkp

    Another example from my last recording, same as my comment #12835 (comment), but this time it's a local gameplay recording, no sound card input, all is "localhost" capture.
    I recorded the audio in the recording matrix on tracks 01 and 05, the OBS's input is only one Jack input in the scene but recording of this jack input is committed to track 1 and track 5, here the result:
    Track 01 stutter
    https://github.com/user-attachments/assets/f3ba3a0f-ebe5-4f58-af9c-7d57bf55e119

    Track 05 no stutter
    https://github.com/user-attachments/assets/55ded5b8-8511-4d93-85e9-9a86c65091d1

  20. m1neral-rocks commented on Apr 17, 2026

    @m1neral-rocks

    I "fixed" this by setting a quantum of 512 in the configs for pa/pw clients and then having low quantum/latency loopbacks for when I need to route audio. This way it works fine for me with my setup. If for example I dare to connect my rocksmith cable to both my headset and discord mic at the same time without using the loopbacks, it either makes my microphone unusable or turns the guitar sound into a loud buzzing mess depending on the quantum value.

  21. nickjj commented on May 3, 2026

    @nickjj

    Given how difficult it is to find root causes with issues like this, here's semi-related but maybe unrelated information. I'm also making an assumption that I don't think this is an OBS issue directly.

    Before PipeWire was a thing, back in 2017 I tried to switch to Linux with a Scarlett 2i2 2nd gen. I used Debian at the time with Linux kernel 4.19. I also experienced the type of cutting out you linked in your description but it would usually only happen for a few seconds, but it happened frequently (every minute or 2).

    That was with PulseAudio, Alsa and with / without Jack. I tried every setting possible and spent close to a week debugging things at the time. Nothing resolved it and xruns weren't being reported. It was like the audio signal completely dropped out and came back very quickly. Audio editing tools showed no waveform during these cutout periods.

    I tried every physical USB port I had too. Prior to that Linux set up I was using Windows with the same hardware for over 4 years prior and recorded close to 500 videos using OBS without a single cutout, crackle or pop.

    Fast forward to today, with the same exact hardware except I have a Scarlett 2i2 3rd gen, I have no issues with crackling or cutouts with OBS. Nowadays I'm using Arch Linux with PipeWire with no custom tweaks or plugins. This is on a 2014 era system. My assumption is something at either the Linux kernel or driver level between 2017 and now resolved it, but I have no idea what did it.

    I randomly stumbled on this issue and thought to reply because I know how frustrating this type of issue is. My only advice is to go down every rabbit hole you can find and deconstruct every component of your system related to producing sound from an input device. Also, try hooking your mic up to a completely different system with different hardware using the same Linux distro and see if you can reproduce it.

  22. pollux78 commented on May 4, 2026

    @pollux78
    Author

    Given how difficult it is to find root causes with issues like this, here's semi-related but maybe unrelated information. I'm also making an assumption that I don't think this is an OBS issue directly.

    Before PipeWire was a thing, back in 2017 I tried to switch to Linux with a Scarlett 2i2 2nd gen. I used Debian at the time with Linux kernel 4.19. I also experienced the type of cutting out you linked in your description but it would usually only happen for a few seconds, but it happened frequently (every minute or 2).

    That was with PulseAudio, Alsa and with / without Jack. I tried every setting possible and spent close to a week debugging things at the time. Nothing resolved it and xruns weren't being reported. It was like the audio signal completely dropped out and came back very quickly. Audio editing tools showed no waveform during these cutout periods.

    I tried every physical USB port I had too. Prior to that Linux set up I was using Windows with the same hardware for over 4 years prior and recorded close to 500 videos using OBS without a single cutout, crackle or pop.

    Fast forward to today, with the same exact hardware except I have a Scarlett 2i2 3rd gen, I have no issues with crackling or cutouts with OBS. Nowadays I'm using Arch Linux with PipeWire with no custom tweaks or plugins. This is on a 2014 era system. My assumption is something at either the Linux kernel or driver level between 2017 and now resolved it, but I have no idea what did it.

    I randomly stumbled on this issue and thought to reply because I know how frustrating this type of issue is. My only advice is to go down every rabbit hole you can find and deconstruct every component of your system related to producing sound from an input device. Also, try hooking your mic up to a completely different system with different hardware using the same Linux distro and see if you can reproduce it.

    With some of my recent recordings i haven't had this problem occur, i have been using the async audio filter plugin so maybe that's what resolved it but im going to keep this open until most people have it resolved tho some of the problems may be separate to this issue.

  23. jan-revay commented on Jun 1, 2026

    @jan-revay

    Same issue here when using PulseAudio Pipewire API in OBS. Jack API over pipewire however seems to work fine for me.

    For me:

    • switching my Focusrite Scarlett 2i2 4th Gen to Pro audio mode in Pipewire,
    • isolating the single mic input I use with a virtual source in Pipewire, and
    • using jack with pw-link instead of pulse api in obs solved the issue (at least so it seems so far).

    This also solves issues with downmixing 2i2 inputs to mono as I only connect the desired input to OBS jack input (otherwise OBS treats 2i2 as a stereo source what causes a whole set of other issues). Same issue occurs when downmixing stereo desktop sound to mono - it adds +3dB hence causes clipping when using pulse in OBS, connecting just a right channel to OBS jack port solves this.

    See:
    https://github.com/jan-revay/dotfiles/blob/devel/.config/pipewire/pipewire.conf.d/10-2i2-loopback.conf

    https://github.com/jan-revay/dotfiles/blob/devel/.config/pipewire/jack.conf.d/ubuntustudio.conf

    I have also installed Ubuntu studio and enabled preempt_rt related parameters, that might also have helped.

    I am using a fixed PW quantum 1024 in pw-jack.

  24. aklausing commented on Jun 23, 2026

    @aklausing

    I have been investigating what appears to be a source-dependent variant of this issue. I can now reproduce it reliably and have a controlled A/B comparison from the same OBS session.
    And YES, I had some help from ChatGPT because I was not able to track down the issue by myself.

    Environment

    • Fedora Linux 44

    • KDE Plasma / Wayland

    • OBS Studio 32.1.1, Fedora RPM package

    • 48 kHz OBS audio sample rate

    • Focusrite Vocaster One in the Pro Audio profile

    • AMD Ryzen 7 5800X

    • Kernels tested:

      • 7.0.11-cachyos1.fc44.x86_64
      • 7.0.12-cachyos1.fc44.x86_64
      • 7.0.12-201.fc44.x86_64
    • PipeWire versions tested:

      • 1.6.5
      • 1.6.6
      • 1.6.7

    Changing between kernel 7.0.11 and 7.0.12 did not resolve the issue.

    Summary

    The microphone audio contains short, clearly audible dropouts/stutters in OBS.

    The problem initially appeared while streaming, but after isolating the audio sources I can reproduce it in local OBS recordings as well.

    It is strongly dependent on which PipeWire/PulseAudio source OBS captures:

    • Direct 10-channel Vocaster Pro Audio input: clean with PipeWire 1.6.5
    • Virtual mono source mapped from the Vocaster host microphone channel: severe stuttering
    • PulseAudio module-remap-source of the same microphone channel: less severe, but still stuttering
    • Direct pw-record and parecord recordings of the virtual source: clean

    Strongest A/B test

    Both recordings were made:

    • in the same OBS process
    • in the same scene collection
    • with the same encoding and rendering load
    • with PipeWire 1.6.5
    • using the OBS PulseAudio input source
    • without changing anything except the selected capture source

    OBS log:

    https://obsproject.com/logs/pBu3YvLDgOB09rOI

    A: Direct Vocaster Pro Audio input

    Source:

    alsa_input.usb-Focusrite_Vocaster_One_...pro-input-0
    

    OBS reports:

    Audio format: s32le, 48000 Hz, 10 channels
    10 channels not supported by OBS, using 2 instead for recording
    

    The first two Vocaster input channels are the Video Call L/R mix.

    Result:

    • Audio is clean
    • Offline PCM analysis found no internal all-zero runs of 4 ms or longer

    B: Virtual mono host microphone source

    Source:

    vocaster_host_mic
    

    OBS reports:

    Audio format: float32le, 48000 Hz, 1 channels
    

    Result:

    • Severe audible stuttering

    • Offline PCM analysis of the first audio track found:

      • 75 internal all-zero runs of at least 4 ms in 7.38 seconds
      • maximum all-zero run of approximately 78.2 ms
      • many dropouts around 75 ms

    The virtual source was created from the Vocaster Pro Audio AUX4 channel, which corresponds to DAW input 5 / Host Microphone:

    context.modules = [
        {
            name = libpipewire-module-loopback
    
            args = {
                node.description = "Vocaster Host Microphone"
                audio.position = [ AUX4 ]
    
                capture.props = {
                    node.name = "capture.vocaster_host_mic"
                    target.object = "alsa_input.usb-Focusrite_Vocaster_One_...pro-input-0"
    
                    node.passive = true
                    stream.dont-remix = true
                }
    
                playback.props = {
                    node.name = "vocaster_host_mic"
                    node.description = "Vocaster Host Microphone"
    
                    media.class = "Audio/Source"
                    audio.position = [ MONO ]
                }
            }
        }
    ]

    Direct PipeWire and PulseAudio recordings are clean

    I recorded the same virtual source outside OBS using both native PipeWire and the PulseAudio compatibility server.

    Native PipeWire:

    pw-record \
        --target vocaster_host_mic \
        --rate 48000 \
        --channels 1 \
        --channel-map mono \
        vocaster-native.wav

    PulseAudio API through pipewire-pulse:

    parecord \
        --device=vocaster_host_mic \
        --file-format=wav \
        --rate=48000 \
        --channels=1 \
        vocaster-pulse.wav

    Results:

    vocaster-native.wav
    - 19.968 seconds
    - no internal all-zero runs of 4 ms or longer
    
    vocaster-pulse.wav
    - 18.432 seconds
    - no internal all-zero runs of 4 ms or longer
    

    This suggests that the Vocaster, ALSA, the native PipeWire path, the virtual source itself, and the general pipewire-pulse capture path can all deliver uninterrupted audio.

    The dropouts occur when OBS captures the virtual/remapped source.

    OBS Safe Mode test

    The problem also occurs with OBS started as:

    obs --safe-mode --verbose --unfiltered_log

    Safe Mode log:

    https://obsproject.com/logs/qoiA1ljdBTMPVdZd

    This test used PipeWire 1.6.7 and kernel 7.0.11-cachyos1.fc44.x86_64.

    The log repeatedly contains messages such as:

    Audio timestamp for 'Audioeingabeaufnahme (PulseAudio)'
    exceeded TS_SMOOTHING_THRESHOLD,
    diff=74855439 ns
    

    Most timestamp differences are approximately 73–77 ms, matching the duration of many audible/all-zero dropouts in the recording.

    Offline PCM analysis:

    • duration: approximately 21.5 seconds
    • 174 internal all-zero runs of at least 4 ms
    • maximum all-zero run: approximately 81.4 ms
    • many runs around 75–80 ms

    The recording produced 1289 output frames and 1297 drawn frames. The log did not report the severe continuous rendering lag seen in a separate short A/B test, but the audio dropouts still occurred.

    This also means that third-party OBS plugins and microphone filters are unlikely to be the primary cause.

    Rendering-lag note

    The two very short A/B samples in the PipeWire 1.6.5 log had nearly identical rendering stalls:

    Direct Vocaster input: 38.9%
    Virtual mono source:   38.1%
    

    This appears to be a separate AV1 recording startup/rendering issue.

    It does not explain the source-dependent audio result because:

    • both recordings had essentially the same video load
    • only the virtual mono source stuttered
    • the direct Vocaster input remained clean
    • the Safe Mode recording reproduced the audio problem without the same reported rendering-lag condition

    PipeWire version observations

    I initially suspected a PipeWire regression because the issue appeared after Fedora updates.

    The results are more nuanced:

    • PipeWire 1.6.6 reproduces the issue in my normal setup
    • PipeWire 1.6.7 reproduces it
    • PipeWire 1.6.5 works as a workaround when OBS directly captures the Vocaster Video Call L/R pair
    • PipeWire 1.6.5 still stutters when OBS captures the virtual mono or remapped Host Microphone source

    I therefore do not think it is correct to claim that PipeWire 1.6.6 alone introduced the issue. The source type and timestamp handling appear to be important factors.

    Current workaround

    The only stable setup I have found is:

    PipeWire 1.6.5
    +
    direct Vocaster 10-channel Pro Audio input
    +
    OBS truncating it to channels 1/2, Video Call L/R
    

    This is not ideal because it captures the Vocaster Video Call mix instead of the isolated Host Microphone input.

    Possible interpretation

    The evidence appears consistent with a timing/timestamp interaction between:

    virtual or remapped PipeWire source
    → pipewire-pulse
    → OBS linux-pulseaudio capture
    → OBS audio timestamp smoothing/buffering
    

    The same virtual source is clean through both pw-record and parecord, while OBS inserts or outputs approximately 75 ms silent sections and logs matching TS_SMOOTHING_THRESHOLD deviations.

    Could this be related to how the OBS PulseAudio input calculates or smooths timestamps when a virtual/remapped PipeWire source delivers buffers in bursts?

    Please let me know whether this should remain as additional evidence in this issue or whether a separate, more narrowly scoped issue for virtual PipeWire/PulseAudio sources would be preferable.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions