mirror of
https://github.com/SteamFramelyHomebrew/framely.git
synced 2026-10-23 11:01:57 +02:00
Use FFmpeg 7 compatible frame-rate options for compatibility streams
This commit is contained in:
1 parent
afa29ac8f2
commit
37464e5158
1 file changed
+1
-3
+1
-3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user