From c02dc292120ca9bfcae4c1ac93861c87fb63fc57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Ant=C3=B4nio=20Cardoso?= Date: Mon, 11 Mar 2024 14:06:16 -0300 Subject: [PATCH] src: stream: rtsp: shmsrc needs to do-timestamp --- src/stream/rtsp/rtsp_server.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stream/rtsp/rtsp_server.rs b/src/stream/rtsp/rtsp_server.rs index 8f3422ab..a51a1427 100644 --- a/src/stream/rtsp/rtsp_server.rs +++ b/src/stream/rtsp/rtsp_server.rs @@ -138,7 +138,7 @@ impl RTSPServer { "H264" => { format!( concat!( - "shmsrc socket-path={socket_path} is-live=true", + "shmsrc socket-path={socket_path} do-timestamp=true is-live=true", " ! queue leaky=downstream flush-on-eos=true silent=true max-size-buffers=0", " ! capsfilter caps={rtp_caps:?}", " ! rtph264depay", @@ -151,7 +151,7 @@ impl RTSPServer { "RAW" => { format!( concat!( - "shmsrc socket-path={socket_path} is-live=true", + "shmsrc socket-path={socket_path} do-timestamp=true is-live=true", " ! queue leaky=downstream flush-on-eos=true silent=true max-size-buffers=0", " ! capsfilter caps={rtp_caps:?}", " ! rtpvrawdepay", @@ -164,7 +164,7 @@ impl RTSPServer { "JPEG" => { format!( concat!( - "shmsrc socket-path={socket_path} is-live=true", + "shmsrc socket-path={socket_path} do-timestamp=true is-live=true", " ! queue leaky=downstream flush-on-eos=true silent=true max-size-buffers=10", " ! capsfilter caps={rtp_caps:?}", " ! rtpjpegdepay",