Use FFmpeg 7 compatible frame-rate options for compatibility streams

This commit is contained in:
toorux committed 2026-10-09 23:52:46 +08:00
1 parent afa29ac8f2
commit 37464e5158
1 file changed
+1 -3
+1 -3
View File
@@ -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);