RTP pipeline with custom RTP header extension for RTSP server

Kristian.Alfheim at kongsberg.com Kristian.Alfheim at kongsberg.com
Fri Oct 21 06:08:32 UTC 2022


Thank you for getting back to me – this worked perfectly!

Best Regards,
Kristian Alfheim

From: Eslam Ahmed <eslam.ahmed at avidbeam.com>
Sent: onsdag 19. oktober 2022 14:24
To: Discussion of the development of and with GStreamer <gstreamer-devel at lists.freedesktop.org>
Cc: Alfheim, Kristian <Kristian.Alfheim at kongsberg.com>
Subject: Re: RTP pipeline with custom RTP header extension for RTSP server

Hi, You can hook on the "media-configure" callback of GstRTSPMediaFactory https: //thiblahute. github. io/GStreamer-doc/gst-rtsp-server-1. 0/rtsp-media-factory. html?gi-language=c#GstRTSPMediaFactory: : media-configure Then you can invoke
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender

This message is from an EXTERNAL SENDER - be CAUTIOUS, particularly with links and attachments



ZjQcmQRYFpfptBannerEnd
Hi,

You can hook on the "media-configure" callback of GstRTSPMediaFactory https://thiblahute.github.io/GStreamer-doc/gst-rtsp-server-1.0/rtsp-media-factory.html?gi-language=c#GstRTSPMediaFactory::media-configure<https://urldefense.com/v3/__https:/thiblahute.github.io/GStreamer-doc/gst-rtsp-server-1.0/rtsp-media-factory.html?gi-language=c*GstRTSPMediaFactory::media-configure__;Iw!!L8f3-wPVSng!HRbq3_vRmYBfsNz4FTgCSegROdt1WK0yjWHKTFhdYXNxAhiw6wlwCzWnhlnHRcN0bHXLulplW8tCwW-DMY9LnlyzjCroXx4$>
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.
https://thiblahute.github.io/GStreamer-doc/gst-rtsp-server-1.0/rtsp-media.html?gi-language=c#gst_rtsp_media_get_element<https://urldefense.com/v3/__https:/thiblahute.github.io/GStreamer-doc/gst-rtsp-server-1.0/rtsp-media.html?gi-language=c*gst_rtsp_media_get_element__;Iw!!L8f3-wPVSng!HRbq3_vRmYBfsNz4FTgCSegROdt1WK0yjWHKTFhdYXNxAhiw6wlwCzWnhlnHRcN0bHXLulplW8tCwW-DMY9LnlyzEoD8oas$>


Best Regards,
Eslam Ahmed


On Wed, Oct 19, 2022 at 1:38 PM Kristian.Alfheim--- via gstreamer-devel <gstreamer-devel at lists.freedesktop.org<mailto:gstreamer-devel at lists.freedesktop.org>> wrote:
Hi,

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.

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?

The most relevant StackOverflow thread I could find is: https://stackoverflow.com/questions/34012197/data-transfer-through-rtsp-in-gstreamer<https://urldefense.com/v3/__https:/stackoverflow.com/questions/34012197/data-transfer-through-rtsp-in-gstreamer__;!!L8f3-wPVSng!HRbq3_vRmYBfsNz4FTgCSegROdt1WK0yjWHKTFhdYXNxAhiw6wlwCzWnhlnHRcN0bHXLulplW8tCwW-DMY9LnlyzKopWkpY$>, but it seems nothing definitive was concluded here.

Best Regards,
Kristian Alfheim

________________________________

CONFIDENTIALITY
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20221021/9b24790a/attachment.htm>


More information about the gstreamer-devel mailing list