Skip to content

Commit

Permalink
Disable keyframe repeat again
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumEntangledAndy committed Oct 28, 2023
1 parent 5ede452 commit 07636a4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/rtsp/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,9 @@ async fn stream_run(
let thread_vid = vid.clone();
let mut thread_client_count = client_count.subscribe();
log::debug!("stream_config.fps: {}", stream_config.fps);
let fallback_time = Duration::from_secs(3);
let fallback_framerate =
Duration::from_millis(1000u64 / std::cmp::max(stream_config.fps as u64, 5u64));
// let fallback_time = Duration::from_secs(3);
// let fallback_framerate =
// Duration::from_millis(1000u64 / std::cmp::max(stream_config.fps as u64, 5u64));
if let Some(thread_vid) = thread_vid {
set.spawn(async move {
thread_client_count.activate().await?;
Expand All @@ -440,17 +440,17 @@ async fn stream_run(
AnyResult::Ok(())
},
v = send_to_appsrc(
repeat_keyframe(
// repeat_keyframe(
frametime_stream(
hold_stream(
wait_for_keyframe(
vid_data_rx,
)
)
),
fallback_time,
fallback_framerate,
),
// fallback_time,
// fallback_framerate,
// ),
&thread_vid) => {
v
},
Expand Down

0 comments on commit 07636a4

Please sign in to comment.