diff --git a/src/cast/runtime.rs b/src/cast/runtime.rs index 54bc9e4..a00fe96 100644 --- a/src/cast/runtime.rs +++ b/src/cast/runtime.rs @@ -139,8 +139,6 @@ impl Casting { "2", "-r", &s.fps.to_string(), - "-fps_mode", - "passthrough", "-g", &s.fps.to_string(), "-b:v", @@ -261,7 +259,7 @@ impl Casting { "-rtsp_transport", "tcp", ]); - if self.active_settings.as_ref().is_some_and(|s|s.codec==Codec::H265) {command.args(["-c:v","libx264","-preset","ultrafast","-tune","zerolatency","-profile:v","baseline","-bf","0","-r",&self.active_settings.as_ref().unwrap().fps.to_string(),"-fps_mode","passthrough"]);} else {command.args(["-c:v","copy"]);} + if self.active_settings.as_ref().is_some_and(|s|s.codec==Codec::H265) {command.args(["-c:v","libx264","-preset","ultrafast","-tune","zerolatency","-profile:v","baseline","-bf","0","-r",&self.active_settings.as_ref().unwrap().fps.to_string()]);} else {command.args(["-c:v","copy"]);} command.arg(&target); self.spawn(&mut command)?; let deadline=Instant::now()+Duration::from_secs(12);