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));