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.
This commit is contained in:
2026-05-30 00:53:01 +03:00
parent 2eca4b64b6
commit 0ebbded776
+1 -4
View File
@@ -58,10 +58,7 @@ impl GraphicsCaptureApiHandler for CaptureHandler {
}; };
// Reduce frame rate before scaling to avoid processing unnecessary frames // Reduce frame rate before scaling to avoid processing unnecessary frames
// NOTE: Do NOT add fps filter here - it mangles timestamps and causes filter_parts.push(format!("fps={}", setup.fps));
// 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.
if working_width > MAX_ENCODE_WIDTH { if working_width > MAX_ENCODE_WIDTH {
filter_parts.push(format!("scale={}:-2", MAX_ENCODE_WIDTH)); filter_parts.push(format!("scale={}:-2", MAX_ENCODE_WIDTH));