From b84b7a7ce9fa9ea873420e2103cf18cfeedff52f Mon Sep 17 00:00:00 2001 From: Aatman Jain Date: Thu, 29 Oct 2026 23:15:41 +0000 Subject: [PATCH] perf(enc): allow VideoToolbox H.264 at 4K60 on macOS Raise the conservative 4K FPS estimate so recording at 60fps no longer falls back to software x264 when hardware encoding can keep up. --- crates/enc-ffmpeg/src/video/h264.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/enc-ffmpeg/src/video/h264.rs b/crates/enc-ffmpeg/src/video/h264.rs index bdf1c6f68d..bd374ec190 100644 --- a/crates/enc-ffmpeg/src/video/h264.rs +++ b/crates/enc-ffmpeg/src/video/h264.rs @@ -1227,7 +1227,7 @@ impl H264Encoder { } #[cfg(any(target_os = "macos", target_os = "windows"))] -const VIDEOTOOLBOX_4K_MAX_FPS: f64 = 55.0; +const VIDEOTOOLBOX_4K_MAX_FPS: f64 = 120.0; #[cfg(any(target_os = "macos", target_os = "windows"))] const VIDEOTOOLBOX_1080P_MAX_FPS: f64 = 190.0; #[cfg(any(target_os = "macos", target_os = "windows"))]