<html><head><style>pre,code,address {
margin: 0px;
}
h1,h2,h3,h4,h5,h6 {
margin-top: 0.2em;
margin-bottom: 0.2em;
}
ol,ul {
margin-top: 0em;
margin-bottom: 0em;
}
blockquote {
margin-top: 0em;
margin-bottom: 0em;
}
</style></head><body><div>Hi,</div><div><br></div><div>quick recommendation, set a subject when posting to mailing list. Making your post look nicer will attract more volunteers.<br><br>Le mercredi 02 août 2023 à 22:25 +0530, Sulthan Amanu a écrit :</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:1.25em 0px;color:rgb(55,65,81);font-family:Söhne,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif,"Helvetica Neue",Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:16px;background-color:rgb(247,247,248)">Dear Team,</p><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:1.25em 0px;color:rgb(55,65,81);font-family:Söhne,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif,"Helvetica Neue",Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:16px;background-color:rgb(247,247,248)">I hope this message finds you well. We have encountered an issue while attempting to stream the buffer from an rtsp location using a C++ code. Specifically, we are facing difficulties linking the rtspsrc and rtph265depay elements in the pipeline. We would greatly appreciate your assistance in resolving this matter.</p><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:1.25em 0px;color:rgb(55,65,81);font-family:Söhne,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif,"Helvetica Neue",Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:16px;background-color:rgb(247,247,248)">Here are the details of the problem:<span style="border:0px solid rgb(217,217,227);box-sizing:border-box;font-weight:600">Issue Description:</span>We have a C++ code responsible for handling buffer streaming from an rtsp location. The pipeline consists of the rtspsrc element, which is intended to fetch data from the rtsp location, and the rtph265depay element, which is meant to handle the H.265 encoded data. However, despite our efforts, these elements are unable to link properly, resulting in the failure of buffer streaming Raw Pipeline - working fine<span class="gmail-ui-provider gmail-fy gmail-b gmail-c gmail-d gmail-e gmail-f gmail-g gmail-h gmail-i gmail-j gmail-k gmail-l gmail-m gmail-n gmail-o gmail-p gmail-q gmail-r gmail-s gmail-t gmail-u gmail-v gmail-w gmail-x gmail-y gmail-z gmail-ab gmail-ac gmail-ae gmail-af gmail-ag gmail-ah gmail-ai gmail-aj gmail-ak" dir="ltr">gst-launch-1.0 rtspsrc location = rtsp://<a href="http://192.168.1.10:5005/routecam">192.168.1.10:5005/routecam</a> latency = 0 ! rtph265depay ! h265parse ! d3d11h265dec ! d3d11videosink name= D3D11Renderer</span>C++ code had a linking issue</p><p style="margin:0px">gst-launch-1.0 rtspsrc location = rtsp://<a href="http://192.168.1.10:5005/routecam">192.168.1.10:5005/routecam</a> latency = 0 ! rtph265depay ! h265parse ! d3d11h265dec ! d3d11videosink name= D3D11Renderer<br></p><p> </p><p> GstElement* source = gst_element_factory_make("rtspsrc", "source");</p><p> GstElement* depay = NULL;<br> GstElement* decoder = NULL;<br> GstElement* parse = NULL;<br> GstElement* fps_sink = gst_element_factory_make("fpsdisplaysink", "fps_sink");<br> GstElement* videoconvert = gst_element_factory_make("videoconvert", "videoconvert");<br> GstElement* videoscale = gst_element_factory_make("videoscale", "videoscale");</p></div></blockquote><div>There 3 are not used.</div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><p> GstElement* Renderer = gst_element_factory_make("d3d11videosink", "D3D11Renderer");</p></div></blockquote><div><br></div><div>[...]</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><p> /*if (!gst_element_link_many(source, depay, parse, decoder, Renderer, NULL)) {<br> g_printerr("Elements could not be linked.\n");<br> gst_object_unref(pipeline);<br> return false;<br> }*/</p></div></blockquote><div><br></div><div>rtspsrc does not know statically what pads are needed. Pads will be exposed later on when the remote stream description is received. gst-launch will connect to the "pad-added" signal and defer the linking. You may want to go through this tutorial in order to build your understanding around dynamic pipelines.</div><div><br></div><div><a href="https://gstreamer.freedesktop.org/documentation/tutorials/basic/dynamic-pipelines.html?gi-language=c">https://gstreamer.freedesktop.org/documentation/tutorials/basic/dynamic-pipelines.html?gi-language=c</a></div><div><br></div><div>regards,</div><div>Nicolas</div><div><span></span></div></body></html>