rtpred*: Add example pipelines
authorOlivier Crête <olivier.crete@collabora.com>
Thu, 21 Mar 2019 21:01:11 +0000 (17:01 -0400)
committerSebastian Dröge <slomo@coaxion.net>
Tue, 9 Apr 2019 08:17:28 +0000 (08:17 +0000)
gst/rtp/gstrtpreddec.c
gst/rtp/gstrtpredenc.c

index c6090a9..c7144e6 100644 (file)
  * When using #GstRtpBin, this element should be inserted through the
  * #GstRtpBin::request-aux-receiver signal.
  *
+ * <refsect2>
+ * <title>Example pipeline</title>
+ * |[
+ * 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.
+ * </refsect2>
+ *
  * See also: #GstRtpRedEnc, #GstWebRTCBin, #GstRtpBin
  * Since: 1.14
  */
index 1bbc9a9..78d2b97 100644 (file)
  * When using #GstRtpBin, this element should be inserted through the
  * #GstRtpBin::request-fec-encoder signal.
  *
+ * <refsect2>
+ * <title>Example pipeline</title>
+ * |[
+ * 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.
+ * </refsect2>
+ *
  * See also: #GstRtpRedDec, #GstWebRTCBin, #GstRtpBin
  * Since: 1.14
  */