2006-02-23 12:21:25 +00:00
|
|
|
This directory contains some RTP payloaders/depayloaders for different payload
|
|
|
|
types. Use one payloader/depayloder pair per payload. If several payloads can be
|
|
|
|
payloaded/depayloaded by the same element, make different copies of it, one for
|
|
|
|
each payload.
|
|
|
|
|
2005-09-15 13:57:56 +00:00
|
|
|
The application/x-rtp mime type
|
|
|
|
-------------------------------
|
|
|
|
|
|
|
|
For valid RTP packets encapsulated in GstBuffers, we use the caps with
|
|
|
|
mime type application/x-rtp.
|
|
|
|
|
|
|
|
The following fields can or must (*) be specified in the structure:
|
|
|
|
|
|
|
|
* media: (String) [ "audio", "video", "application", "data", "control" ]
|
|
|
|
Defined in RFC 2327 in the SDP media announcement field.
|
2007-01-25 14:22:53 +00:00
|
|
|
Converted to lower case.
|
2005-09-15 13:57:56 +00:00
|
|
|
|
2005-12-14 18:07:16 +00:00
|
|
|
* payload: (int) [0, 127]
|
2005-09-15 13:57:56 +00:00
|
|
|
For audio and video, these will normally be a media payload type as
|
|
|
|
defined in the RTP Audio/Video Profile. For dynamicaly allocated
|
2005-09-20 10:51:51 +00:00
|
|
|
payload types, this value will be >= 96 and the encoding-name must be
|
2005-09-15 13:57:56 +00:00
|
|
|
set.
|
|
|
|
|
2005-09-20 10:51:51 +00:00
|
|
|
* clock-rate: (int) [0 - MAXINT]
|
2007-05-11 15:04:38 +00:00
|
|
|
The RTP clock rate.
|
2005-09-15 13:57:56 +00:00
|
|
|
|
2007-09-16 19:13:58 +00:00
|
|
|
encoding-name: (String) ANY
|
|
|
|
typically second part of the mime type. ex. MP4V-ES. only required if
|
|
|
|
payload type >= 96. Converted to upper case.
|
|
|
|
|
|
|
|
encoding-params: (String) ANY
|
|
|
|
extra encoding parameters (as in the SDP a=rtpmap: field). only required
|
|
|
|
if different from the default of the encoding-name.
|
|
|
|
Converted to lower-case.
|
|
|
|
|
2005-09-15 13:57:56 +00:00
|
|
|
ssrc: (uint) [0 - MAXINT]
|
2007-05-11 15:04:38 +00:00
|
|
|
The ssrc value currently in use. (default = the SSRC of the first RTP
|
|
|
|
packet)
|
|
|
|
|
2011-10-27 17:00:52 +00:00
|
|
|
timestamp-offset: (uint) [0 - MAXINT]
|
2007-09-16 19:13:58 +00:00
|
|
|
The RTP time representing time npt-start. (default = rtptime of first RTP
|
|
|
|
packet).
|
|
|
|
|
2011-10-27 17:00:52 +00:00
|
|
|
seqnum-offset: (uint) [0 - MAXINT]
|
2007-09-16 19:13:58 +00:00
|
|
|
The RTP sequence number representing the first rtp packet. When this
|
|
|
|
parameter is given, all sequence numbers below this seqnum should be
|
|
|
|
ignored. (default = seqnum of first RTP packet).
|
|
|
|
|
2007-05-11 15:04:38 +00:00
|
|
|
npt-start: (uint64) [0 - MAXINT]
|
|
|
|
The Normal Play Time for clock-base. This is the position in the stream and
|
|
|
|
is between 0 and the duration of the stream. This value is expressed in
|
|
|
|
nanoseconds GstClockTime. (default = 0)
|
|
|
|
|
|
|
|
npt-stop: (uint64) [0 - MAXINT]
|
|
|
|
The last position in the stream. This value is expressed in nanoseconds
|
|
|
|
GstClockTime. (default = -1, stop unknown)
|
2005-09-15 13:57:56 +00:00
|
|
|
|
2007-05-11 15:04:38 +00:00
|
|
|
play-speed: (gdouble) [-MIN - MAX]
|
|
|
|
The intended playback speed of the stream. The client is delivered data at
|
|
|
|
the adjusted speed. The client should adjust its playback speed with this
|
|
|
|
value and thus corresponds to the GStreamer rate field in the NEWSEGMENT
|
|
|
|
event. (default = 1.0)
|
|
|
|
|
|
|
|
play-scale: (gdouble) [-MIN - MAX]
|
|
|
|
The rate already applied to the stream. The client is delivered a stream
|
|
|
|
that is scaled by this amount. This value is used to adjust position
|
|
|
|
reporting and corresponds to the GStream applied-rate field in the
|
|
|
|
NEWSEGMENT event. (default = 1.0)
|
2005-09-15 13:57:56 +00:00
|
|
|
|
2009-12-02 14:05:21 +00:00
|
|
|
maxptime: (uint) [0, MAX]
|
|
|
|
The maxptime as defined in RFC 4566, this defines the maximum size of a
|
|
|
|
packet. It overrides the max-ptime property of payloaders.
|
|
|
|
|
2005-09-21 12:19:24 +00:00
|
|
|
Optional parameters as key/value pairs, media type specific. The value type
|
2007-02-16 12:30:22 +00:00
|
|
|
should be of type G_TYPE_STRING. The key is converted to lower-case. The
|
|
|
|
value is left in its original case.
|
2007-01-25 14:22:53 +00:00
|
|
|
A parameter with no value is converted to <param>=1.
|
2005-09-15 13:57:56 +00:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
"application/x-rtp",
|
2007-05-11 15:04:38 +00:00
|
|
|
"media", G_TYPE_STRING, "audio", -.
|
|
|
|
"payload", G_TYPE_INT, 96, | - required
|
|
|
|
"clock-rate", G_TYPE_INT, 8000, -'
|
|
|
|
"encoding-name", G_TYPE_STRING, "AMR", -. - required since payload >= 96
|
|
|
|
"encoding-params", G_TYPE_STRING, "1", -' - optional param for AMR
|
|
|
|
"octet-align", G_TYPE_STRING, "1", -.
|
|
|
|
"crc", G_TYPE_STRING, "0", |
|
|
|
|
"robust-sorting", G_TYPE_STRING, "0", | AMR specific params.
|
|
|
|
"interleaving", G_TYPE_STRING, "0", -'
|
2005-09-15 13:57:56 +00:00
|
|
|
|
|
|
|
Mapping of caps to and from SDP fields:
|
|
|
|
|
|
|
|
m=<media> <udp port> RTP/AVP <payload> -] media and payload from caps
|
2005-09-20 10:51:51 +00:00
|
|
|
a=rtpmap:<payload> <encoding-name>/<clock-rate>[/<encoding-params>]
|
2005-09-15 13:57:56 +00:00
|
|
|
-> when <payload> >= 96
|
|
|
|
a=fmtp:<payload> <param>=<value>;...
|
|
|
|
|
|
|
|
For above caps:
|
|
|
|
|
|
|
|
m=audio <udp port> RTP/AVP 96
|
|
|
|
a=rtpmap:96 AMR/8000/1
|
|
|
|
a=fmtp:96 octet-align=1;crc=0;robust-sorting=0;interleaving=0
|
|
|
|
|
2009-08-03 16:01:27 +00:00
|
|
|
Attributes are converted as follows:
|
|
|
|
|
|
|
|
IANA registered attribute names are prepended with 'a-' before putting them in
|
|
|
|
the caps. Unregistered keys (starting with 'x-') are copied directly into the
|
|
|
|
caps.
|
|
|
|
|
2005-09-15 13:57:56 +00:00
|
|
|
in RTSP, the SSRC is also sent.
|
|
|
|
|
gst/rtp/README: Say something about case-sensitivity of caps vs mime-attributes.
Original commit message from CVS:
* gst/rtp/README:
Say something about case-sensitivity of caps vs mime-attributes.
* gst/rtp/Makefile.am:
* gst/rtp/gstrtp.c: (plugin_init):
* gst/rtp/gstrtpamrpay.c: (gst_rtp_amr_pay_class_init),
(gst_rtp_amr_pay_handle_buffer):
* gst/rtp/gstrtpmp4gpay.c: (gst_rtp_mp4g_pay_get_type),
(gst_rtp_mp4g_pay_base_init), (gst_rtp_mp4g_pay_class_init),
(gst_rtp_mp4g_pay_init), (gst_rtp_mp4g_pay_finalize),
(gst_rtp_mp4g_pay_new_caps), (gst_rtp_mp4g_pay_setcaps),
(gst_rtp_mp4g_pay_flush), (gst_rtp_mp4g_pay_handle_buffer),
(gst_rtp_mp4g_pay_set_property), (gst_rtp_mp4g_pay_get_property),
(gst_rtp_mp4g_pay_plugin_init):
* gst/rtp/gstrtpmp4gpay.h:
Added beginnings of mpeg4-generic payloader (RFC 3640)
2006-02-10 16:40:58 +00:00
|
|
|
The optional parameters in the SDP fields are case insensitive. In the caps we
|
|
|
|
always use the lowercase names so that the SDP -> caps mapping remains
|
|
|
|
possible.
|
|
|
|
|
2007-05-11 15:04:38 +00:00
|
|
|
Mapping of caps to NEWSEGMENT:
|
|
|
|
|
|
|
|
rate: <play-speed>
|
|
|
|
applied-rate: <play-scale>
|
|
|
|
format: GST_FORMAT_TIME
|
|
|
|
start: <clock-base> * GST_SECOND / <clock-rate>
|
|
|
|
stop: if <ntp-stop> != -1
|
|
|
|
<npt-stop> - <npt-start> + start
|
|
|
|
else
|
|
|
|
-1
|
|
|
|
time: <npt-start>
|
|
|
|
|
2003-03-02 10:16:26 +00:00
|
|
|
|
2007-09-16 19:13:58 +00:00
|
|
|
Timestamping
|
|
|
|
------------
|
|
|
|
|
|
|
|
RTP in GStreamer uses a combination of the RTP timestamps and GStreamer buffer
|
|
|
|
timestamps to ensure proper synchronisation at the sender and the receiver end.
|
|
|
|
|
|
|
|
In RTP applications, the synchronisation is most complex at the receiver side.
|
|
|
|
|
|
|
|
At the sender side, the RTP timestamps are generated in the payloaders based on
|
|
|
|
GStreamer timestamps. At the receiver, GStreamer timestamps are reconstructed
|
|
|
|
from the RTP timestamps and the GStreamer timestamps in the jitterbuffer. This
|
|
|
|
process is explained in more detail below.
|
|
|
|
|
|
|
|
= synchronisation at the sender
|
|
|
|
|
|
|
|
Individual streams at the sender are synchronised using GStreamer timestamps.
|
|
|
|
The payloader at the sender will convert the GStreamer timestamp into an RTP
|
|
|
|
timestamp using the following formula:
|
|
|
|
|
|
|
|
RTP = ((RT - RT-base) * clock-rate / GST_SECOND) + RTP-offset
|
|
|
|
|
|
|
|
RTP: the RTP timestamp for the stream. This value is truncated to
|
|
|
|
32 bits.
|
|
|
|
RT: the GStreamer running time corresponding to the timestamp of the
|
|
|
|
packet to payload
|
|
|
|
RT-base: the GStreamer running time of the first packet encoded
|
|
|
|
clock-rate: the clock-rate of the stream
|
|
|
|
RTP-offset: a random RTP offset
|
|
|
|
|
|
|
|
The RTP timestamp corresponding to RT-base is the clock-base (see caps above).
|
|
|
|
|
|
|
|
In addition to setting an RTP timestamp in the RTP packet, the payloader is also
|
|
|
|
responsible for putting the GStreamer timestamp on the resulting output buffer.
|
|
|
|
This timestamp is used for further synchronisation at the sender pipeline, such
|
|
|
|
as for sending out the packet on the network.
|
|
|
|
|
|
|
|
Notice that the absolute timing information is lost; if the sender is sending
|
|
|
|
multiple streams, the RTP timestamps in the packets do not contain enough
|
|
|
|
information to synchronize them in the receiver. The receiver can however use
|
|
|
|
the RTP timestamps to reconstruct the timing of the stream as it was created by
|
|
|
|
the sender according to the sender's clock.
|
|
|
|
|
|
|
|
Because the payloaded packet contains both an RTP timestamp and a GStreamer
|
|
|
|
timestamp, it is possible for an RTP session manager to derive the relation
|
|
|
|
between the RTP and GST timestamps. This information is used by a session
|
|
|
|
manager to create SR reports. The NTP time in the report will contain the
|
|
|
|
running time converted to NTP time and the corresponding RTP timestamp.
|
|
|
|
|
2009-06-11 20:30:06 +00:00
|
|
|
Note that at the sender side, the RTP and GStreamer timestamp both increment at
|
2007-09-16 19:13:58 +00:00
|
|
|
the same rate, the sender rate. This rate depends on the global pipeline clock
|
|
|
|
of the sender.
|
|
|
|
|
|
|
|
Some pipelines to illustrate the process:
|
|
|
|
|
2014-04-30 09:13:12 +00:00
|
|
|
gst-launch-1.0 v4l2src ! videoconvert ! avenc_h263p ! rtph263ppay ! udpsink
|
2007-09-16 19:13:58 +00:00
|
|
|
|
|
|
|
v4l2src puts a GStreamer timestamp on the video frames base on the current
|
|
|
|
running_time. The encoder encodes and passed the timestamp on. The payloader
|
|
|
|
generates an RTP timestamp using the above formula and puts it in the RTP
|
|
|
|
packet. It also copies the incomming GStreamer timestamp on the output RTP
|
|
|
|
packet. udpsink synchronizes on the gstreamer timestamp before pushing out the
|
|
|
|
packet.
|
|
|
|
|
|
|
|
|
|
|
|
= synchronisation at the receiver
|
|
|
|
|
|
|
|
The receiver is responsible for timestamping the received RTP packet with the
|
|
|
|
running_time of the clock at the time the packet was received. This GStreamer
|
|
|
|
timestamp reflects the receiver rate and depends on the global pipeline clock of
|
|
|
|
the receiver. The gstreamer timestamp of the received RTP packet contains a
|
|
|
|
certain amount of jitter introduced by the network.
|
|
|
|
|
|
|
|
The most simple option for the receiver is to depayload the RTP packet and play
|
|
|
|
it back as soon as possible, this is with the timestamp when it was received
|
|
|
|
from the network. For the above sender pipeline this would be done with the
|
|
|
|
following pipeline:
|
|
|
|
|
2012-08-26 21:39:55 +00:00
|
|
|
gst-launch-1.0 udpsrc caps="application/x-rtp, media=(string)video,
|
2007-09-16 19:13:58 +00:00
|
|
|
clock-rate=(int)90000, encoding-name=(string)H263-1998" ! rtph263pdepay !
|
2014-04-30 09:13:12 +00:00
|
|
|
avdec_h263 ! autovideosink
|
2007-09-16 19:13:58 +00:00
|
|
|
|
|
|
|
It is important that the depayloader copies the incomming GStreamer timestamp
|
|
|
|
directly to the depayloaded output buffer. It should never attempt to perform
|
|
|
|
any logic with the RTP timestamp, this task is for the jitterbuffer as we will
|
|
|
|
see next.
|
|
|
|
|
|
|
|
The above pipeline does not attempt to deal with reordered packets or network
|
|
|
|
jitter, which could result in jerky playback in the case of high jitter or
|
|
|
|
corrupted video in the case of packet loss or reordering. This functionality is
|
|
|
|
performed by the gstrtpjitterbuffer in GStreamer.
|
|
|
|
|
|
|
|
The task of the gstrtpjitterbuffer element is to:
|
|
|
|
|
|
|
|
- deal with reordered packets based on the seqnum
|
|
|
|
- calculate the drift between the sender and receiver clocks using the
|
|
|
|
GStreamer timestamps (receiver clock rate) and RTP timestamps (sender clock
|
|
|
|
rate).
|
|
|
|
|
|
|
|
To deal with reordered packet, the jitterbuffer holds on to the received RTP
|
|
|
|
packets in a queue for a configurable amount of time, called the latency.
|
|
|
|
|
|
|
|
The jitterbuffer also eliminates network jitter and then tracks the drift
|
|
|
|
between the local clock (as expressed in the GStreamer timestamps) and the
|
|
|
|
remote clock (as expressed in the RTP timestamps). It will remove the jitter
|
|
|
|
and will apply the drift correction to the GStreamer timestamp before pushing
|
|
|
|
the buffer downstream. The result is that the depayloader receives a smoothed
|
|
|
|
GStreamer timestamp on the RTP packet, which is copied to the depayloaded data.
|
|
|
|
|
2009-06-11 20:30:06 +00:00
|
|
|
The following pipeline illustrates a receiver with a jitterbuffer.
|
2007-09-16 19:13:58 +00:00
|
|
|
|
2012-08-26 21:39:55 +00:00
|
|
|
gst-launch-1.0 udpsrc caps="application/x-rtp, media=(string)video,
|
2007-09-16 19:13:58 +00:00
|
|
|
clock-rate=(int)90000, encoding-name=(string)H263-1998" !
|
2014-04-30 09:13:12 +00:00
|
|
|
rtpjitterbuffer latency=100 ! rtph263pdepay ! avdec_h263 ! autovideosink
|
2007-09-16 19:13:58 +00:00
|
|
|
|
|
|
|
The latency property on the jitterbuffer controls the amount of delay (in
|
|
|
|
milliseconds) to apply to the outgoing packets. A higher latency will produce
|
|
|
|
smoother playback in networks with high jitter but cause a higher latency.
|
|
|
|
Choosing a good value for the latency is a tradeoff between the quality and
|
|
|
|
latency. The better the network, the lower the latency can be set.
|
|
|
|
|
|
|
|
|
2006-09-21 09:35:13 +00:00
|
|
|
usage with UDP
|
|
|
|
--------------
|
|
|
|
|
|
|
|
To correctly and completely use the RTP payloaders on the sender and the
|
|
|
|
receiver you need to write an application. It is not possible to write a full
|
2012-08-26 21:39:55 +00:00
|
|
|
blown RTP server with a single gst-launch-1.0 line.
|
2006-09-21 09:35:13 +00:00
|
|
|
|
|
|
|
That said, it is possible to do something functional with a few gst-launch
|
2012-08-26 21:39:55 +00:00
|
|
|
lines. The biggest problem when constructing a correct gst-launch-1.0 line lies on
|
2006-09-21 09:35:13 +00:00
|
|
|
the receiver end.
|
|
|
|
|
|
|
|
The receiver needs to know about the type of the RTP data along with a set of
|
|
|
|
RTP configuration parameters. This information is usually transmitted to the
|
|
|
|
client using some sort of session description language (SDP) over some reliable
|
|
|
|
channel (HTTP/RTSP/...).
|
|
|
|
|
|
|
|
All of the required parameters to connect and use the RTP session on the
|
|
|
|
server can be found in the caps on the server end. The client receives this
|
|
|
|
information in some way (caps are converted to and from SDP, as explained above,
|
|
|
|
for example).
|
|
|
|
|
2012-08-26 21:39:55 +00:00
|
|
|
Some gst-launch-1.0 lines:
|
2006-09-21 09:35:13 +00:00
|
|
|
|
2014-04-30 09:13:12 +00:00
|
|
|
gst-launch-1.0 -v videotestsrc ! videoconvert ! avenc_h263p ! rtph263ppay ! udpsink
|
2006-09-21 09:35:13 +00:00
|
|
|
|
|
|
|
Setting pipeline to PAUSED ...
|
2012-09-14 11:30:37 +00:00
|
|
|
/pipeline0/videotestsrc0.src: caps = video/x-raw, format=(string)I420,
|
2006-09-21 09:35:13 +00:00
|
|
|
width=(int)320, height=(int)240, framerate=(fraction)30/1
|
|
|
|
Pipeline is PREROLLING ...
|
|
|
|
....
|
|
|
|
/pipeline0/udpsink0.sink: caps = application/x-rtp, media=(string)video,
|
|
|
|
payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H263-1998,
|
|
|
|
ssrc=(guint)527842345, clock-base=(guint)1150776941, seqnum-base=(guint)30982
|
|
|
|
....
|
|
|
|
Pipeline is PREROLLED ...
|
|
|
|
Setting pipeline to PLAYING ...
|
|
|
|
New clock: GstSystemClock
|
|
|
|
|
|
|
|
Write down the caps on the udpsink and set them as the caps of the UDP
|
|
|
|
receiver:
|
|
|
|
|
2014-04-30 09:13:12 +00:00
|
|
|
gst-launch-1.0 -v udpsrc caps="application/x-rtp, media=(string)video,
|
2006-09-21 09:35:13 +00:00
|
|
|
payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H263-1998,
|
|
|
|
ssrc=(guint)527842345, clock-base=(guint)1150776941, seqnum-base=(guint)30982"
|
2014-04-30 09:13:12 +00:00
|
|
|
! rtph263pdepay ! avdec_h263 ! autovideosink
|
2006-09-21 09:35:13 +00:00
|
|
|
|
2007-09-16 19:13:58 +00:00
|
|
|
The receiver now displays an h263 image. Since there is no jitterbuffer in the
|
|
|
|
pipeline, frames will be displayed at the time when they are received. This can
|
|
|
|
result in jerky playback in the case of high network jitter or currupted video
|
|
|
|
when packets are dropped or reordered.
|
2006-09-21 09:35:13 +00:00
|
|
|
|
|
|
|
Stream a quicktime file with mpeg4 video and AAC audio on port 5000 and port
|
|
|
|
5002.
|
|
|
|
|
2014-04-30 09:13:12 +00:00
|
|
|
gst-launch-1.0 -v filesrc location=~/data/sincity.mp4 ! qtdemux name=d ! queue ! rtpmp4vpay ! udpsink port=5000
|
2006-09-21 09:35:13 +00:00
|
|
|
d. ! queue ! rtpmp4gpay ! udpsink port=5002
|
|
|
|
....
|
|
|
|
/pipeline0/udpsink0.sink: caps = application/x-rtp, media=(string)video,
|
|
|
|
payload=(int)96, clock-rate=(int)90000, encoding-name=(string)MP4V-ES,
|
|
|
|
ssrc=(guint)1162703703, clock-base=(guint)816135835, seqnum-base=(guint)9294,
|
|
|
|
profile-level-id=(string)3, config=(string)000001b003000001b50900000100000001200086c5d4c307d314043c1463000001b25876694430303334
|
|
|
|
/pipeline0/udpsink1.sink: caps = application/x-rtp, media=(string)audio,
|
2007-01-25 14:22:53 +00:00
|
|
|
payload=(int)96, clock-rate=(int)44100, encoding-name=(string)MPEG4-GENERIC,
|
2006-09-21 09:35:13 +00:00
|
|
|
ssrc=(guint)3246149898, clock-base=(guint)4134514058, seqnum-base=(guint)57633,
|
|
|
|
encoding-params=(string)2, streamtype=(string)5, profile-level-id=(string)1,
|
2007-01-25 14:22:53 +00:00
|
|
|
mode=(string)aac-hbr, config=(string)1210, sizelength=(string)13,
|
2006-09-21 09:35:13 +00:00
|
|
|
indexlength=(string)3, indexdeltalength=(string)3
|
|
|
|
....
|
|
|
|
|
|
|
|
Again copy the caps on both sinks to the receiver launch line
|
|
|
|
|
2012-08-26 21:39:55 +00:00
|
|
|
gst-launch-1.0
|
2006-09-21 09:35:13 +00:00
|
|
|
udpsrc port=5000 caps="application/x-rtp, media=(string)video, payload=(int)96,
|
|
|
|
clock-rate=(int)90000, encoding-name=(string)MP4V-ES, ssrc=(guint)1162703703,
|
|
|
|
clock-base=(guint)816135835, seqnum-base=(guint)9294, profile-level-id=(string)3,
|
|
|
|
config=(string)000001b003000001b50900000100000001200086c5d4c307d314043c1463000001b25876694430303334"
|
2014-04-30 09:13:12 +00:00
|
|
|
! rtpmp4vdepay ! ffdec_mpeg4 ! autovideosink sync=false
|
2006-09-21 09:35:13 +00:00
|
|
|
udpsrc port=5002 caps="application/x-rtp, media=(string)audio, payload=(int)96,
|
2007-01-25 14:22:53 +00:00
|
|
|
clock-rate=(int)44100, encoding-name=(string)MPEG4-GENERIC, ssrc=(guint)3246149898,
|
2006-09-21 09:35:13 +00:00
|
|
|
clock-base=(guint)4134514058, seqnum-base=(guint)57633, encoding-params=(string)2,
|
2007-01-25 14:22:53 +00:00
|
|
|
streamtype=(string)5, profile-level-id=(string)1, mode=(string)aac-hbr,
|
2006-09-21 09:35:13 +00:00
|
|
|
config=(string)1210, sizelength=(string)13, indexlength=(string)3,
|
|
|
|
indexdeltalength=(string)3"
|
|
|
|
! rtpmp4gdepay ! faad ! alsasink sync=false
|
|
|
|
|
|
|
|
The caps on the udpsinks can be retrieved when the server pipeline prerolled to
|
|
|
|
PAUSED.
|
|
|
|
|
2009-06-11 20:30:06 +00:00
|
|
|
The above pipeline sets sync=false on the audio and video sink which means that
|
|
|
|
no synchronisation will be performed in the sinks, they play the data when it
|
|
|
|
arrives. If you want to enable synchronisation in the sinks it is highly
|
|
|
|
recommended to use a gstrtpjitterbuffer after the udpsrc elements.
|
|
|
|
|
|
|
|
Even when sync is enabled, the two different streams will not play synchronised
|
|
|
|
against eachother because the receiver does not have enough information to
|
2013-07-02 08:12:17 +00:00
|
|
|
perform this task. For this you need to add the rtpbin element in both the
|
2009-06-11 20:30:06 +00:00
|
|
|
sender and receiver pipeline and use additional sources and sinks to transmit
|
|
|
|
RTCP packets used for inter-stream synchronisation.
|
|
|
|
|
2006-09-21 09:35:13 +00:00
|
|
|
The caps on the receiver side can be set on the UDP source elements when the
|
|
|
|
pipeline went to PAUSED. In that state no data is received from the UDP sources
|
|
|
|
as they are live sources and only produce data in PLAYING.
|
2003-03-02 10:16:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
Relevant RFCs
|
|
|
|
-------------
|
|
|
|
|
2003-08-11 17:54:56 +00:00
|
|
|
3550 RTP: A Transport Protocol for Real-Time Applications. ( 1889 Obsolete )
|
2003-03-02 10:16:26 +00:00
|
|
|
|
|
|
|
2198 RTP Payload for Redundant Audio Data.
|
|
|
|
3119 A More Loss-Tolerant RTP Payload Format for MP3 Audio.
|
|
|
|
|
|
|
|
2793 RTP Payload for Text Conversation.
|
|
|
|
|
|
|
|
2032 RTP Payload Format for H.261 Video Streams.
|
|
|
|
2190 RTP Payload Format for H.263 Video Streams.
|
|
|
|
2250 RTP Payload Format for MPEG1/MPEG2 Video.
|
|
|
|
2343 RTP Payload Format for Bundled MPEG.
|
|
|
|
2429 RTP Payload Format for the 1998 Version of ITU-T Rec. H.263 Video
|
|
|
|
2431 RTP Payload Format for BT.656 Video Encoding.
|
|
|
|
2435 RTP Payload Format for JPEG-compressed Video.
|
|
|
|
3016 RTP Payload Format for MPEG-4 Audio/Visual Streams.
|
|
|
|
3047 RTP Payload Format for ITU-T Recommendation G.722.1.
|
2003-08-11 17:54:56 +00:00
|
|
|
3189 RTP Payload Format for DV (IEC 61834) Video.
|
|
|
|
3190 RTP Payload Format for 12-bit DAT Audio and 20- and 24-bit Linear Sampled Audio.
|
|
|
|
3389 Real-time Transport Protocol (RTP) Payload for Comfort Noise (CN)
|
2003-03-02 10:16:26 +00:00
|
|
|
2733 An RTP Payload Format for Generic Forward Error Correction.
|
|
|
|
2833 RTP Payload for DTMF Digits, Telephony Tones and Telephony
|
|
|
|
Signals.
|
|
|
|
2862 RTP Payload Format for Real-Time Pointers.
|
2003-08-11 17:54:56 +00:00
|
|
|
3351 RTP Profile for Audio and Video Conferences with Minimal Control. ( 1890 Obsolete )
|
|
|
|
3555 MIME Type Registration of RTP Payload Formats.
|
2003-03-02 10:16:26 +00:00
|
|
|
|
2003-08-11 17:54:56 +00:00
|
|
|
2508 Compressing IP/UDP/RTP Headers for Low-Speed Serial Links.
|
|
|
|
1305 Network Time Protocol (Version 3) Specification, Implementation and Analysis.
|
|
|
|
3339 Date and Time on the Internet: Timestamps.
|
|
|
|
2246 The TLS Protocol Version 1.0
|
|
|
|
3546 Transport Layer Security (TLS) Extensions. ( Updates 2246 )
|
2003-03-02 10:16:26 +00:00
|
|
|
|
|
|
|
do we care?
|
|
|
|
-----------
|
|
|
|
|
|
|
|
2029 RTP Payload Format of Sun's CellB Video Encoding.
|
|
|
|
|
2015-10-23 00:40:38 +00:00
|
|
|
useful
|
|
|
|
------
|
2003-03-02 10:16:26 +00:00
|
|
|
|
|
|
|
http://www.iana.org/assignments/rtp-parameters
|