From 0ebbded77634db9c3b7e7a6af540477df5908a59 Mon Sep 17 00:00:00 2001 From: lashman Date: Sat, 30 May 2026 00:53:01 +0300 Subject: [PATCH] restore capture fps filter, keep -r removal from gif encoder The capture fps filter is needed to keep intermediate files at the user's chosen fps instead of the monitor's native refresh rate. The GIF speed fix was just removing the -r output flag from the gif encoder. --- src-tauri/src/capture.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src-tauri/src/capture.rs b/src-tauri/src/capture.rs index 4f4abb5..1006e1b 100644 --- a/src-tauri/src/capture.rs +++ b/src-tauri/src/capture.rs @@ -58,10 +58,7 @@ impl GraphicsCaptureApiHandler for CaptureHandler { }; // Reduce frame rate before scaling to avoid processing unnecessary frames - // NOTE: Do NOT add fps filter here - it mangles timestamps and causes - // double fps conversion when the GIF/video encoder also applies fps filtering. - // The intermediate file keeps the monitor's native refresh rate. - // The export pipeline's fps filter handles the conversion correctly. + filter_parts.push(format!("fps={}", setup.fps)); if working_width > MAX_ENCODE_WIDTH { filter_parts.push(format!("scale={}:-2", MAX_ENCODE_WIDTH));