Top |
guint | num-rtx-requests | Read |
guint | num-rtx-packets | Read |
guint | num-rtx-assoc-packets | Read |
GstStructure * | payload-type-map | Read / Write |
The receiver will listen to the custom retransmission events from the downstream jitterbuffer and will remember the SSRC1 of the stream and seqnum that was requested. When it sees a packet with one of the stored seqnum, it associates the SSRC2 of the stream with the SSRC1 of the master stream. From then it knows that SSRC2 is the retransmission stream of SSRC1. This algorithm is stated in RFC 4588. For this algorithm to work, RFC4588 also states that no two pending retransmission requests can exist for the same seqnum and different SSRCs or else it would be impossible to associate the retransmission with the original requester SSRC. When the RTX receiver has associated the retransmission packets, it can depayload and forward them to the source pad of the element. RTX is SSRC-multiplexed. See GstRtpRtxSend
1 2 3 4 5 6 |
gst-launch-1.0 rtpsession name=rtpsession \ audiotestsrc ! speexenc ! rtpspeexpay pt=97 ! rtprtxsend rtx-payload-type=99 ! \ identity drop-probability=0.1 ! rtpsession.send_rtp_sink \ rtpsession.send_rtp_src ! udpsink host="127.0.0.1" port=5000 \ udpsrc port=5001 ! rtpsession.recv_rtcp_sink \ rtpsession.send_rtcp_src ! udpsink host="127.0.0.1" port=5002 sync=false async=false |
1 2 3 4 5 6 7 |
gst-launch-1.0 rtpsession name=rtpsession \ udpsrc port=5000 caps="application/x-rtp,media=(string)audio,clock-rate=(int)44100,encoding-name=(string)SPEEX,encoding-params=(string)1,octet-align=(string)1" ! \ rtpsession.recv_rtp_sink \ rtpsession.recv_rtp_src ! rtprtxreceive rtx-payload-types="99" ! rtpjitterbuffer do-retransmission=true ! rtpspeexdepay ! \ speexdec ! audioconvert ! autoaudiosink \ rtpsession.send_rtcp_src ! udpsink host="127.0.0.1" port=5001 \ udpsrc port=5002 ! rtpsession.recv_rtcp_sink sync=fakse async=false |
1 2 3 4 5 6 7 8 9 10 11 12 |
gst-launch-1.0 rtpsession name=rtpsession0 \ audiotestsrc wave=0 ! speexenc ! rtpspeexpay pt=97 ! rtprtxsend rtx-payload-type=99 seqnum-offset=1 ! \ identity drop-probability=0.1 ! rtpsession0.send_rtp_sink \ rtpsession0.send_rtp_src ! udpsink host="127.0.0.1" port=5000 \ udpsrc port=5001 ! rtpsession0.recv_rtcp_sink \ rtpsession0.send_rtcp_src ! udpsink host="127.0.0.1" port=5002 sync=false async=false \ rtpsession name=rtpsession1 \ audiotestsrc wave=0 ! speexenc ! rtpspeexpay pt=97 ! rtprtxsend rtx-payload-type=99 seqnum-offset=10 ! \ identity drop-probability=0.1 ! rtpsession1.send_rtp_sink \ rtpsession1.send_rtp_src ! udpsink host="127.0.0.1" port=5000 \ udpsrc port=5004 ! rtpsession1.recv_rtcp_sink \ rtpsession1.send_rtcp_src ! udpsink host="127.0.0.1" port=5002 sync=false async=false |
1 2 3 4 5 6 7 8 |
gst-launch-1.0 rtpsession name=rtpsession udpsrc port=5000 caps="application/x-rtp,media=(string)audio,clock-rate=(int)44100,encoding-name=(string)SPEEX,encoding-params=(string)1,octet-align=(string)1" ! \ rtpsession.recv_rtp_sink \ rtpsession.recv_rtp_src ! rtprtxreceive rtx-payload-types="99" ! rtpssrcdemux name=demux \ demux. ! queue ! rtpjitterbuffer do-retransmission=true ! rtpspeexdepay ! speexdec ! audioconvert ! autoaudiosink \ demux. ! queue ! rtpjitterbuffer do-retransmission=true ! rtpspeexdepay ! speexdec ! audioconvert ! autoaudiosink \ rtpsession.send_rtcp_src ! ! tee name=t ! queue ! udpsink host="127.0.0.1" port=5001 t. ! queue ! udpsink host="127.0.0.1" port=5004 \ udpsrc port=5002 ! rtpsession.recv_rtcp_sink sync=fakse async=false |
plugin |
rtpmanager |
author |
Julien Isorce <julien.isorce@collabora.co.uk> |
class |
Codec |
“num-rtx-requests”
property “num-rtx-requests” guint
Number of retransmission events received.
Flags: Read
Default value: 0
“num-rtx-packets”
property “num-rtx-packets” guint
Number of retransmission packets received.
Flags: Read
Default value: 0
“num-rtx-assoc-packets”
property “num-rtx-assoc-packets” guint
Number of retransmission packets correctly associated with retransmission requests.
Flags: Read
Default value: 0