Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
delete old stuff
Richie McIlroy8882632916c7
diff --git a/analysis/plans/studio-mode-frame-capture-optimization.md b/analysis/plans/studio-mode-frame-capture-optimization.mddeleted file mode 100644index 1062248e3..000000000--- a/analysis/plans/studio-mode-frame-capture-optimization.md+++ /dev/null@@ -1,470 +0,0 @@-# Studio Mode Frame Capture Optimization--## Metadata-- **Type:** Performance-- **Status:** Planning-- **Created:** 2026-01-19-- **Areas:** crates/recording--## Overview--The studio mode recording pipeline suffers from severe frame drops during capture, with observed drop rates ranging from 9% to 99% depending on resolution and frame rate. This document analyzes the root causes and proposes a phased fix approach.--### Success Criteria-- [ ] Frame drop rate < 5% at 3024x1964 @ 30fps-- [ ] Frame drop rate < 10% at 3024x1964 @ 60fps-- [ ] Frame drop rate < 20% at 5952x3348 @ 30fps-- [ ] No false "Large forward timestamp jump" warnings during normal recording-- [ ] Graceful degradation at extreme resolutions (5952x3348 @ 60fps)-------## Technical Context--### Architecture Summary--Studio mode recording flows through:-1. **Screen Capture** (`crates/recording/src/sources/screen_capture/macos.rs`) - ScreenCaptureKit frame acquisition-2. **Video Source Channel** (`crates/recording/src/output_pipeline/core.rs`) - Frame buffering between capture and mux-3. **Mux-Video Task** (`core.rs`) - Timestamp processing and frame forwarding-4. **M4S Muxer** (`crates/recording/src/output_pipeline/macos_fragmented_m4s.rs`) - Encoder channel and H264 encoding-5. **Encoder Thread** - FFmpeg-based H264 encoding to segmented DASH output--### Test Suite Evidence--**Test Run 1 (High System Load):**-| Resolution | Target FPS | Actual FPS | Frames | Drop Rate |-|------------|------------|------------|--------|-----------|-| 3024x1964 | 30 | 4.8 | 48/300 | 84.0% |-| 3024x1964 | 60 | 7.3 | 74/600 | 87.7% |-| 5952x3348 | 30 | 0.4 | 4/300 | 98.7% |-| 5952x3348 | 60 | 0.5 | 5/600 | 99.2% |--**Test Run 2 (Lower System Load):**-| Resolution | Target FPS | Actual FPS | Frames | Drop Rate |-|------------|------------|------------|--------|-----------|-| 3024x1964 | 30 | 27.0 | 272/300 | 9.3% |-| 3024x1964 | 60 | 48.8 | 491/600 | 18.2% |-| 5952x3348 | 30 | 10.2 | 103/300 | 65.7% |-| 5952x3348 | 60 | 0.4 | 4/600 | 99.3% |--**Key Observations:**-- Performance highly variable based on system load-- Higher resolutions consistently perform worse-- 5952x3348 @ 60fps essentially non-functional on both runs-- Timestamp anomaly warnings correlate with frame drops-------## Root Cause Analysis--### Issue 1: Critically Small macOS Muxer Buffer (PRIMARY)--**Location:** `crates/recording/src/output_pipeline/macos_fragmented_m4s.rs:23-28`--```rust-fn get_muxer_buffer_size() -> usize {- std::env::var("CAP_MUXER_BUFFER_SIZE")- .ok()- .and_then(|s| s.parse().ok())- .unwrap_or(3) // <-- ONLY 3 FRAMES!-}-```--**Windows comparison:** `crates/recording/src/output_pipeline/win_fragmented_m4s.rs:25`-```rust-const DEFAULT_MUXER_BUFFER_SIZE: usize = 240; // 80x larger-```--**Impact:**-- At 60fps, 3 frames = 50ms of buffering-- Any encoder stall > 50ms causes immediate frame drops-- `try_send` at lines 396-411 silently drops frames when buffer is full:-```rust-match state.video_tx.try_send(Some((frame.sample_buf, adjusted_timestamp))) {- Ok(()) => { self.frame_drops.record_frame(); }- Err(e) => match e {- std::sync::mpsc::TrySendError::Full(_) => {- self.frame_drops.record_drop(); // Silent drop!- }- // ...- },-}-```--**Evidence:** Test logs show only 48-74 frames reaching muxer out of 300-600 expected.-------### Issue 2: Small Screen Capture Buffer--**Location:** `crates/recording/src/sources/screen_capture/macos.rs:127-132`--```rust-fn get_screen_buffer_size() -> usize {- std::env::var("CAP_SCREEN_BUFFER_SIZE")- .ok()- .and_then(|s| s.parse().ok())- .unwrap_or(4) // Only 4 frames-}-```--**Impact:**-- 4 frames at 60fps = 67ms of buffering-- Combined with 3-frame muxer buffer, total pipeline tolerance is ~117ms-- Any processing spike causes cascading drops-------### Issue 3: Timestamp Anomaly False Positives--**Location:** `crates/recording/src/output_pipeline/core.rs:30, 259-294`--```rust-const LARGE_FORWARD_JUMP_SECS: f64 = 0.5; // 500ms threshold--fn handle_forward_jump(&mut self, last: Duration, current: Duration, jump_secs: f64) {- // ...- let expected_increment = Duration::from_millis(33); // Assumes 30fps- let adjusted = last.saturating_add(expected_increment);- let compensation_secs = current.as_secs_f64() - adjusted.as_secs_f64();- self.accumulated_compensation_secs -= compensation_secs; // Accumulates negative!- // ...-}-```--**Evidence from logs:**-```-Large forward timestamp jump detected (system sleep/wake?), resyncing timeline-stream="video" forward_secs=0.599994292 accumulated_compensation_secs="-8.288"-```--**Problems:**-1. Detection triggers on startup delay (pipeline creation to first frame), not actual sleep/wake-2. Hardcoded 33ms increment doesn't account for different frame rates (60fps = 16.67ms)-3. Compensation accumulates in wrong direction, reaching -8.288 seconds-4. Warning message "system sleep/wake?" is misleading-------### Issue 4: Insufficient Drain on Shutdown--**Location:** `crates/recording/src/output_pipeline/core.rs:976-1034`--```rust-if was_cancelled {- info!("mux-video cancelled, draining remaining frames from channel");- let drain_timeout = Duration::from_secs(2);- let max_drain_frames = 30u64; // Only 30 frames!- // ...-}-```--**Impact:**-- Video source channel capacity is 300 frames-- On shutdown, only 30 frames are drained-- Remaining 270 buffered frames are lost--**Evidence:** Logs show `mux-video drain complete: 1 frames processed` despite frames being buffered.-------### Issue 5: High Resolution Memory/Bandwidth Constraints--**Location:** `crates/recording/src/sources/screen_capture/macos.rs:58-97`--```rust-fn get_pixel_buffer_pool_size() -> usize {- std::env::var("CAP_PIXEL_BUFFER_POOL_SIZE")- .ok()- .and_then(|s| s.parse().ok())- .unwrap_or(20) // 20 buffers-}-```--**Impact at 5952x3348:**-- Each NV12 frame = 5952 * 3348 * 1.5 bytes = ~30MB-- 20-buffer pool = ~600MB memory-- At 60fps, requires ~1.8GB/s throughput-- `PixelBufferCopier` synchronously copies each frame through mutex-protected session--**Evidence:** 5952x3348 @ 60fps shows 99%+ frame drops on both test runs.-------## Tasks--### Phase 1: Buffer Size Fixes (Critical - Immediate Impact)--#### 1.1 Increase macOS Muxer Buffer Size-- [x] **Status**: complete-- **Priority:** P0-- **Estimated Impact:** 50%+ frame improvement--**Objective:**-Align macOS muxer buffer size with Windows to provide adequate buffering for encoder throughput variations.--**Files to modify:**-- `crates/recording/src/output_pipeline/macos_fragmented_m4s.rs:27`--**Implementation:**-```rust-fn get_muxer_buffer_size() -> usize {- std::env::var("CAP_MUXER_BUFFER_SIZE")- .ok()- .and_then(|s| s.parse().ok())- .unwrap_or(60) // 1 second at 60fps, up from 3-}-```--**Acceptance Criteria:**-- [ ] Default buffer size changed from 3 to 60-- [ ] Frame drop rate at 3024x1964 @ 30fps < 10%-- [ ] Run `cargo fmt` before completing-------#### 1.2 Increase Screen Capture Buffer-- [x] **Status**: complete-- **Priority:** P0-- **Estimated Impact:** 10-20% frame improvement--**Objective:**-Increase screen capture channel buffer to provide more tolerance for processing jitter.--**Files to modify:**-- `crates/recording/src/sources/screen_capture/macos.rs:131`--**Implementation:**-```rust-fn get_screen_buffer_size() -> usize {- std::env::var("CAP_SCREEN_BUFFER_SIZE")- .ok()- .and_then(|s| s.parse().ok())- .unwrap_or(15) // 500ms at 30fps, up from 4-}-```--**Acceptance Criteria:**-- [ ] Default buffer size changed from 4 to 15-- [ ] Run `cargo fmt` before completing-------#### 1.3 Fix Drain Limit on Shutdown-- [x] **Status**: complete-- **Priority:** P0-- **Estimated Impact:** Preserve buffered frames on graceful shutdown--**Objective:**-Ensure all buffered frames are processed on recording stop.--**Files to modify:**-- `crates/recording/src/output_pipeline/core.rs:982`--**Implementation:**-```rust-let max_drain_frames = 500u64; // Match video source channel capacity + headroom-```--**Acceptance Criteria:**-- [ ] Drain limit increased from 30 to 500-- [ ] Log message shows all buffered frames processed on shutdown-- [ ] Run `cargo fmt` before completing-------### Phase 2: Timestamp Handling Improvements--#### 2.1 First-Frame Baseline Synchronization-- [x] **Status**: complete-- **Priority:** P1--**Objective:**-Eliminate false "Large forward timestamp jump" warnings by establishing baseline from first frame instead of pipeline creation time.--**Files to modify:**-- `crates/recording/src/output_pipeline/core.rs` - `TimestampAnomalyTracker`--**Implementation approach:**-1. Add `first_frame_baseline: Option<Duration>` field to `TimestampAnomalyTracker`-2. On first frame, capture baseline offset between frame timestamp and pipeline start-3. Apply baseline offset to all subsequent timestamp calculations-4. Only flag anomalies after baseline is established (after warmup window)--**Acceptance Criteria:**-- [ ] No "Large forward timestamp jump" warnings during normal recording startup-- [ ] Warnings still trigger for actual system sleep/wake events (>2 second gaps)-- [ ] Run `cargo fmt` before completing-------#### 2.2 Frame-Rate-Aware Expected Increment-- [ ] **Status**: pending-- **Priority:** P1--**Objective:**-Use actual frame rate for timestamp gap expectations instead of hardcoded 33ms.--**Files to modify:**-- `crates/recording/src/output_pipeline/core.rs:271`--**Implementation:**-1. Add `expected_frame_duration: Duration` field to `TimestampAnomalyTracker`-2. Initialize based on video config fps-3. Use in `handle_forward_jump`:-```rust-let expected_increment = self.expected_frame_duration;-```--**Acceptance Criteria:**-- [ ] Expected increment calculated from actual fps-- [ ] 60fps recording uses ~16.67ms increment-- [ ] Run `cargo fmt` before completing-------### Phase 3: High Resolution Optimization--#### 3.1 Resolution-Based Buffer Scaling-- [ ] **Status**: pending-- **Priority:** P2--**Objective:**-Automatically scale buffer sizes based on resolution to handle high-resolution capture.--**Files to modify:**-- `crates/recording/src/sources/screen_capture/macos.rs`-- `crates/recording/src/output_pipeline/macos_fragmented_m4s.rs`--**Implementation approach:**-1. Calculate pixel count: `width * height`-2. For resolutions > 4K (8.3M pixels), increase buffer multiplier-3. Example scaling:- - < 4K: default buffers- - 4K-6K: 1.5x buffers- - > 6K: 2x buffers--**Acceptance Criteria:**-- [ ] Buffer sizes scale automatically with resolution-- [ ] 5952x3348 @ 30fps achieves > 50% frame capture rate-- [ ] Run `cargo fmt` before completing-------#### 3.2 Pixel Buffer Pool Sizing-- [ ] **Status**: pending-- **Priority:** P2--**Objective:**-Scale pixel buffer pool based on resolution and frame rate to prevent pool exhaustion.--**Files to modify:**-- `crates/recording/src/sources/screen_capture/macos.rs:58-97`--**Implementation approach:**-1. Calculate required pool memory: `frame_size * pool_count`-2. At high resolutions, either:- - Increase pool count proportionally- - Or reduce pool count but increase buffer sizes elsewhere-3. Add memory budget configuration--**Acceptance Criteria:**-- [ ] Pool sizing accounts for resolution-- [ ] No pool exhaustion at 5952x3348-- [ ] Run `cargo fmt` before completing-------### Phase 4: Encoder Throughput Improvements--#### 4.1 Adaptive Frame Skipping-- [ ] **Status**: pending-- **Priority:** P3--**Objective:**-When encoder can't keep up, deliberately skip frames at regular intervals instead of random drops from buffer overflow.--**Files to modify:**-- `crates/recording/src/output_pipeline/macos_fragmented_m4s.rs`--**Implementation approach:**-1. Track encoder throughput (frames encoded per second)-2. If throughput < target fps * 0.8, enable skip mode-3. In skip mode, encode every Nth frame (N = target_fps / actual_throughput)-4. Log skip rate for diagnostics--**Acceptance Criteria:**-- [ ] Consistent (lower) frame rate instead of stuttery random drops-- [ ] Skip rate logged for diagnostics-- [ ] Run `cargo fmt` before completing-------#### 4.2 Hardware Encoder Optimization-- [ ] **Status**: pending-- **Priority:** P3--**Objective:**-Improve hardware vs software encoder selection and configuration.--**Files to modify:**-- `crates/encoder/src/h264.rs`--**Implementation approach:**-1. Review `requires_software_encoder()` thresholds-2. Consider resolution-specific encoder presets-3. Test VideoToolbox limits at various resolutions--**Acceptance Criteria:**-- [ ] Hardware encoder used when capable-- [ ] Smoother fallback to software encoder-- [ ] Run `cargo fmt` before completing-------## Implementation Notes--### Testing Strategy-1. Run test suite after each phase: `cargo run -p cap-test -- suite recording`-2. Compare frame drop percentages against baseline-3. Test under both low and high system load conditions-4. Verify no regressions in audio sync--### Environment Variables for Tuning-| Variable | Default | Description |-|----------|---------|-------------|-| `CAP_MUXER_BUFFER_SIZE` | 3 (macOS), 240 (Windows) | Muxer channel buffer |-| `CAP_SCREEN_BUFFER_SIZE` | 4 | Screen capture channel buffer |-| `CAP_VIDEO_SOURCE_BUFFER_SIZE` | 300 | Video source channel capacity |-| `CAP_PIXEL_BUFFER_POOL_SIZE` | 20 | Pixel buffer pool count |-| `CAP_MAX_QUEUE_DEPTH` | 8 | ScreenCaptureKit queue depth |--### Rollback Plan-All changes use environment variables with fallback to current defaults. To rollback:-1. Set `CAP_MUXER_BUFFER_SIZE=3` to restore original macOS buffer-2. Set `CAP_SCREEN_BUFFER_SIZE=4` to restore original screen buffer-3. Changes are additive and backward compatible--### Dependencies-- No new dependencies required-- All changes are internal to `crates/recording`-------## Learned Context-- macOS muxer buffer default updated to 60 to align with 1 second of 60fps buffering.-- Screen capture buffer default raised to 15 to reduce capture jitter drops.-- Drain limit increased to 500 frames to preserve buffered frames on shutdown.-- Timestamp anomaly tracking now establishes a first-frame baseline so startup delays do not trigger forward-jump warnings.-------## Expected Results After Phase 1--| Resolution | Target FPS | Current Drop Rate | Expected Drop Rate |-|------------|------------|-------------------|-------------------|-| 3024x1964 | 30 | 9-84% | < 5% |-| 3024x1964 | 60 | 18-88% | < 10% |-| 5952x3348 | 30 | 66-99% | < 30% |-| 5952x3348 | 60 | 99% | < 50% (with software encoder) |diff --git a/app-icon.png b/app-icon.pngdeleted file mode 100644index b1ac1ef7d..000000000Binary files a/app-icon.png and /dev/null differdiff --git a/apps/storybook/vite.config.ts.timestamp-1735325995918-46a167c39672.mjs b/apps/storybook/vite.config.ts.timestamp-1735325995918-46a167c39672.mjsdeleted file mode 100644index 03c35f01e..000000000--- a/apps/storybook/vite.config.ts.timestamp-1735325995918-46a167c39672.mjs+++ /dev/null@@ -1,10 +0,0 @@-// vite.config.ts-import { defineConfig } from "file:///Users/onyedikachi/Documents/codes/algora-bounties/Cap/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite/dist/node/index.js";-import solid from "file:///Users/onyedikachi/Documents/codes/algora-bounties/Cap/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]_@[email protected][email protected]_/node_modules/vite-plugin-solid/dist/esm/index.mjs";-import capUIPlugin from "file:///Users/onyedikachi/Documents/codes/algora-bounties/Cap/packages/ui-solid/vite.js";--var vite_config_default = defineConfig({- plugins: [solid(), capUIPlugin],-});-export { vite_config_default as default };-//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCIvVXNlcnMvb255ZWRpa2FjaGkvRG9jdW1lbnRzL2NvZGVzL2FsZ29yYS1ib3VudGllcy9DYXAvYXBwcy9zdG9yeWJvb2tcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIi9Vc2Vycy9vbnllZGlrYWNoaS9Eb2N1bWVudHMvY29kZXMvYWxnb3JhLWJvdW50aWVzL0NhcC9hcHBzL3N0b3J5Ym9vay92aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vVXNlcnMvb255ZWRpa2FjaGkvRG9jdW1lbnRzL2NvZGVzL2FsZ29yYS1ib3VudGllcy9DYXAvYXBwcy9zdG9yeWJvb2svdml0ZS5jb25maWcudHNcIjtpbXBvcnQgeyBkZWZpbmVDb25maWcgfSBmcm9tIFwidml0ZVwiO1xuaW1wb3J0IHNvbGlkIGZyb20gXCJ2aXRlLXBsdWdpbi1zb2xpZFwiO1xuaW1wb3J0IGNhcFVJUGx1Z2luIGZyb20gXCJAY2FwL3VpLXNvbGlkL3ZpdGVcIjtcblxuZXhwb3J0IGRlZmF1bHQgZGVmaW5lQ29uZmlnKHtcbiAgcGx1Z2luczogW3NvbGlkKCksIGNhcFVJUGx1Z2luXSxcbn0pO1xuIl0sCiAgIm1hcHBpbmdzIjogIjtBQUFpWSxTQUFTLG9CQUFvQjtBQUM5WixPQUFPLFdBQVc7QUFDbEIsT0FBTyxpQkFBaUI7QUFFeEIsSUFBTyxzQkFBUSxhQUFhO0FBQUEsRUFDMUIsU0FBUyxDQUFDLE1BQU0sR0FBRyxXQUFXO0FBQ2hDLENBQUM7IiwKICAibmFtZXMiOiBbXQp9Cg==diff --git a/crates/rendering-skia/test_output/background_color_blue.png b/crates/rendering-skia/test_output/background_color_blue.pngdeleted file mode 100644index aa35a97a5..000000000Binary files a/crates/rendering-skia/test_output/background_color_blue.png and /dev/null differdiff --git a/crates/rendering-skia/test_output/background_color_gray.png b/crates/rendering-skia/test_output/background_color_gray.pngdeleted file mode 100644index 7542d5156..000000000Binary files a/crates/rendering-skia/test_output/background_color_gray.png and /dev/null differdiff --git a/crates/rendering-skia/test_output/background_color_green.png b/crates/rendering-skia/test_output/background_color_green.pngdeleted file mode 100644index 6375193ab..000000000Binary files a/crates/rendering-skia/test_output/background_color_green.png and /dev/null differdiff --git a/crates/rendering-skia/test_output/background_color_red.png b/crates/rendering-skia/test_output/background_color_red.pngdeleted file mode 100644index c6627a8d0..000000000Binary files a/crates/rendering-skia/test_output/background_color_red.png and /dev/null differdiff --git a/crates/rendering-skia/test_output/background_gradient.png b/crates/rendering-skia/test_output/background_gradient.pngdeleted file mode 100644index 1802f9ad9..000000000Binary files a/crates/rendering-skia/test_output/background_gradient.png and /dev/null differdiff --git a/crates/rendering-skia/test_output/background_gradient_angle_0.png b/crates/rendering-skia/test_output/background_gradient_angle_0.pngdeleted file mode 100644index 5f8ce6d83..000000000Binary files a/crates/rendering-skia/test_output/background_gradient_angle_0.png and /dev/null differdiff --git a/crates/rendering-skia/test_output/background_gradient_angle_135.png b/crates/rendering-skia/test_output/background_gradient_angle_135.pngdeleted file mode 100644index 8a1e6414d..000000000Binary files a/crates/rendering-skia/test_output/background_gradient_angle_135.png and /dev/null differdiff --git a/crates/rendering-skia/test_output/background_gradient_angle_180.png b/crates/rendering-skia/test_output/background_gradient_angle_180.pngdeleted file mode 100644index c8707f30d..000000000Binary files a/crates/rendering-skia/test_output/background_gradient_angle_180.png and /dev/null differdiff --git a/crates/rendering-skia/test_output/background_gradient_angle_225.png b/crates/rendering-skia/test_output/background_gradient_angle_225.pngdeleted file mode 100644index 734ece69f..000000000Binary files a/crates/rendering-skia/test_output/background_gradient_angle_225.png and /dev/null differdiff --git a/crates/rendering-skia/test_output/background_gradient_angle_270.png b/crates/rendering-skia/test_output/background_gradient_angle_270.pngdeleted file mode 100644index 656e8cfc1..000000000Binary files a/crates/rendering-skia/test_output/background_gradient_angle_270.png and /dev/null differdiff --git a/crates/rendering-skia/test_output/background_gradient_angle_315.png b/crates/rendering-skia/test_output/background_gradient_angle_315.pngdeleted file mode 100644index 5931e8364..000000000Binary files a/crates/rendering-skia/test_output/background_gradient_angle_315.png and /dev/null differdiff --git a/crates/rendering-skia/test_output/background_gradient_angle_45.png b/crates/rendering-skia/test_output/background_gradient_angle_45.pngdeleted file mode 100644index 2be2efba5..000000000Binary files a/crates/rendering-skia/test_output/background_gradient_angle_45.png and /dev/null differdiff --git a/crates/rendering-skia/test_output/background_gradient_angle_90.png b/crates/rendering-skia/test_output/background_gradient_angle_90.pngdeleted file mode 100644index dc8640e29..000000000Binary files a/crates/rendering-skia/test_output/background_gradient_angle_90.png and /dev/null differdiff --git a/performance-results.json b/performance-results.jsondeleted file mode 100644index 3a56f3f8a..000000000--- a/performance-results.json+++ /dev/null@@ -1,317 +0,0 @@-{- "meta": {- "timestamp": "2026-03-07T12:00:58.761167Z",- "config_name": "Performance Suite",- "config_path": "performance-fixtures/reference-recording.cap",- "platform": "macOS",- "system": {- "platform": "macOS",- "os_version": "macOS 26.2",- "cpu": "Apple M4 Max",- "memory_gb": 128,- "gpu": "Apple Silicon / Intel UHD"- },- "cap_version": null- },- "hardware": {- "displays": [- {- "id": "1",- "name": "Built-in Retina Display",- "physical_width": 3024,- "physical_height": 1964,- "logical_width": 1512.0,- "logical_height": 982.0,- "refresh_rate": 120.0,- "is_primary": true,- "scale_factor": 2.0- }- ],- "cameras": [- {- "id": "6C707041-05AC-0010-0006-000000000001",- "name": "MacBook Pro Camera",- "formats": [- {- "width": 640,- "height": 480,- "frame_rate": 30.0,- "pixel_format": null- },- {- "width": 1280,- "height": 720,- "frame_rate": 30.0,- "pixel_format": null- },- {- "width": 1760,- "height": 1328,- "frame_rate": 30.0,- "pixel_format": null- },- {- "width": 1328,- "height": 1760,- "frame_rate": 30.0,- "pixel_format": null- },- {- "width": 1552,- "height": 1552,- "frame_rate": 30.0,- "pixel_format": null- },- {- "width": 1920,- "height": 1080,- "frame_rate": 30.0,- "pixel_format": null- },- {- "width": 1080,- "height": 1920,- "frame_rate": 30.0,- "pixel_format": null- }- ],- "is_virtual": false,- "is_capture_card": false- },- {- "id": "Camo",- "name": "Camo Camera",- "formats": [- {- "width": 1920,- "height": 1080,- "frame_rate": 30.0,- "pixel_format": null- }- ],- "is_virtual": true,- "is_capture_card": false- },- {- "id": "020D3C41-6354-495C-96AC-971500000001",- "name": "iPhone 16 Camera",- "formats": [- {- "width": 640,- "height": 480,- "frame_rate": 30.0,- "pixel_format": null- },- {- "width": 640,- "height": 480,- "frame_rate": 60.0,- "pixel_format": null- },- {- "width": 1280,- "height": 720,- "frame_rate": 30.0,- "pixel_format": null- },- {- "width": 1280,- "height": 720,- "frame_rate": 60.0,- "pixel_format": null- },- {- "width": 1920,- "height": 1080,- "frame_rate": 30.0,- "pixel_format": null- },- {- "width": 1920,- "height": 1080,- "frame_rate": 60.0,- "pixel_format": null- },- {- "width": 1920,- "height": 1440,- "frame_rate": 30.0,- "pixel_format": null- },- {- "width": 1920,- "height": 1440,- "frame_rate": 60.0,- "pixel_format": null- }- ],- "is_virtual": false,- "is_capture_card": false- },- {- "id": "020D3C41-6354-495C-96AC-971500000002",- "name": "iPhone 16 Desk View Camera",- "formats": [- {- "width": 1920,- "height": 1440,- "frame_rate": 30.0,- "pixel_format": null- }- ],- "is_virtual": false,- "is_capture_card": false- },- {- "id": "6C707041-05AC-0010-0006-000000000002",- "name": "MacBook Pro Desk View Camera",- "formats": [- {- "width": 1920,- "height": 1440,- "frame_rate": 30.0,- "pixel_format": null- }- ],- "is_virtual": false,- "is_capture_card": false- }- ],- "audio_inputs": [- {- "id": "iPhone 16 Microphone",- "name": "iPhone 16 Microphone",- "sample_rates": [48000],- "channels": 1,- "is_bluetooth": false,- "is_usb": false,- "is_builtin": false- },- {- "id": "MacBook Pro Microphone",- "name": "MacBook Pro Microphone",- "sample_rates": [44100, 48000, 96000],- "channels": 1,- "is_bluetooth": false,- "is_usb": false,- "is_builtin": true- },- {- "id": "Camo Microphone",- "name": "Camo Microphone",- "sample_rates": [48000],- "channels": 2,- "is_bluetooth": false,- "is_usb": false,- "is_builtin": false- },- {- "id": "MOTIV Mix Virtual",- "name": "MOTIV Mix Virtual",- "sample_rates": [48000],- "channels": 2,- "is_bluetooth": false,- "is_usb": false,- "is_builtin": false- }- ],- "audio_outputs": [- {- "id": "MacBook Pro Speakers",- "name": "MacBook Pro Speakers",- "sample_rates": [44100, 48000, 96000],- "channels": 2,- "is_default": true- },- {- "id": "Camo Microphone",- "name": "Camo Microphone",- "sample_rates": [48000],- "channels": 2,- "is_default": false- },- {- "id": "MOTIV Mix Virtual",- "name": "MOTIV Mix Virtual",- "sample_rates": [48000],- "channels": 2,- "is_default": false- }- ],- "system_info": {- "platform": "macOS",- "os_version": "macOS 26.2",- "cpu": "Apple M4 Max",- "memory_gb": 128,- "gpu": "Apple Silicon / Intel UHD"- }- },- "results": [- {- "test_id": "performance-open",- "name": "Fixture Open",- "config": {- "display": {- "width": 1920,- "height": 1080,- "fps": 30,- "display_id": "performance-fixtures/reference-recording.cap"- },- "camera": null,- "audio": null,- "duration_secs": 0- },- "iterations": [],- "status": "error",- "failure_reason": "Failed to open fixture: failed to load recording meta from performance-fixtures/reference-recording.cap: No such file or directory (os error 2)",- "notes": []- },- {- "test_id": "performance-playback",- "name": "Editor Playback",- "config": {- "display": {- "width": 1920,- "height": 1080,- "fps": 30,- "display_id": "performance-fixtures/reference-recording.cap"- },- "camera": null,- "audio": null,- "duration_secs": 0- },- "iterations": [],- "status": "error",- "failure_reason": "Playback benchmark failed: failed to load recording meta from performance-fixtures/reference-recording.cap: No such file or directory (os error 2)",- "notes": []- },- {- "test_id": "performance-export",- "name": "Export Startup And Throughput",- "config": {- "display": {- "width": 1920,- "height": 1080,- "fps": 30,- "display_id": "performance-fixtures/reference-recording.cap"- },- "camera": null,- "audio": null,- "duration_secs": 0- },- "iterations": [],- "status": "error",- "failure_reason": "Export benchmark failed: failed to build exporter base: Failed to load config: No such file or directory (os error 2)",- "notes": []- }- ],- "summary": {- "total_tests": 3,- "passed": 0,- "failed": 0,- "skipped": 0,- "errors": 3,- "duration_secs": 0.001484459,- "pass_rate": 0.0- }-}