Skip to content

Audio drops and progressive desync when recording REAPER window on macOS #1120

Open

Description

@gotojointolive-sys

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.

System: MacBook Air M5, macOS, Recordly 1.4.0, 48 kHz audio, 30 FPS.

The issue occurs with and without an external audio interface.

Activity

  1. gotojointolive-sys commented on Oct 9, 2026

    @gotojointolive-sys
    Author

    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.

  2. meiiie commented on Nov 22, 2026

    @meiiie
    Collaborator

    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.

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