diff --git a/gst/rtp/gstrtpreddec.c b/gst/rtp/gstrtpreddec.c index c6090a94d7..c7144e6e4b 100644 --- a/gst/rtp/gstrtpreddec.c +++ b/gst/rtp/gstrtpreddec.c @@ -36,6 +36,13 @@ * When using #GstRtpBin, this element should be inserted through the * #GstRtpBin::request-aux-receiver 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: #GstRtpRedEnc, #GstWebRTCBin, #GstRtpBin * Since: 1.14 */ diff --git a/gst/rtp/gstrtpredenc.c b/gst/rtp/gstrtpredenc.c index 1bbc9a92d4..78d2b9716c 100644 --- a/gst/rtp/gstrtpredenc.c +++ b/gst/rtp/gstrtpredenc.c @@ -38,6 +38,13 @@ * When using #GstRtpBin, this element should be inserted through the * #GstRtpBin::request-fec-encoder signal. * + * + * Example pipeline + * |[ + * gst-launch-1.0 videotestsrc ! x264enc ! video/x-h264, profile=baseline ! rtph264pay pt=96 ! rtpulpfecenc percentage=100 pt=122 ! rtpredenc pt=122 distance=2 ! identity drop-probability=0.05 ! udpsink port=8888 + * ]| This example will send a stream with RED and ULP FEC. + * + * * See also: #GstRtpRedDec, #GstWebRTCBin, #GstRtpBin * Since: 1.14 */