From b690b0700d4ef67a0478e8cd4769a6bd64225575 Mon Sep 17 00:00:00 2001 From: Butterfly Dev Date: Tue, 7 Apr 2026 04:57:45 +0000 Subject: [PATCH] =?UTF-8?q?agent:=20config.rs=20=E2=80=94=20add=20--encode?= =?UTF-8?q?r=20h264|jpeg=20flag,=20bump=20default=20FPS=20to=2060?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agent/src/config.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/agent/src/config.rs b/agent/src/config.rs index a3884d8..eab4641 100644 --- a/agent/src/config.rs +++ b/agent/src/config.rs @@ -22,10 +22,14 @@ pub struct AgentConfig { pub session_id: Option, /// Target capture frame rate (frames per second). - #[arg(long, default_value_t = 30, env = "BUTTERFLY_FPS")] + #[arg(long, default_value_t = 60, env = "BUTTERFLY_FPS")] pub fps: u32, - /// JPEG encoding quality (1–100). Lower = smaller frames, less quality. + /// Video encoder backend: "h264" (low-latency, GPU-optional) or "jpeg" (fallback). + #[arg(long, default_value = "h264", env = "BUTTERFLY_ENCODER")] + pub encoder: String, + + /// Encoding quality (1–100). For H.264 this maps to bitrate; for JPEG it's direct quality. #[arg(long, default_value_t = 60, env = "BUTTERFLY_QUALITY")] pub quality: u8,