Top |
Encode Redundant Audio Data (RED) as per RFC 2198.
This element is mostly provided for chrome webrtc compatibility: chrome expects protection packets generated by GstRtpUlpFecEnc to be wrapped in RED packets for backward compatibility purposes, but does not actually make use of the redundant packets that could be encoded with this element.
As such, when used for that purpose, only the “pt” property should be set to a payload type different from both the protected and protection packets' payload types.
When using GstRtpBin, this element should be inserted through the “request-fec-encoder” signal.
See also: GstRtpRedDec, GstWebRTCBin, GstRtpBin
plugin |
rtp |
author |
Hani Mustafa <hani@pexip.com>, Mikhail Fludkov <misha@pexip.com> |
class |
Codec/Payloader/Network/RTP |
“allow-no-red-blocks”
property“allow-no-red-blocks” gboolean
true - can produce RED packets even without redundant blocks (distance==0) false - RED packets will be produced only if distance>0.
Flags: Read / Write
Default value: TRUE
“distance”
property“distance” guint
Tells which media packet to use as a redundant block (0 - no redundant blocks, 1 to use previous packet, 2 to use the packet before previous, etc.).
Flags: Read / Write
Default value: 0
“pt”
property“pt” gint
Payload type FEC packets (-1 disable).
Flags: Read / Write
Allowed values: [0,127]
Default value: 0