restore capture fps filter, keep fix_intermediate_fps re-encode

This commit is contained in:
2026-05-30 01:55:55 +03:00
parent 076ac21980
commit 151220a4f7
+3 -2
View File
@@ -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));