<div dir="ltr"><div>Hi,</div><div><br></div><div>You can hook on the "media-configure" callback of GstRTSPMediaFactory <a href="https://thiblahute.github.io/GStreamer-doc/gst-rtsp-server-1.0/rtsp-media-factory.html?gi-language=c#GstRTSPMediaFactory::media-configure">https://thiblahute.github.io/GStreamer-doc/gst-rtsp-server-1.0/rtsp-media-factory.html?gi-language=c#GstRTSPMediaFactory::media-configure</a><br>Then you can invoke gst_rtsp_media_get_element on GstRTSPMedia to get a bin containing all the elements that were passed to gst_rtsp_media_factory_set_launch. From there you can retrieve your elements as you normally would and install whatever probes you need.</div><div><a href="https://thiblahute.github.io/GStreamer-doc/gst-rtsp-server-1.0/rtsp-media.html?gi-language=c#gst_rtsp_media_get_element">https://thiblahute.github.io/GStreamer-doc/gst-rtsp-server-1.0/rtsp-media.html?gi-language=c#gst_rtsp_media_get_element</a><br></div><div><br></div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Best Regards,<br>Eslam Ahmed</div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 19, 2022 at 1:38 PM Kristian.Alfheim--- via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-6070417825972567352">





<div lang="NO-BOK">
<div class="m_-6070417825972567352WordSection1">
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span lang="EN-US">We’re trying to make use of a custom RTP header extension together with our RTSP server. To set up a pipeline for the RTSP server, we need to use the “gst_rtsp_media_factory_set_launch( <PIPELINE> )”, where PIPELINE consists
 of the elements we need for our RTP pipeline. However, to use a custom RTP header extension we need access to the GstElement object of the payloader, so that we may hook the extension onto the “add-extension” action signal of the payloader.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">How would one go about creating the GstElement payloader object, add the header extension via. the action signal, and then use this same payloader for the pipeline description used by gst_rtsp_media_factory_set_launch?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">The most relevant StackOverflow thread I could find is:
<a href="https://stackoverflow.com/questions/34012197/data-transfer-through-rtsp-in-gstreamer" target="_blank">
https://stackoverflow.com/questions/34012197/data-transfer-through-rtsp-in-gstreamer</a>, but it seems nothing definitive was concluded here.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Best Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Kristian Alfheim<u></u><u></u></span></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="2"><br>
CONFIDENTIALITY<br>
This e-mail and any attachment contain KONGSBERG information which may be proprietary, confidential or subject to export regulations, and is only meant for the intended recipient(s). Any disclosure, copying, distribution or use is prohibited, if not otherwise
 explicitly agreed with KONGSBERG. If received in error, please delete it immediately from your system and notify the sender properly.<br>
</font>
</div>

</div></blockquote></div>