From 047f42084c9506a68f2eb24aa63819cd437bddcb Mon Sep 17 00:00:00 2001 From: Dzmitry Maladzenkau <151655734+maladzenkau@users.noreply.github.com> Date: Tue, 4 Feb 2025 17:02:08 +0100 Subject: [PATCH] Update image2rtsp.cpp Fixed glued pipeline elements. https://github.com/maladzenkau/image2rtsp/issues/8 --- src/image2rtsp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image2rtsp.cpp b/src/image2rtsp.cpp index d78c3a7..822d2a6 100644 --- a/src/image2rtsp.cpp +++ b/src/image2rtsp.cpp @@ -39,7 +39,7 @@ Image2rtsp::Image2rtsp() : Node("image2rtsp"){ rtsp_server = rtsp_server_create(port, local_only); appsrc = NULL; // Setup the pipeline - pipeline_tail = "key-int-max=30 ! video/x-h264, profile=baseline ! rtph264pay name=pay0 pt=96 )"; + pipeline_tail = " key-int-max=30 ! video/x-h264, profile=baseline ! rtph264pay name=pay0 pt=96 )"; if (camera == false){ pipeline_head = "( appsrc name=imagesrc do-timestamp=true min-latency=0 max-latency=0 max-bytes=1000 is-live=true ! videoconvert ! videoscale ! "; pipeline = pipeline_head + caps_1 + framerate + caps_2 + " ! x264enc tune=zerolatency bitrate=" + bitrate + pipeline_tail;