From: Olivier CrĂȘte Date: Thu, 30 Sep 2010 20:07:29 +0000 (-0400) Subject: rtpmux: Improve documentation X-Git-Tag: 1.19.3~509^2~6195 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9674d5cc231886aa9318e7844b3606bf8180bd5f;p=platform%2Fupstream%2Fgstreamer.git rtpmux: Improve documentation Add an example pipeline, and try to explain a bit more what it does. --- diff --git a/gst/rtpmanager/gstrtpdtmfmux.c b/gst/rtpmanager/gstrtpdtmfmux.c index c953910..f62c626 100644 --- a/gst/rtpmanager/gstrtpdtmfmux.c +++ b/gst/rtpmanager/gstrtpdtmfmux.c @@ -33,6 +33,10 @@ * stream. It does exactly what it's parent (#rtpmux) does, except * that it prevent buffers coming over a regular sink_%%d pad from going through * for the duration of buffers that came in a priority_sink_%%d pad. + * + * This is especially useful if a discontinuous source like dtmfsrc or + * rtpdtmfsrc are connected to the priority sink pads. This way, the generated + * DTMF signal can replace the recorded audio while the tone is being sent. */ #ifdef HAVE_CONFIG_H diff --git a/gst/rtpmanager/gstrtpmux.c b/gst/rtpmanager/gstrtpmux.c index 239b6d3..f014400 100644 --- a/gst/rtpmanager/gstrtpmux.c +++ b/gst/rtpmanager/gstrtpmux.c @@ -2,8 +2,10 @@ * * gstrtpmux.c: * - * Copyright (C) <2007> Nokia Corporation. + * Copyright (C) <2007-2010> Nokia Corporation. * Contact: Zeeshan Ali + * Copyright (C) <2007-2010> Collabora Ltd + * Contact: Olivier Crete * Copyright (C) 1999,2000 Erik Walthinsen * 2000,2005 Wim Taymans * @@ -25,9 +27,27 @@ /** * SECTION:element-rtpmux + * @see_also: rtpdtmfmux * * The rtp muxer takes multiple RTP streams having the same clock-rate and * muxes into a single stream with a single SSRC. + * + * + * Example pipelines + * |[ + * gst-launch rtpmux name=mux ! udpsink host=127.0.0.1 port=8888 \ + * alsasrc ! alawenc ! rtppcmapay ! \ + * application/x-rtp, payload=8, rate=8000 ! mux.sink_0 \ + * audiotestsrc is-live=1 ! \ + * mulawenc ! rtppcmupay ! \ + * application/x-rtp, payload=0, rate=8000 ! mux.sink_1 + * ]| + * In this example, an audio stream is captured from ALSA and another is + * generated, both are encoded into different payload types and muxed together + * so they can be sent on the same port. + * + * + * Last reviewed on 2010-09-30 (0.10.21) */ #ifdef HAVE_CONFIG_H