rtpssrcdemux
rtpssrcdemux acts as a demuxer for RTP packets based on the SSRC of the packets. Its main purpose is to allow an application to easily receive and decode an RTP stream with multiple SSRCs.
For each SSRC that is detected, a new pad will be created and the GstRtpSsrcDemux::new-ssrc-pad signal will be emitted.
Example pipelines
gst-launch-1.0 udpsrc caps="application/x-rtp" ! rtpssrcdemux ! fakesink
Takes an RTP stream and send the RTP packets with the first detected SSRC to fakesink, discarding the other SSRCs.
Hierarchy
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──rtpssrcdemux
Factory details
Authors: – Wim Taymans
Classification: – Demux/Network/RTP
Rank – none
Plugin – rtpmanager
Package – GStreamer Good Plug-ins
Pad Templates
rtcp_sink
application/x-rtcp:
rtcp_src_%u
application/x-rtcp:
sink
application/x-rtp:
src_%u
application/x-rtp:
Signals
clear-ssrc
clear_ssrc_callback (GstElement * demux, guint ssrc, gpointer udata)
def clear_ssrc_callback (demux, ssrc, udata):
#python callback for the 'clear-ssrc' signal
function clear_ssrc_callback(demux: GstElement * demux, ssrc: guint ssrc, udata: gpointer udata): {
// javascript callback for the 'clear-ssrc' signal
}
Action signal to remove the pad for SSRC.
Parameters:
demux
–
the object which received the signal
ssrc
–
the SSRC of the pad
udata
–
new-ssrc-pad
new_ssrc_pad_callback (GstElement * demux, guint ssrc, GstPad * pad, gpointer udata)
def new_ssrc_pad_callback (demux, ssrc, pad, udata):
#python callback for the 'new-ssrc-pad' signal
function new_ssrc_pad_callback(demux: GstElement * demux, ssrc: guint ssrc, pad: GstPad * pad, udata: gpointer udata): {
// javascript callback for the 'new-ssrc-pad' signal
}
Emitted when a new SSRC pad has been created.
Parameters:
demux
–
the object which received the signal
ssrc
–
the SSRC of the pad
pad
–
the new pad.
udata
–
Flags: Run Last
removed-ssrc-pad
removed_ssrc_pad_callback (GstElement * demux, guint ssrc, GstPad * pad, gpointer udata)
def removed_ssrc_pad_callback (demux, ssrc, pad, udata):
#python callback for the 'removed-ssrc-pad' signal
function removed_ssrc_pad_callback(demux: GstElement * demux, ssrc: guint ssrc, pad: GstPad * pad, udata: gpointer udata): {
// javascript callback for the 'removed-ssrc-pad' signal
}
Emitted when a SSRC pad has been removed.
Parameters:
demux
–
the object which received the signal
ssrc
–
the SSRC of the pad
pad
–
the removed pad.
udata
–
Flags: Run Last
Properties
max-streams
“max-streams” guint
The maximum number of streams allowed
Flags : Read / Write
Default value : -1
The results of the search are