You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Audio drops and progressive desync when recording REAPER window on macOS #1120
When recording REAPER using Window Capture with System Audio enabled, the recorded audio contains frequent dropouts and progressively falls out of sync with the video (~500 ms after 15 seconds).
Recording the entire display instead of the REAPER window completely fixes the issue.
I investigated ScreenCaptureKitRecorder.swift and found a possible connection between Window Capture processing and audio dropouts.
Window Capture uses an additional Core Image rendering path (appendCroppedVideoFrame), while audio samples can be silently discarded when AVAssetWriterInput.isReadyForMoreMediaData is false.
Could the additional video processing in Window Capture be causing audio backpressure or delayed audio callbacks?
It may be worth checking whether audio and video callbacks share the same serial queue, and logging dropped audio buffers and their timestamps.
A related ScreenCaptureKit fix is in current main. #1147 reproduced an audio-writer stall and showed that dropping buffers could move later audio earlier. The current recorder queues audio through short stalls and preserves gaps when it cannot keep up.
Could you retry the original REAPER window-capture case at 48 kHz and 30 fps on a build from main? If it still drifts, a short synthetic recording and the video and system-audio track durations would help distinguish a capture-time offset from something that happens later in the editor or export.
Activity
gotojointolive-sys commentedon Oct 9, 2026
I investigated ScreenCaptureKitRecorder.swift and found a possible connection between Window Capture processing and audio dropouts.
Window Capture uses an additional Core Image rendering path (appendCroppedVideoFrame), while audio samples can be silently discarded when AVAssetWriterInput.isReadyForMoreMediaData is false.
Could the additional video processing in Window Capture be causing audio backpressure or delayed audio callbacks?
It may be worth checking whether audio and video callbacks share the same serial queue, and logging dropped audio buffers and their timestamps.
Related PR: #1088.
meiiie commentedon Nov 22, 2026
A related ScreenCaptureKit fix is in current main. #1147 reproduced an audio-writer stall and showed that dropping buffers could move later audio earlier. The current recorder queues audio through short stalls and preserves gaps when it cannot keep up.
Could you retry the original REAPER window-capture case at 48 kHz and 30 fps on a build from main? If it still drifts, a short synthetic recording and the video and system-audio track durations would help distinguish a capture-time offset from something that happens later in the editor or export.