Skip to content

bug: obs-browser: browser source audio pushes OBS's audio buffering to 960 ms within a minute #2335

Closed

Description

@rdoupe

Found while researching #2328 (upstream obsproject/obs-studio#10586).

Bug

With a Browser Source using "Control audio via OBS", OBS's global audio buffering climbs to its 960 ms maximum within about a minute of use. The log shows total audio buffering is now 960 milliseconds (source: <browser source>).

  • Who it hurts: the buffering applies to every source and stays at 960 ms until OBS restarts. So one alert box with sound adds close to a second of lasting audio latency to the whole stream.

Cause (from the #2328 research runs; to be confirmed)

  • CEF starts a new loopback capture each time the page becomes audible, for example on each alert, and stops it 2 s after the page goes quiet.
  • Under load, the first packets of a new stream arrive hundreds of ms late, but carry their real capture timestamps.
  • libobs then treats the source as behind, and raises the global buffering to cover it (libobs/obs-audio.c.h buffering logic). Buffering only ever ratchets up.

Plan

  1. RED: reproduce headless with the bug: obs-browser: browser source goes silent for good after the Chromium audio service restarts (upstream #10586) #2328 harness (a WebAudio alert page, reroute_audio=true). Assert that global buffering stays at its startup level over a few minutes of alerts. On master it climbs to 960 ms.
  2. GREEN: in obs-browser's OnAudioStreamStarted/first packets, re-anchor or clamp the first packets of a new stream, or drop the late leading packets, so a late start doesn't raise global buffering. Check with libobs's audio timing (obs-source-audio-timing.c.h) for the right hook.

Activity

  1. added
    bug
    on Oct 25, 2026
  2. rdoupe commented on Oct 25, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: #2335.

  3. added
    ready
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions