Dynamic pipeline for GstRTSPMediaFactory launch line

Tim-Philipp Müller t.i.m at zen.co.uk
Sun Jan 15 13:42:48 UTC 2023


Hi Eslam,

> Is it possible to make use of dynamic pipelines when passing the
> launch line via gst_rtsp_media_factory_set_launch? 
> 
> For starters, I found out that it must have at least one payloader
> named pay%d. This is quite problematic if you don't know the codec
> before spinning the pipeline as you must use the correct payloader.
> Luckily, I am using rtpgstpay as my payloader so it's fixed.
> 
> But what about the rest of the pipeline? For example, if the codec is
> h264 then I need to add an h264parse element in the pipeline same for
> h265 or other codecs. This can be done when using uridecodebin and
> connect the pad-added callback. Is this the right way to go
> about this? and if my payloader is not fixed, how would one add it
> dynamically at runtime?

Are you aware of GstRTSPMediaFactoryURI in gst-rtsp-server?

It does exactly that based on uridecodebin.

Cheers
 Tim



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230115/973b705b/attachment.htm>


More information about the gstreamer-devel mailing list