# rtpreddec

Decode Redundant Audio Data (RED) as per RFC 2198.

This element is mostly provided for chrome webrtc compatibility: chrome will wrap ulpfec-protected streams in RED packets, and such streams need to be unwrapped by this element before being passed on to .

The property should be set to the expected payload types of the RED packets.

When using , this element should be inserted through the signal.

## Example pipeline

     gst-launch-1.0 udpsrc port=8888 caps="application/x-rtp, payload=96, clock-rate=90000" ! rtpreddec pt=122 ! rtpstorage size-time=220000000 ! rtpssrcdemux ! application/x-rtp, payload=96, clock-rate=90000, media=video, encoding-name=H264 ! rtpjitterbuffer do-lost=1 latency=200 !  rtpulpfecdec pt=122 ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink

This example will receive a stream with RED and ULP FEC and try to reconstruct the packets.

See also: , ,

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──rtpreddec

## Factory details

Authors: – Hani Mustafa , Mikhail Fludkov

Classification: – `Codec/Depayloader/Network/RTP`

Rank – none

Plugin – rtp

Package – GStreamer Good Plug-ins

## Pad Templates

### `sink`

    application/x-rtp:

Presence – always

Direction – sink

Object type – GstPad

### `src`

    application/x-rtp:

Presence – always

Direction – src

Object type – GstPad

## Properties

### payloads

    “payloads” GstValueArray *

All the RED payloads this decoder may encounter

Flags : Read / Write

### pt

    “pt” gint

Payload type FEC packets

Flags : Read / Write

Default value : -1

### received

    “received” guint

Count of received packets

Flags : Read

Default value : 0

The results of the search are