configurable capture fps

This commit is contained in:
2026-05-12 01:35:02 +03:00
parent 2882e78795
commit c95e8067c0
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -17,7 +17,6 @@ use windows_capture::settings::{
use crate::CaptureRect;
const TARGET_FPS: u32 = 30;
const MAX_ENCODE_WIDTH: u32 = 1920;
#[derive(Debug, Clone)]
@@ -149,6 +148,7 @@ pub fn start(
capture_cursor: bool,
_audio: bool,
crop: Option<CaptureRect>,
fps: u32,
) -> Result<CaptureSession> {
let monitor = Monitor::primary().map_err(|e| anyhow!("primary monitor: {e:?}"))?;
let raw_width = monitor
@@ -167,7 +167,7 @@ pub fn start(
ffmpeg_path,
width,
height,
fps: TARGET_FPS,
fps,
crop,
};