obsproject / obsproject/obs-studio

Audio Sync Offset not working until UI control is touched (or randomly)

Open
#5,356 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
76.4k
Forks
10.2k
Avg merge
4d 23h
Merged PRs (30d)
12

Description

Operating System Info

Windows 10

Other OS

No response

OBS Studio Version

27.1.1

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/iHiQko3ymupq9Im9

OBS Studio Crash Log URL

No response

Expected Behavior

Sync Offset should always work

Current Behavior

Sync offset does NOT work until you touch the UI control.

Steps to Reproduce
  1. Set up an Audio Sync Offset (in my case 280ms to compensate for a really slow camera)
  2. Add an Audio Visualizer of some kind, add a render delay of 280ms
  3. Exit and re-start OBS
  4. Record or Stream, do some noises. You should see your audio visualizer obviously delayed as you do this
  5. Look back at recording - audio will NOT be in sync
  6. Go to Advanced Audio Options
  7. Touch the Audio Sync Offset value
  8. Record again - AUDIO IS IN SYNC
  9. Exit and restart OBS
  10. Record again. Audio is back out of sync
    ...

You can even see this within a single recording session. I can

  1. Launch OBS
  2. Start a recording (this will be out of sync)
  3. Open advanced audio settings, touch the value
  4. From here, the audio WILL be in sync

See video demo

https://user-images.githubusercontent.com/11062283/135540303-3b592d88-cfe1-45f1-83a4-09f2c136da24.mp4

Anything else we should know?

The problem seems to be offsets are not applied until the dialog is shown... or in some other case..... seems random.... but in a freshly launched OBS, for sure they are not.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue on Windows 10 with OBS Studio 27.1.1, following the audio sync and render-delay steps in the report. Review the linked OBS log and video demonstration, then verify that the configured sync offset is applied immediately after launch and remains correct across recordings and restarts.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
audio-video-rtc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.