get rtcp packets from gst-rtsp-server

Nirbheek Chauhan nirbheek.chauhan at
Thu Oct 14 04:03:20 UTC 2021

On Wed, Oct 13, 2021 at 3:45 PM Oleg Konovalov via gstreamer-devel
<gstreamer-devel at> wrote:
> I need to get rtcp packets while running gst-rtsp-server example test-uri.c ( gst-rtsp-server-1.18.1). No idea how to do it.
> Is it possible at all ? Or someone can post some idea and a "way" how to get those rtcp packet ?

The easiest way is to use a pad probe on the udpsink that is sending
out the RTCP packets. Just remember that the callback you set there
will be invoked from inside an arbitrary gstreamer thread, so you
should not do non-trivial processing inside that. You should signal a
different thread and do the work there, or invoke it on the main loop.


More information about the gstreamer-devel mailing list