Search code examples
c++gstreamerrtpgstreamer-1.0

Setting different RTP SSRCs with GStreamer and multiudpsink


In a C++ program I'm using a GStreamer pipeline to generate an RTP stream and send it to two destinations at the same time with a multiudpsink element.

This works fine, except that both streams have the same RTP SSRC. Is there a way to set different SSRCs for the two streams ?


Solution

  • The solution I found was to use a tee element and have multiple legs that each have their own RTP encoder (in my case rtpopuspay) and multiupdsink element.

    That way each feeds gets a different SSRC.