From 151220a4f7d57adb08c40286e2f7e29b9d3295df Mon Sep 17 00:00:00 2001 From: lashman Date: Sat, 30 May 2026 01:55:55 +0300 Subject: [PATCH] restore capture fps filter, keep fix_intermediate_fps re-encode --- src-tauri/src/capture.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/capture.rs b/src-tauri/src/capture.rs index ccca6a9..5b5f082 100644 --- a/src-tauri/src/capture.rs +++ b/src-tauri/src/capture.rs @@ -58,8 +58,9 @@ impl GraphicsCaptureApiHandler for CaptureHandler { setup.width }; - // Capture all frames at the rate they arrive. No fps filter in capture - - // the export pipeline handles frame rate conversion. + // Capture at declared rate, apply fps filter to normalize timestamps. + // fix_intermediate_fps re-encodes with measured actual rate after. + filter_parts.push(format!("fps={}", setup.fps)); if working_width > MAX_ENCODE_WIDTH { filter_parts.push(format!("scale={}:-2", MAX_ENCODE_WIDTH));