Skip to content

[QUALITY-2068] Fix macOS computer-use recording output frame rate - #15920

Merged
vkodithala merged 4 commits into
masterfrom
varoon/update-macos-frame-rate
Sep 10, 2026
Merged

[QUALITY-2068] Fix macOS computer-use recording output frame rate#15920
vkodithala merged 4 commits into
masterfrom
varoon/update-macos-frame-rate

Conversation

@vkodithala

@vkodithala vkodithala commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Description

macOS computer-use recordings can render an initial frame but report a duration near 0 seconds and contain excessive duplicated frames. This adds an explicit FFmpeg output frame rate to the macOS avfoundation capture command, matching the configured capture rate.

The AVFoundation demuxer exposes frames with a microsecond timebase. Without an output -r, FFmpeg interprets that as an extremely high constant frame rate (observed as 1,000,000 fps), duplicates frames to satisfy it, and produces a near-zero-duration MP4. The Linux recorder already constrains its output rate; this change brings the macOS path in line.

Linked Issue

Linked Linear issue here: https://linear.app/warpdotdev/issue/QUALITY-2068/macos-runner-computer-use-videos-are-0-seconds-and-unedited-vs-linux.

Testing

  • cargo fmt --all -- --check — passed.

  • cargo nextest run -p computer_use -E 'test(sets_output_frame_rate_to_capture_rate)' — passed.

  • cargo nextest run -p computer_use — 81 passed, 2 skipped.

  • ./script/presubmit — formatting passed, but the full build could not complete because the machine ran out of disk space while writing Rust metadata (No space left on device). The full build should be rerun in an environment with sufficient space.

  • No full GUI integration test was added because the regression is directly covered at the deterministic FFmpeg command-builder seam and the end-to-end capture requires a display-dependent macOS environment.

  • I have manually tested my changes locally with ./script/run

Screenshots / Videos

Not applicable: this is a native FFmpeg command-line fix; end-to-end playback validation requires a macOS display environment.

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

CHANGELOG-BUG-FIX: Fixed macOS computer-use recordings reporting near-zero duration.

Co-Authored-By: Warp agent@warp.dev

Co-Authored-By: Warp <agent@warp.dev>
@cla-bot cla-bot Bot added the cla-signed label Sep 10, 2026
@vkodithala
vkodithala marked this pull request as ready for review September 10, 2026 18:05
@warp-for-oss

warp-for-oss Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

@vkodithala

I ran into an unexpected error while working on this.

Powered by Oz

@vkodithala vkodithala changed the title Fix macOS computer-use recording output frame rate [QUALITY-2068] Fix macOS computer-use recording output frame rate Sep 10, 2026

@vkodithala vkodithala left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit, LG!

Comment on lines +224 to +227
// AVFoundation timestamps frames with a microsecond timebase. Without
// an explicit output rate, ffmpeg treats that as an extremely high
// constant frame rate and duplicates frames until the file duration
// collapses toward zero.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: We probably shouldn't include context around the regression this fixed here!

Co-Authored-By: Warp <agent@warp.dev>
@vkodithala
vkodithala merged commit 437b862 into master Sep 10, 2026
39 of 43 checks passed
@vkodithala
vkodithala deleted the varoon/update-macos-frame-rate branch September 10, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants