cannam@86
|
1 <?xml version="1.0" encoding="US-ASCII" ?>
|
cannam@86
|
2 <!DOCTYPE rfc SYSTEM "rfc2629.dtd">
|
cannam@86
|
3
|
cannam@86
|
4 <?rfc rfcedstyle="yes"?>
|
cannam@86
|
5 <?rfc subcompact="no"?>
|
cannam@86
|
6 <?rfc toc="yes"?>
|
cannam@86
|
7 <?rfc symrefs="yes" ?>
|
cannam@86
|
8 <?rfc sortrefs="yes" ?>
|
cannam@86
|
9
|
cannam@86
|
10 <rfc number="5215" category="std">
|
cannam@86
|
11
|
cannam@86
|
12 <front>
|
cannam@86
|
13 <title abbrev="Vorbis RTP Payload Format">RTP Payload Format for Vorbis Encoded Audio</title>
|
cannam@86
|
14
|
cannam@86
|
15 <author initials="L" surname="Barbato" fullname="Luca Barbato">
|
cannam@86
|
16 <organization abbrev="Xiph">Xiph.Org Foundation</organization>
|
cannam@86
|
17 <address>
|
cannam@86
|
18 <email>lu_zero@gentoo.org</email>
|
cannam@86
|
19 <uri>http://xiph.org/</uri>
|
cannam@86
|
20 </address>
|
cannam@86
|
21 </author>
|
cannam@86
|
22
|
cannam@86
|
23 <date month="August" year="2008" />
|
cannam@86
|
24
|
cannam@86
|
25 <area>General</area>
|
cannam@86
|
26 <workgroup>AVT Working Group</workgroup>
|
cannam@86
|
27 <keyword>I-D</keyword>
|
cannam@86
|
28
|
cannam@86
|
29 <keyword>Internet-Draft</keyword>
|
cannam@86
|
30 <keyword>Vorbis</keyword>
|
cannam@86
|
31 <keyword>RTP</keyword>
|
cannam@86
|
32
|
cannam@86
|
33 <keyword>example</keyword>
|
cannam@86
|
34
|
cannam@86
|
35 <abstract>
|
cannam@86
|
36
|
cannam@86
|
37 <t>
|
cannam@86
|
38 This document describes an RTP payload format for transporting Vorbis encoded
|
cannam@86
|
39 audio. It details the RTP encapsulation mechanism for raw Vorbis data and
|
cannam@86
|
40 the delivery mechanisms for the decoder probability model (referred to
|
cannam@86
|
41 as a codebook), as well as other setup information.
|
cannam@86
|
42 </t>
|
cannam@86
|
43
|
cannam@86
|
44 <t>
|
cannam@86
|
45 Also included within this memo are media type registrations and the details
|
cannam@86
|
46 necessary for the use of Vorbis with the Session Description Protocol (SDP).
|
cannam@86
|
47 </t>
|
cannam@86
|
48
|
cannam@86
|
49 </abstract>
|
cannam@86
|
50
|
cannam@86
|
51 </front>
|
cannam@86
|
52
|
cannam@86
|
53 <middle>
|
cannam@86
|
54
|
cannam@86
|
55 <section anchor="Introduction" title="Introduction">
|
cannam@86
|
56
|
cannam@86
|
57 <t>
|
cannam@86
|
58 Vorbis is a general purpose perceptual audio codec intended to allow
|
cannam@86
|
59 maximum encoder flexibility, thus allowing it to scale competitively
|
cannam@86
|
60 over an exceptionally wide range of bit rates. At the high
|
cannam@86
|
61 quality/bitrate end of the scale (CD or DAT rate stereo, 16/24 bits), it
|
cannam@86
|
62 is in the same league as MPEG-4 AAC.
|
cannam@86
|
63 Vorbis is also intended for lower and higher sample rates (from
|
cannam@86
|
64 8kHz telephony to 192kHz digital masters) and a range of channel
|
cannam@86
|
65 representations (monaural, polyphonic, stereo, quadraphonic, 5.1,
|
cannam@86
|
66 ambisonic, or up to 255 discrete channels).
|
cannam@86
|
67 </t>
|
cannam@86
|
68
|
cannam@86
|
69 <t>
|
cannam@86
|
70 Vorbis encoded audio is generally encapsulated within an Ogg format bitstream
|
cannam@86
|
71 <xref target="RFC3533"></xref>, which provides framing and synchronization.
|
cannam@86
|
72 For the purposes of RTP transport, this layer is unnecessary, and so raw Vorbis
|
cannam@86
|
73 packets are used in the payload.
|
cannam@86
|
74 </t>
|
cannam@86
|
75
|
cannam@86
|
76 <section anchor="Terminology" title="Conformance and Document Conventions">
|
cannam@86
|
77
|
cannam@86
|
78 <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14, <xref target="RFC2119"/> and indicate requirement levels for compliant implementations. Requirements apply to all implementations unless otherwise stated.</t>
|
cannam@86
|
79 <t>An implementation is a software module that supports one of the media types defined in this document. Software modules may support multiple media types, but conformance is considered individually for each type.</t>
|
cannam@86
|
80 <t>Implementations that fail to satisfy one or more "MUST" requirements are considered non-compliant. Implementations that satisfy all "MUST" requirements, but fail to satisfy one or more "SHOULD" requirements, are said to be "conditionally compliant". All other implementations are "unconditionally compliant".</t>
|
cannam@86
|
81
|
cannam@86
|
82 </section>
|
cannam@86
|
83 </section>
|
cannam@86
|
84
|
cannam@86
|
85 <section anchor="Payload Format" title="Payload Format">
|
cannam@86
|
86
|
cannam@86
|
87 <t>
|
cannam@86
|
88 For RTP-based transport of Vorbis-encoded audio, the standard RTP header is
|
cannam@86
|
89 followed by a 4-octet payload header, and then the payload data. The payload
|
cannam@86
|
90 headers are used to associate the Vorbis data with its associated decoding
|
cannam@86
|
91 codebooks as well as indicate if the following packet contains fragmented
|
cannam@86
|
92 Vorbis data and/or the number of whole Vorbis data frames. The payload data
|
cannam@86
|
93 contains the raw Vorbis bitstream information. There are 3 types of Vorbis
|
cannam@86
|
94 data; an RTP payload MUST contain just one of them at a time.
|
cannam@86
|
95 </t>
|
cannam@86
|
96
|
cannam@86
|
97 <section anchor="RTP Header" title="RTP Header">
|
cannam@86
|
98
|
cannam@86
|
99 <t>
|
cannam@86
|
100 The format of the RTP header is specified in <xref target="RFC3550"></xref>
|
cannam@86
|
101 and shown in <xref target="RTP Header Figure"/>. This payload format
|
cannam@86
|
102 uses the fields of the header in a manner consistent with that specification.
|
cannam@86
|
103 </t>
|
cannam@86
|
104
|
cannam@86
|
105 <t>
|
cannam@86
|
106 <figure anchor="RTP Header Figure" title="RTP Header">
|
cannam@86
|
107 <artwork><![CDATA[
|
cannam@86
|
108 0 1 2 3
|
cannam@86
|
109 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
cannam@86
|
110 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
111 |V=2|P|X| CC |M| PT | sequence number |
|
cannam@86
|
112 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
113 | timestamp |
|
cannam@86
|
114 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
115 | synchronization source (SSRC) identifier |
|
cannam@86
|
116 +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
|
cannam@86
|
117 | contributing source (CSRC) identifiers |
|
cannam@86
|
118 | ... |
|
cannam@86
|
119 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
120 ]]></artwork>
|
cannam@86
|
121 </figure>
|
cannam@86
|
122 </t>
|
cannam@86
|
123
|
cannam@86
|
124 <t>
|
cannam@86
|
125 The RTP header begins with an octet of fields (V, P, X, and CC) to support
|
cannam@86
|
126 specialized RTP uses (see <xref target="RFC3550"></xref> and
|
cannam@86
|
127 <xref target="RFC3551"></xref> for details). For Vorbis RTP, the following
|
cannam@86
|
128 values are used.
|
cannam@86
|
129 </t>
|
cannam@86
|
130
|
cannam@86
|
131 <t>
|
cannam@86
|
132 Version (V): 2 bits</t>
|
cannam@86
|
133 <t>
|
cannam@86
|
134 This field identifies the version of RTP. The version used by this
|
cannam@86
|
135 specification is two (2).
|
cannam@86
|
136 </t>
|
cannam@86
|
137
|
cannam@86
|
138 <t>
|
cannam@86
|
139 Padding (P): 1 bit</t>
|
cannam@86
|
140 <t>
|
cannam@86
|
141 Padding MAY be used with this payload format according to Section 5.1 of
|
cannam@86
|
142 <xref target="RFC3550"></xref>.
|
cannam@86
|
143 </t>
|
cannam@86
|
144
|
cannam@86
|
145 <t>
|
cannam@86
|
146 Extension (X): 1 bit</t>
|
cannam@86
|
147 <t>
|
cannam@86
|
148 The Extension bit is used in accordance with <xref target="RFC3550"></xref>.
|
cannam@86
|
149 </t>
|
cannam@86
|
150
|
cannam@86
|
151 <t>
|
cannam@86
|
152 CSRC count (CC): 4 bits</t>
|
cannam@86
|
153 <t>
|
cannam@86
|
154 The CSRC count is used in accordance with <xref target="RFC3550"></xref>.
|
cannam@86
|
155 </t>
|
cannam@86
|
156
|
cannam@86
|
157 <t>
|
cannam@86
|
158 Marker (M): 1 bit</t>
|
cannam@86
|
159 <t>
|
cannam@86
|
160 Set to zero. Audio silence suppression is not used. This conforms to Section 4.1
|
cannam@86
|
161 of <xref target="VORBIS-SPEC-REF"></xref>.
|
cannam@86
|
162 </t>
|
cannam@86
|
163
|
cannam@86
|
164 <t>
|
cannam@86
|
165 Payload Type (PT): 7 bits</t>
|
cannam@86
|
166 <t>
|
cannam@86
|
167 An RTP profile for a class of applications is expected to assign a payload type
|
cannam@86
|
168 for this format, or a dynamically allocated payload type SHOULD be chosen that
|
cannam@86
|
169 designates the payload as Vorbis.
|
cannam@86
|
170 </t>
|
cannam@86
|
171
|
cannam@86
|
172 <t>
|
cannam@86
|
173 Sequence number: 16 bits</t>
|
cannam@86
|
174 <t>
|
cannam@86
|
175 The sequence number increments by one for each RTP data packet sent, and may be
|
cannam@86
|
176 used by the receiver to detect packet loss and to restore the packet sequence. This
|
cannam@86
|
177 field is detailed further in <xref target="RFC3550"></xref>.
|
cannam@86
|
178 </t>
|
cannam@86
|
179
|
cannam@86
|
180 <t>
|
cannam@86
|
181 Timestamp: 32 bits</t>
|
cannam@86
|
182 <t>
|
cannam@86
|
183 A timestamp representing the sampling time of the first sample of the first
|
cannam@86
|
184 Vorbis packet in the RTP payload. The clock frequency MUST be set to the sample
|
cannam@86
|
185 rate of the encoded audio data and is conveyed out-of-band (e.g., as an SDP parameter).
|
cannam@86
|
186 </t>
|
cannam@86
|
187
|
cannam@86
|
188 <t>
|
cannam@86
|
189 SSRC/CSRC identifiers: </t>
|
cannam@86
|
190 <t>
|
cannam@86
|
191 These two fields, 32 bits each with one SSRC field and a maximum of 16 CSRC
|
cannam@86
|
192 fields, are as defined in <xref target="RFC3550">
|
cannam@86
|
193 </xref>.
|
cannam@86
|
194 </t>
|
cannam@86
|
195
|
cannam@86
|
196 </section>
|
cannam@86
|
197
|
cannam@86
|
198 <section anchor="Payload Header" title="Payload Header">
|
cannam@86
|
199
|
cannam@86
|
200 <t>
|
cannam@86
|
201 The 4 octets following the RTP Header section are the Payload Header. This
|
cannam@86
|
202 header is split into a number of bit fields detailing the format of the
|
cannam@86
|
203 following payload data packets.
|
cannam@86
|
204 </t>
|
cannam@86
|
205
|
cannam@86
|
206 <figure anchor="Payload Header Figure" title="Payload Header">
|
cannam@86
|
207 <artwork><![CDATA[
|
cannam@86
|
208 0 1 2 3
|
cannam@86
|
209 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
cannam@86
|
210 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
211 | Ident | F |VDT|# pkts.|
|
cannam@86
|
212 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
213 ]]></artwork>
|
cannam@86
|
214 </figure>
|
cannam@86
|
215
|
cannam@86
|
216 <t>
|
cannam@86
|
217 Ident: 24 bits</t>
|
cannam@86
|
218 <t>
|
cannam@86
|
219 This 24-bit field is used to associate the Vorbis data to a decoding
|
cannam@86
|
220 Configuration. It is stored as a network byte order integer.
|
cannam@86
|
221 </t>
|
cannam@86
|
222
|
cannam@86
|
223 <t>
|
cannam@86
|
224 Fragment type (F): 2 bits</t>
|
cannam@86
|
225 <t>
|
cannam@86
|
226 This field is set according to the following list:
|
cannam@86
|
227 </t>
|
cannam@86
|
228 <vspace blankLines="1" />
|
cannam@86
|
229 <list style="empty">
|
cannam@86
|
230 <t> 0 = Not Fragmented</t>
|
cannam@86
|
231 <t> 1 = Start Fragment</t>
|
cannam@86
|
232 <t> 2 = Continuation Fragment</t>
|
cannam@86
|
233 <t> 3 = End Fragment</t>
|
cannam@86
|
234 </list>
|
cannam@86
|
235
|
cannam@86
|
236 <t>
|
cannam@86
|
237 Vorbis Data Type (VDT): 2 bits</t>
|
cannam@86
|
238 <t>
|
cannam@86
|
239 This field specifies the kind of Vorbis data stored in this RTP packet. There
|
cannam@86
|
240 are currently three different types of Vorbis payloads. Each packet MUST contain only a single type of Vorbis packet (e.g., you must not aggregate configuration and comment packets in the same RTP payload).
|
cannam@86
|
241 </t>
|
cannam@86
|
242
|
cannam@86
|
243 <vspace blankLines="1" />
|
cannam@86
|
244 <list style="empty">
|
cannam@86
|
245 <t> 0 = Raw Vorbis payload</t>
|
cannam@86
|
246 <t> 1 = Vorbis Packed Configuration payload</t>
|
cannam@86
|
247 <t> 2 = Legacy Vorbis Comment payload</t>
|
cannam@86
|
248 <t> 3 = Reserved</t>
|
cannam@86
|
249 </list>
|
cannam@86
|
250
|
cannam@86
|
251 <t> The packets with a VDT of value 3 MUST be ignored.</t>
|
cannam@86
|
252
|
cannam@86
|
253 <t>
|
cannam@86
|
254 The last 4 bits represent the number of complete packets in this payload. This
|
cannam@86
|
255 provides for a maximum number of 15 Vorbis packets in the payload. If the
|
cannam@86
|
256 payload contains fragmented data, the number of packets MUST be set to 0.
|
cannam@86
|
257 </t>
|
cannam@86
|
258
|
cannam@86
|
259 </section>
|
cannam@86
|
260
|
cannam@86
|
261 <section anchor="Payload Data" title="Payload Data">
|
cannam@86
|
262
|
cannam@86
|
263 <t>
|
cannam@86
|
264 Raw Vorbis packets are currently unbounded in length; application profiles will
|
cannam@86
|
265 likely define a practical limit. Typical Vorbis packet sizes range from very
|
cannam@86
|
266 small (2-3 bytes) to quite large (8-12 kilobytes). The reference implementation
|
cannam@86
|
267 <xref target="LIBVORBIS"></xref> typically produces packets less than ~800
|
cannam@86
|
268 bytes, except for the setup header packets, which are ~4-12 kilobytes. Within an
|
cannam@86
|
269 RTP context, to avoid fragmentation, the Vorbis data packet size SHOULD be kept
|
cannam@86
|
270 sufficiently small so that after adding the RTP and payload headers, the
|
cannam@86
|
271 complete RTP packet is smaller than the path MTU.
|
cannam@86
|
272 </t>
|
cannam@86
|
273
|
cannam@86
|
274 <figure anchor="Payload Data Figure" title="Payload Data Header">
|
cannam@86
|
275 <artwork><![CDATA[
|
cannam@86
|
276 0 1 2 3
|
cannam@86
|
277 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
cannam@86
|
278 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
279 | length | vorbis packet data ..
|
cannam@86
|
280 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
281 ]]></artwork>
|
cannam@86
|
282 </figure>
|
cannam@86
|
283
|
cannam@86
|
284 <t>
|
cannam@86
|
285 Each Vorbis payload packet starts with a two octet length header, which is used
|
cannam@86
|
286 to represent the size in bytes of the following data payload, and is followed by the
|
cannam@86
|
287 raw Vorbis data padded to the nearest byte boundary, as explained by the <xref target="VORBIS-SPEC-REF">Vorbis I Specification</xref>. The length value is stored
|
cannam@86
|
288 as a network byte order integer.
|
cannam@86
|
289 </t>
|
cannam@86
|
290
|
cannam@86
|
291 <t>
|
cannam@86
|
292 For payloads that consist of multiple Vorbis packets, the payload data consists
|
cannam@86
|
293 of the packet length followed by the packet data for each of the Vorbis packets
|
cannam@86
|
294 in the payload.
|
cannam@86
|
295 </t>
|
cannam@86
|
296
|
cannam@86
|
297 <t>
|
cannam@86
|
298 The Vorbis packet length header is the length of the Vorbis data block only and
|
cannam@86
|
299 does not include the length field.
|
cannam@86
|
300 </t>
|
cannam@86
|
301
|
cannam@86
|
302 <t>
|
cannam@86
|
303 The payload packing of the Vorbis data packets MUST follow the guidelines
|
cannam@86
|
304 set out in <xref target="RFC3551"></xref>, where the oldest Vorbis packet occurs
|
cannam@86
|
305 immediately after the RTP packet header. Subsequent Vorbis packets, if any, MUST
|
cannam@86
|
306 follow in temporal order.
|
cannam@86
|
307 </t>
|
cannam@86
|
308
|
cannam@86
|
309 <t>
|
cannam@86
|
310 Audio channel mapping is in accordance with the
|
cannam@86
|
311 <xref target="VORBIS-SPEC-REF">Vorbis I Specification</xref>.
|
cannam@86
|
312 </t>
|
cannam@86
|
313
|
cannam@86
|
314 </section>
|
cannam@86
|
315
|
cannam@86
|
316 <section anchor="Example RTP Packet" title="Example RTP Packet">
|
cannam@86
|
317
|
cannam@86
|
318 <t>
|
cannam@86
|
319 Here is an example RTP payload containing two Vorbis packets.
|
cannam@86
|
320 </t>
|
cannam@86
|
321
|
cannam@86
|
322 <figure anchor="Example Raw Vorbis Packet" title="Example Raw Vorbis Packet">
|
cannam@86
|
323 <artwork><![CDATA[
|
cannam@86
|
324 0 1 2 3
|
cannam@86
|
325 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
cannam@86
|
326 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
327 | 2 |0|0| 0 |0| PT | sequence number |
|
cannam@86
|
328 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
329 | timestamp (in sample rate units) |
|
cannam@86
|
330 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
331 | synchronisation source (SSRC) identifier |
|
cannam@86
|
332 +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
|
cannam@86
|
333 | contributing source (CSRC) identifiers |
|
cannam@86
|
334 | ... |
|
cannam@86
|
335 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
336 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
337 | Ident | 0 | 0 | 2 pks |
|
cannam@86
|
338 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
339 | length | vorbis data ..
|
cannam@86
|
340 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
341 .. vorbis data |
|
cannam@86
|
342 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
343 | length | next vorbis packet data ..
|
cannam@86
|
344 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
345 .. vorbis data ..
|
cannam@86
|
346 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
347 .. vorbis data |
|
cannam@86
|
348 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
349 ]]></artwork>
|
cannam@86
|
350 </figure>
|
cannam@86
|
351
|
cannam@86
|
352 <t>
|
cannam@86
|
353 The payload data section of the RTP packet begins with the 24-bit Ident field
|
cannam@86
|
354 followed by the one octet bit field header, which has the number of Vorbis
|
cannam@86
|
355 frames set to 2. Each of the Vorbis data frames is prefixed by the two octets
|
cannam@86
|
356 length field. The Packet Type and Fragment Type are set to 0. The Configuration
|
cannam@86
|
357 that will be used to decode the packets is the one indexed by the ident value.
|
cannam@86
|
358 </t>
|
cannam@86
|
359
|
cannam@86
|
360 </section>
|
cannam@86
|
361 </section>
|
cannam@86
|
362
|
cannam@86
|
363
|
cannam@86
|
364
|
cannam@86
|
365 <section anchor="Configuration Headers" title="Configuration Headers">
|
cannam@86
|
366
|
cannam@86
|
367 <t>
|
cannam@86
|
368 Unlike other mainstream audio codecs, Vorbis has no statically
|
cannam@86
|
369 configured probability model. Instead, it packs all entropy decoding
|
cannam@86
|
370 configuration, Vector Quantization and Huffman models into a data block
|
cannam@86
|
371 that must be transmitted to the decoder with the compressed data.
|
cannam@86
|
372 A decoder also requires information detailing the number of audio
|
cannam@86
|
373 channels, bitrates, and similar information to configure itself for a
|
cannam@86
|
374 particular compressed data stream. These two blocks of information are
|
cannam@86
|
375 often referred to collectively as the "codebooks" for a Vorbis stream,
|
cannam@86
|
376 and are included as special "header" packets at the start
|
cannam@86
|
377 of the compressed data. In addition,
|
cannam@86
|
378 the <xref target="VORBIS-SPEC-REF">Vorbis I specification</xref>
|
cannam@86
|
379 requires the presence of a comment header packet that gives simple
|
cannam@86
|
380 metadata about the stream, but this information is not required for
|
cannam@86
|
381 decoding the frame sequence.
|
cannam@86
|
382 </t>
|
cannam@86
|
383
|
cannam@86
|
384 <t>
|
cannam@86
|
385 Thus, these two codebook header packets must be received by the decoder before
|
cannam@86
|
386 any audio data can be interpreted. These requirements pose problems in RTP,
|
cannam@86
|
387 which is often used over unreliable transports.
|
cannam@86
|
388 </t>
|
cannam@86
|
389
|
cannam@86
|
390 <t>
|
cannam@86
|
391 Since this information must be transmitted reliably and, as the RTP
|
cannam@86
|
392 stream may change certain configuration data mid-session, there are
|
cannam@86
|
393 different methods for delivering this configuration data to a
|
cannam@86
|
394 client, both in-band and out-of-band, which are detailed below.
|
cannam@86
|
395 In order to set up an initial state for the client application, the
|
cannam@86
|
396 configuration MUST be conveyed via the signalling channel used to set up
|
cannam@86
|
397 the session. One example of such signalling is
|
cannam@86
|
398 <xref target="RFC4566">SDP</xref> with the
|
cannam@86
|
399 <xref target="RFC3264">Offer/Answer Model</xref>.
|
cannam@86
|
400 Changes to the configuration MAY be communicated via a re-invite,
|
cannam@86
|
401 conveying a new SDP, or sent in-band in the RTP channel.
|
cannam@86
|
402 Implementations MUST support an in-band delivery of updated codebooks,
|
cannam@86
|
403 and SHOULD support out-of-band codebook update using a new SDP file.
|
cannam@86
|
404 The changes may be due to different codebooks as well as
|
cannam@86
|
405 different bitrates of the RTP stream.
|
cannam@86
|
406 </t>
|
cannam@86
|
407
|
cannam@86
|
408 <t>For non-chained streams, the recommended Configuration delivery
|
cannam@86
|
409 method is inside the <xref target="Packed Configuration">Packed
|
cannam@86
|
410 Configuration</xref> in the SDP as explained the <xref
|
cannam@86
|
411 target="Mapping Media Type Parameters into SDP"> Mapping Media Type
|
cannam@86
|
412 Parameters into SDP</xref>.
|
cannam@86
|
413 </t>
|
cannam@86
|
414
|
cannam@86
|
415 <t>
|
cannam@86
|
416 The 24-bit Ident field is used to map which Configuration will be used to
|
cannam@86
|
417 decode a packet. When the Ident field changes, it indicates that a change in
|
cannam@86
|
418 the stream has taken place. The client application MUST have in advance the
|
cannam@86
|
419 correct configuration. If the client detects a change in the Ident value and
|
cannam@86
|
420 does not have this information, it MUST NOT decode the raw associated Vorbis
|
cannam@86
|
421 data until it fetches the correct Configuration.
|
cannam@86
|
422 </t>
|
cannam@86
|
423
|
cannam@86
|
424 <section anchor="In-band Header Transmission" title="In-band Header Transmission">
|
cannam@86
|
425
|
cannam@86
|
426 <t>
|
cannam@86
|
427 The <xref target="Packed Configuration">Packed Configuration</xref> Payload is
|
cannam@86
|
428 sent in-band with the packet type bits set to match the Vorbis Data Type.
|
cannam@86
|
429 Clients MUST be capable of dealing with fragmentation and periodic
|
cannam@86
|
430 <xref target="RFC4588">re-transmission of</xref> the configuration headers.
|
cannam@86
|
431 The RTP timestamp value MUST reflect the transmission time of the first data packet for which this configuration applies.
|
cannam@86
|
432 </t>
|
cannam@86
|
433
|
cannam@86
|
434 <section anchor="Packed Configuration" title="Packed Configuration">
|
cannam@86
|
435
|
cannam@86
|
436 <t>
|
cannam@86
|
437 A Vorbis Packed Configuration is indicated with the Vorbis Data Type field set
|
cannam@86
|
438 to 1. Of the three headers defined in the
|
cannam@86
|
439 <xref target="VORBIS-SPEC-REF">Vorbis I specification</xref>, the
|
cannam@86
|
440 Identification and the Setup MUST be packed as they are, while the Comment
|
cannam@86
|
441 header MAY be replaced with a dummy one.</t>
|
cannam@86
|
442 <t>
|
cannam@86
|
443 The packed configuration stores Xiph codec
|
cannam@86
|
444 configurations in a generic way: the first field stores the number of the following packets
|
cannam@86
|
445 minus one (count field), the next ones represent the size of the headers
|
cannam@86
|
446 (length fields), and the headers immediately follow the list of length fields.
|
cannam@86
|
447 The size of the last header is implicit.</t>
|
cannam@86
|
448 <t>
|
cannam@86
|
449 The count and the length fields are encoded using the following logic: the data
|
cannam@86
|
450 is in network byte order; every byte has the most significant bit used
|
cannam@86
|
451 as a flag, and the following 7 bits are used to store the value.
|
cannam@86
|
452 The first 7 most significant bits are stored in the first byte.
|
cannam@86
|
453 If there are remaining bits, the flag bit is set to 1 and the subsequent
|
cannam@86
|
454 7 bits are stored in the following byte.
|
cannam@86
|
455 If there are remaining bits, set the flag to 1 and the same procedure is
|
cannam@86
|
456 repeated.
|
cannam@86
|
457 The ending byte has the flag bit set to 0. To decode, simply iterate
|
cannam@86
|
458 over the bytes until the flag bit is set to 0. For every byte, the data
|
cannam@86
|
459 is added to the accumulated value multiplied by 128.</t>
|
cannam@86
|
460 <t>
|
cannam@86
|
461 The headers are packed in the same order as they are present in Ogg <xref target="VORBIS-SPEC-REF" />:
|
cannam@86
|
462 Identification, Comment, Setup.</t>
|
cannam@86
|
463
|
cannam@86
|
464 <t>
|
cannam@86
|
465 The 2 byte length tag defines the length of the packed headers as the sum of
|
cannam@86
|
466 the Configuration, Comment, and Setup lengths.</t>
|
cannam@86
|
467
|
cannam@86
|
468 <figure anchor="Packed Configuration Figure" title="Packed Configuration Figure">
|
cannam@86
|
469 <artwork><![CDATA[
|
cannam@86
|
470 0 1 2 3
|
cannam@86
|
471 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
cannam@86
|
472 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
473 |V=2|P|X| CC |M| PT | xxxx |
|
cannam@86
|
474 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
475 | xxxxx |
|
cannam@86
|
476 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
477 | synchronization source (SSRC) identifier |
|
cannam@86
|
478 +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
|
cannam@86
|
479 | contributing source (CSRC) identifiers |
|
cannam@86
|
480 | ... |
|
cannam@86
|
481 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
482 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
483 | Ident | 0 | 1 | 1|
|
cannam@86
|
484 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
485 | length | n. of headers | length1 |
|
cannam@86
|
486 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
487 | length2 | Identification ..
|
cannam@86
|
488 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
489 .. Identification ..
|
cannam@86
|
490 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
491 .. Identification ..
|
cannam@86
|
492 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
493 .. Identification ..
|
cannam@86
|
494 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
495 .. Identification | Comment ..
|
cannam@86
|
496 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
497 .. Comment ..
|
cannam@86
|
498 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
499 .. Comment ..
|
cannam@86
|
500 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
501 .. Comment ..
|
cannam@86
|
502 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
503 .. Comment | Setup ..
|
cannam@86
|
504 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
505 .. Setup ..
|
cannam@86
|
506 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
507 .. Setup ..
|
cannam@86
|
508 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
509 ]]></artwork>
|
cannam@86
|
510 </figure>
|
cannam@86
|
511
|
cannam@86
|
512 <t>The Ident field is set with the value that will be used by the Raw Payload
|
cannam@86
|
513 Packets to address this Configuration. The Fragment type is set to 0 because the
|
cannam@86
|
514 packet bears the full Packed configuration. The number of the packet is set to 1.</t>
|
cannam@86
|
515 </section>
|
cannam@86
|
516 </section>
|
cannam@86
|
517
|
cannam@86
|
518 <section anchor="Out of Band Transmission" title="Out of Band Transmission">
|
cannam@86
|
519
|
cannam@86
|
520 <t>
|
cannam@86
|
521 The following packet definition MUST be used when Configuration is inside
|
cannam@86
|
522 in the SDP.
|
cannam@86
|
523 </t>
|
cannam@86
|
524
|
cannam@86
|
525 <section anchor="Packed Headers" title="Packed Headers">
|
cannam@86
|
526
|
cannam@86
|
527 <t>
|
cannam@86
|
528 As mentioned above, the RECOMMENDED delivery vector for Vorbis configuration
|
cannam@86
|
529 data is via a retrieval method that can be performed using a reliable transport
|
cannam@86
|
530 protocol. As the RTP headers are not required for this method of delivery, the
|
cannam@86
|
531 structure of the configuration data is slightly different. The packed header
|
cannam@86
|
532 starts with a 32-bit (network-byte ordered) count field, which details
|
cannam@86
|
533 the number of packed headers that are contained in the bundle. The
|
cannam@86
|
534 following shows the Packed header
|
cannam@86
|
535 payload for each chained Vorbis stream.
|
cannam@86
|
536 </t>
|
cannam@86
|
537
|
cannam@86
|
538 <figure anchor="Packed Headers Overview Figure" title="Packed Headers Overview">
|
cannam@86
|
539 <artwork><![CDATA[
|
cannam@86
|
540 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
541 | Number of packed headers |
|
cannam@86
|
542 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
543 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
544 | Packed header |
|
cannam@86
|
545 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
546 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
547 | Packed header |
|
cannam@86
|
548 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
549 ]]></artwork>
|
cannam@86
|
550 </figure>
|
cannam@86
|
551
|
cannam@86
|
552 <figure anchor="Packed Headers Detail Figure" title="Packed Headers Detail">
|
cannam@86
|
553 <artwork><![CDATA[
|
cannam@86
|
554 0 1 2 3
|
cannam@86
|
555 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
cannam@86
|
556 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
557 | Ident | length ..
|
cannam@86
|
558 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
559 .. | n. of headers | length1 | length2 ..
|
cannam@86
|
560 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
561 .. | Identification Header ..
|
cannam@86
|
562 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
563 .................................................................
|
cannam@86
|
564 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
565 .. | Comment Header ..
|
cannam@86
|
566 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
567 .................................................................
|
cannam@86
|
568 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
569 .. Comment Header |
|
cannam@86
|
570 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
571 | Setup Header ..
|
cannam@86
|
572 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
573 .................................................................
|
cannam@86
|
574 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
575 .. Setup Header |
|
cannam@86
|
576 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
577 ]]></artwork>
|
cannam@86
|
578 </figure>
|
cannam@86
|
579 <t>
|
cannam@86
|
580 The key difference between the in-band format and this one is that there is no
|
cannam@86
|
581 need for the payload header octet. In this figure, the comment has a size bigger
|
cannam@86
|
582 than 127 bytes.
|
cannam@86
|
583 </t>
|
cannam@86
|
584 </section>
|
cannam@86
|
585
|
cannam@86
|
586 </section>
|
cannam@86
|
587
|
cannam@86
|
588 <section anchor="Loss of Configuration Headers" title="Loss of Configuration Headers">
|
cannam@86
|
589
|
cannam@86
|
590 <t>
|
cannam@86
|
591 Unlike the loss of raw Vorbis payload data, loss of a configuration header
|
cannam@86
|
592 leads to a situation where it will not be possible to successfully decode the
|
cannam@86
|
593 stream. Implementations MAY try to recover from an error by requesting again the
|
cannam@86
|
594 missing Configuration or, if the delivery method is in-band, by buffering the
|
cannam@86
|
595 payloads waiting for the Configuration needed to decode them.
|
cannam@86
|
596 The baseline reaction SHOULD either be reset or end the RTP session.
|
cannam@86
|
597 </t>
|
cannam@86
|
598
|
cannam@86
|
599 </section>
|
cannam@86
|
600
|
cannam@86
|
601 </section>
|
cannam@86
|
602
|
cannam@86
|
603 <section anchor="Comment Headers" title="Comment Headers">
|
cannam@86
|
604
|
cannam@86
|
605 <t>
|
cannam@86
|
606 Vorbis Data Type flag set to 2 indicates that the packet contains
|
cannam@86
|
607 the comment metadata, such as artist name, track title, and so on. These
|
cannam@86
|
608 metadata messages are not intended to be fully descriptive but rather to offer basic
|
cannam@86
|
609 track/song information. Clients MAY ignore it completely. The details on the
|
cannam@86
|
610 format of the comments can be found in the <xref target="VORBIS-SPEC-REF">Vorbis I Specification</xref>.
|
cannam@86
|
611 </t>
|
cannam@86
|
612 <figure anchor="Comment Packet Figure" title="Comment Packet">
|
cannam@86
|
613 <artwork><![CDATA[
|
cannam@86
|
614 0 1 2 3
|
cannam@86
|
615 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
cannam@86
|
616 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
617 |V=2|P|X| CC |M| PT | xxxx |
|
cannam@86
|
618 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
619 | xxxxx |
|
cannam@86
|
620 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
621 | synchronization source (SSRC) identifier |
|
cannam@86
|
622 +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
|
cannam@86
|
623 | contributing source (CSRC) identifiers |
|
cannam@86
|
624 | ... |
|
cannam@86
|
625 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
626 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
627 | Ident | 0 | 2 | 1|
|
cannam@86
|
628 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
629 | length | Comment ..
|
cannam@86
|
630 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
631 .. Comment ..
|
cannam@86
|
632 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
633 .. Comment |
|
cannam@86
|
634 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
635 ]]></artwork>
|
cannam@86
|
636 </figure>
|
cannam@86
|
637
|
cannam@86
|
638 <t>
|
cannam@86
|
639 The 2-byte length field is necessary since this packet could be fragmented.
|
cannam@86
|
640 </t>
|
cannam@86
|
641
|
cannam@86
|
642 </section>
|
cannam@86
|
643 <section anchor="Frame Packetization" title="Frame Packetization">
|
cannam@86
|
644
|
cannam@86
|
645 <t>
|
cannam@86
|
646 Each RTP payload contains either one Vorbis packet fragment or an integer
|
cannam@86
|
647 number of complete Vorbis packets (up to a maximum of 15 packets, since the
|
cannam@86
|
648 number of packets is defined by a 4-bit value).
|
cannam@86
|
649 </t>
|
cannam@86
|
650
|
cannam@86
|
651 <t>
|
cannam@86
|
652 Any Vorbis data packet that is less than path MTU SHOULD be bundled in the RTP
|
cannam@86
|
653 payload with as many Vorbis packets as will fit, up to a maximum of 15, except
|
cannam@86
|
654 when such bundling would exceed an application's desired transmission latency.
|
cannam@86
|
655 Path MTU is detailed in <xref target="RFC1191"></xref> and <xref target="RFC1981"></xref>.
|
cannam@86
|
656 </t>
|
cannam@86
|
657
|
cannam@86
|
658 <t>
|
cannam@86
|
659 A fragmented packet has a zero in the last four bits of the payload header.
|
cannam@86
|
660 The first fragment will set the Fragment type to 1. Each fragment after the
|
cannam@86
|
661 first will set the Fragment type to 2 in the payload header. The consecutive
|
cannam@86
|
662 fragments MUST be sent without any other payload being sent between the first
|
cannam@86
|
663 and the last fragment. The RTP payload containing the last fragment of the
|
cannam@86
|
664 Vorbis packet will have the Fragment type set to 3. To maintain the correct
|
cannam@86
|
665 sequence for fragmented packet reception, the timestamp field of fragmented
|
cannam@86
|
666 packets MUST be the same as the first packet sent, with the sequence number
|
cannam@86
|
667 incremented as normal for the subsequent RTP payloads; this will affect the
|
cannam@86
|
668 RTCP jitter measurement. The length field shows the fragment length.
|
cannam@86
|
669 </t>
|
cannam@86
|
670
|
cannam@86
|
671 <section anchor="Example Fragmented Vorbis Packet" title="Example Fragmented Vorbis Packet">
|
cannam@86
|
672
|
cannam@86
|
673 <t>
|
cannam@86
|
674 Here is an example of a fragmented Vorbis packet split over three RTP payloads.
|
cannam@86
|
675 Each of them contains the standard RTP headers as well as the 4-octet Vorbis
|
cannam@86
|
676 headers.
|
cannam@86
|
677 </t>
|
cannam@86
|
678
|
cannam@86
|
679 <figure anchor="Example Fragmented Packet (Packet 1)" title="Example Fragmented Packet (Packet 1)">
|
cannam@86
|
680 <artwork><![CDATA[
|
cannam@86
|
681 Packet 1:
|
cannam@86
|
682
|
cannam@86
|
683 0 1 2 3
|
cannam@86
|
684 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
cannam@86
|
685 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
686 |V=2|P|X| CC |M| PT | 1000 |
|
cannam@86
|
687 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
688 | 12345 |
|
cannam@86
|
689 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
690 | synchronization source (SSRC) identifier |
|
cannam@86
|
691 +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
|
cannam@86
|
692 | contributing source (CSRC) identifiers |
|
cannam@86
|
693 | ... |
|
cannam@86
|
694 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
695 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
696 | Ident | 1 | 0 | 0|
|
cannam@86
|
697 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
698 | length | vorbis data ..
|
cannam@86
|
699 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
700 .. vorbis data |
|
cannam@86
|
701 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
702 ]]></artwork>
|
cannam@86
|
703 </figure>
|
cannam@86
|
704
|
cannam@86
|
705 <t>
|
cannam@86
|
706 In this payload, the initial sequence number is 1000 and the timestamp is 12345. The Fragment type is set to 1, the number of packets field is set to 0, and as
|
cannam@86
|
707 the payload is raw Vorbis data, the VDT field is set to 0.
|
cannam@86
|
708 </t>
|
cannam@86
|
709
|
cannam@86
|
710 <figure anchor="Example Fragmented Packet (Packet 2)" title="Example Fragmented Packet (Packet 2)">
|
cannam@86
|
711 <artwork><![CDATA[
|
cannam@86
|
712 Packet 2:
|
cannam@86
|
713
|
cannam@86
|
714 0 1 2 3
|
cannam@86
|
715 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
cannam@86
|
716 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
717 |V=2|P|X| CC |M| PT | 1001 |
|
cannam@86
|
718 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
719 | 12345 |
|
cannam@86
|
720 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
721 | synchronization source (SSRC) identifier |
|
cannam@86
|
722 +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
|
cannam@86
|
723 | contributing source (CSRC) identifiers |
|
cannam@86
|
724 | ... |
|
cannam@86
|
725 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
726 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
727 | Ident | 2 | 0 | 0|
|
cannam@86
|
728 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
729 | length | vorbis data ..
|
cannam@86
|
730 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
731 .. vorbis data |
|
cannam@86
|
732 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
733 ]]></artwork>
|
cannam@86
|
734 </figure>
|
cannam@86
|
735
|
cannam@86
|
736 <t>
|
cannam@86
|
737 The Fragment type field is set to 2, and the number of packets field is set to 0.
|
cannam@86
|
738 For large Vorbis fragments, there can be several of these types of payloads.
|
cannam@86
|
739 The maximum packet size SHOULD be no greater than the path MTU,
|
cannam@86
|
740 including all RTP and payload headers. The sequence number has been incremented
|
cannam@86
|
741 by one, but the timestamp field remains the same as the initial payload.
|
cannam@86
|
742 </t>
|
cannam@86
|
743
|
cannam@86
|
744 <figure anchor="Example Fragmented Packet (Packet 3)" title="Example Fragmented Packet (Packet 3)">
|
cannam@86
|
745 <artwork><![CDATA[
|
cannam@86
|
746 Packet 3:
|
cannam@86
|
747
|
cannam@86
|
748 0 1 2 3
|
cannam@86
|
749 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
cannam@86
|
750 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
751 |V=2|P|X| CC |M| PT | 1002 |
|
cannam@86
|
752 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
753 | 12345 |
|
cannam@86
|
754 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
755 | synchronization source (SSRC) identifier |
|
cannam@86
|
756 +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
|
cannam@86
|
757 | contributing source (CSRC) identifiers |
|
cannam@86
|
758 | ... |
|
cannam@86
|
759 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
760 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
761 | Ident | 3 | 0 | 0|
|
cannam@86
|
762 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
763 | length | vorbis data ..
|
cannam@86
|
764 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
765 .. vorbis data |
|
cannam@86
|
766 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
cannam@86
|
767 ]]></artwork>
|
cannam@86
|
768 </figure>
|
cannam@86
|
769
|
cannam@86
|
770 <t>
|
cannam@86
|
771 This is the last Vorbis fragment payload. The Fragment type is set to 3 and the
|
cannam@86
|
772 packet count remains set to 0. As in the previous payloads, the timestamp remains
|
cannam@86
|
773 set to the first payload timestamp in the sequence and the sequence number has
|
cannam@86
|
774 been incremented.
|
cannam@86
|
775 </t>
|
cannam@86
|
776 </section>
|
cannam@86
|
777
|
cannam@86
|
778 <section anchor="Packet Loss" title="Packet Loss">
|
cannam@86
|
779
|
cannam@86
|
780 <t>
|
cannam@86
|
781 As there is no error correction within the Vorbis stream, packet loss will
|
cannam@86
|
782 result in a loss of signal. Packet loss is more of an issue for fragmented
|
cannam@86
|
783 Vorbis packets as the client will have to cope with the handling of the
|
cannam@86
|
784 Fragment Type. In case of loss of fragments, the client MUST discard all the
|
cannam@86
|
785 remaining Vorbis fragments and decode the incomplete packet. If we use the
|
cannam@86
|
786 fragmented Vorbis packet example above and the first RTP payload is lost, the
|
cannam@86
|
787 client MUST detect that the next RTP payload has the packet count field set
|
cannam@86
|
788 to 0 and the Fragment type 2 and MUST drop it.
|
cannam@86
|
789 The next RTP payload, which is the final fragmented packet, MUST be dropped
|
cannam@86
|
790 in the same manner.
|
cannam@86
|
791 If the missing RTP payload is the last, the two fragments received will be
|
cannam@86
|
792 kept and the incomplete Vorbis packet decoded.
|
cannam@86
|
793 </t>
|
cannam@86
|
794
|
cannam@86
|
795 <t>
|
cannam@86
|
796 Loss of any of the Configuration fragment will result in the loss of the full
|
cannam@86
|
797 Configuration packet with the result detailed in the <xref target="Loss of Configuration Headers">Loss of Configuration Headers</xref> section.
|
cannam@86
|
798 </t>
|
cannam@86
|
799
|
cannam@86
|
800 </section>
|
cannam@86
|
801 </section>
|
cannam@86
|
802 <section anchor="IANA Considerations" title="IANA Considerations">
|
cannam@86
|
803
|
cannam@86
|
804 <list style="hanging">
|
cannam@86
|
805 <t hangText="Type name:"> audio </t>
|
cannam@86
|
806
|
cannam@86
|
807 <t hangText="Subtype name:"> vorbis </t>
|
cannam@86
|
808
|
cannam@86
|
809 <t hangText="Required parameters:">
|
cannam@86
|
810
|
cannam@86
|
811 <list style="hanging">
|
cannam@86
|
812 <t hangText="rate:"> indicates the RTP timestamp clock rate as described in <xref target="RFC3551">RTP Profile for Audio and Video Conferences with Minimal Control</xref>.
|
cannam@86
|
813 </t>
|
cannam@86
|
814
|
cannam@86
|
815 <t hangText="channels:"> indicates the number of audio channels as described in <xref target="RFC3551">RTP Profile for Audio and Video Conferences with Minimal Control</xref>.
|
cannam@86
|
816 </t>
|
cannam@86
|
817
|
cannam@86
|
818
|
cannam@86
|
819 <t hangText="configuration:"> the <xref target="RFC4648">base64</xref> representation of the <xref target="Packed Headers">Packed Headers</xref>.
|
cannam@86
|
820 </t>
|
cannam@86
|
821 </list>
|
cannam@86
|
822 </t>
|
cannam@86
|
823
|
cannam@86
|
824 <t hangText="Encoding considerations:">
|
cannam@86
|
825 <vspace blankLines="1" />
|
cannam@86
|
826 This media type is framed and contains binary data.
|
cannam@86
|
827 </t>
|
cannam@86
|
828
|
cannam@86
|
829 <t hangText="Security considerations:">
|
cannam@86
|
830 <vspace blankLines="1" />
|
cannam@86
|
831 See Section 10 of RFC 5215.</t>
|
cannam@86
|
832
|
cannam@86
|
833 <t hangText="Interoperability considerations:">
|
cannam@86
|
834 <vspace blankLines="1" />
|
cannam@86
|
835 None</t>
|
cannam@86
|
836
|
cannam@86
|
837 <t hangText="Published specification:">
|
cannam@86
|
838 <vspace blankLines="1" />
|
cannam@86
|
839 RFC 5215
|
cannam@86
|
840 <vspace blankLines="1" />
|
cannam@86
|
841 Ogg Vorbis I specification: Codec setup and packet decode. Available from the Xiph website, http://xiph.org/
|
cannam@86
|
842 </t>
|
cannam@86
|
843
|
cannam@86
|
844
|
cannam@86
|
845 <t hangText="Applications which use this media type:">
|
cannam@86
|
846 <vspace blankLines="1"/>
|
cannam@86
|
847 Audio streaming and conferencing tools </t>
|
cannam@86
|
848
|
cannam@86
|
849 <t hangText="Additional information:">
|
cannam@86
|
850 <vspace blankLines="1" />
|
cannam@86
|
851 None </t>
|
cannam@86
|
852
|
cannam@86
|
853 <t hangText="Person & email address to contact for further information:">
|
cannam@86
|
854 <vspace blankLines="1" />
|
cannam@86
|
855 Luca Barbato: <lu_zero@gentoo.org><br/>
|
cannam@86
|
856 <vspace blankLines="0" />
|
cannam@86
|
857 IETF Audio/Video Transport Working Group
|
cannam@86
|
858
|
cannam@86
|
859 </t>
|
cannam@86
|
860
|
cannam@86
|
861 <t hangText="Intended usage:">
|
cannam@86
|
862 <vspace blankLines="1" />
|
cannam@86
|
863 COMMON</t>
|
cannam@86
|
864
|
cannam@86
|
865 <t hangText="Restriction on usage:">
|
cannam@86
|
866 <vspace blankLines="1" />
|
cannam@86
|
867 This media type depends on RTP framing, hence is only defined for transfer via <xref target="RFC3550">RTP</xref>.</t>
|
cannam@86
|
868
|
cannam@86
|
869 <t hangText="Author:">
|
cannam@86
|
870 <vspace blankLines="1"/>Luca Barbato</t>
|
cannam@86
|
871
|
cannam@86
|
872 <t hangText="Change controller:">
|
cannam@86
|
873 <vspace blankLines="1"/>IETF AVT Working Group delegated from the IESG</t>
|
cannam@86
|
874 </list>
|
cannam@86
|
875
|
cannam@86
|
876 <section anchor="Packed Headers IANA Considerations" title="Packed Headers IANA Considerations">
|
cannam@86
|
877
|
cannam@86
|
878 <t>
|
cannam@86
|
879 The following IANA considerations refers to the split configuration <xref target="Packed Headers">Packed Headers</xref> used within RFC 5215.
|
cannam@86
|
880 </t>
|
cannam@86
|
881
|
cannam@86
|
882 <list style="hanging">
|
cannam@86
|
883 <t hangText="Type name:"> audio </t>
|
cannam@86
|
884
|
cannam@86
|
885 <t hangText="Subtype name:"> vorbis-config </t>
|
cannam@86
|
886
|
cannam@86
|
887 <t hangText="Required parameters:">
|
cannam@86
|
888 <vspace blankLines="1" />
|
cannam@86
|
889 None
|
cannam@86
|
890 </t>
|
cannam@86
|
891
|
cannam@86
|
892 <t hangText="Optional parameters:">
|
cannam@86
|
893 <vspace blankLines="1" />
|
cannam@86
|
894 None
|
cannam@86
|
895 </t>
|
cannam@86
|
896
|
cannam@86
|
897 <t hangText="Encoding considerations:">
|
cannam@86
|
898 <vspace blankLines="1" />
|
cannam@86
|
899 This media type contains binary data.
|
cannam@86
|
900 </t>
|
cannam@86
|
901
|
cannam@86
|
902 <t hangText="Security considerations:">
|
cannam@86
|
903 <vspace blankLines="1" />
|
cannam@86
|
904 See Section 10 of RFC 5215.
|
cannam@86
|
905 </t>
|
cannam@86
|
906
|
cannam@86
|
907 <t hangText="Interoperability considerations:">
|
cannam@86
|
908 <vspace blankLines="1" />
|
cannam@86
|
909 None
|
cannam@86
|
910 </t>
|
cannam@86
|
911
|
cannam@86
|
912 <t hangText="Published specification:">
|
cannam@86
|
913 <vspace blankLines="1" />
|
cannam@86
|
914 RFC 5215
|
cannam@86
|
915 </t>
|
cannam@86
|
916
|
cannam@86
|
917 <t hangText="Applications which use this media type:">
|
cannam@86
|
918 <vspace blankLines="1" />
|
cannam@86
|
919 Vorbis encoded audio, configuration data
|
cannam@86
|
920 </t>
|
cannam@86
|
921
|
cannam@86
|
922 <t hangText="Additional information:">
|
cannam@86
|
923 <vspace blankLines="1" />
|
cannam@86
|
924 None
|
cannam@86
|
925 </t>
|
cannam@86
|
926
|
cannam@86
|
927 <t hangText="Person & email address to contact for further information:">
|
cannam@86
|
928 <vspace blankLines="1" />
|
cannam@86
|
929 Luca Barbato: <lu_zero@gentoo.org>
|
cannam@86
|
930 <vspace blankLines="0" />
|
cannam@86
|
931 IETF Audio/Video Transport Working Group
|
cannam@86
|
932 </t>
|
cannam@86
|
933
|
cannam@86
|
934 <t hangText="Intended usage:">
|
cannam@86
|
935 COMMON
|
cannam@86
|
936 </t>
|
cannam@86
|
937
|
cannam@86
|
938 <t hangText="Restriction on usage:">
|
cannam@86
|
939 <vspace blankLines="1" />
|
cannam@86
|
940 This media type doesn't depend on the transport.
|
cannam@86
|
941 </t>
|
cannam@86
|
942
|
cannam@86
|
943 <t hangText="Author:">
|
cannam@86
|
944 <vspace blankLines="1" />
|
cannam@86
|
945 Luca Barbato</t>
|
cannam@86
|
946
|
cannam@86
|
947 <t hangText="Change controller:">
|
cannam@86
|
948 <vspace blankLines="1" />
|
cannam@86
|
949 IETF AVT Working Group delegated from the IESG</t>
|
cannam@86
|
950 </list>
|
cannam@86
|
951
|
cannam@86
|
952 </section>
|
cannam@86
|
953
|
cannam@86
|
954 </section>
|
cannam@86
|
955
|
cannam@86
|
956 <section anchor="SDP related considerations" title="SDP Related Considerations">
|
cannam@86
|
957 <t>
|
cannam@86
|
958 The following paragraphs define the mapping of the parameters described in the IANA considerations section and their usage in the <xref target="RFC3264">Offer/Answer Model</xref>. In order to be forward compatible, the implementation MUST ignore unknown parameters.
|
cannam@86
|
959 </t>
|
cannam@86
|
960
|
cannam@86
|
961 <section anchor="Mapping Media Type Parameters into SDP" title="Mapping Media Type Parameters into SDP">
|
cannam@86
|
962
|
cannam@86
|
963 <t>
|
cannam@86
|
964 The information carried in the Media Type specification has a
|
cannam@86
|
965 specific mapping to fields in the <xref target="RFC4566">Session Description
|
cannam@86
|
966 Protocol (SDP)</xref>, which is commonly used to describe RTP sessions.
|
cannam@86
|
967 When SDP is used to specify sessions, the mapping are as follows:
|
cannam@86
|
968 </t>
|
cannam@86
|
969
|
cannam@86
|
970 <list style="symbols">
|
cannam@86
|
971
|
cannam@86
|
972 <t>The type name ("audio") goes in SDP "m=" as the media name.</t>
|
cannam@86
|
973
|
cannam@86
|
974 <t>The subtype name ("vorbis") goes in SDP "a=rtpmap" as the encoding name.</t>
|
cannam@86
|
975
|
cannam@86
|
976 <t>The parameter "rate" also goes in "a=rtpmap" as the clock rate.</t>
|
cannam@86
|
977
|
cannam@86
|
978 <t>The parameter "channels" also goes in "a=rtpmap" as the channel count.</t>
|
cannam@86
|
979
|
cannam@86
|
980 <t>The mandated parameters "configuration" MUST be included in the SDP
|
cannam@86
|
981 "a=fmtp" attribute.</t>
|
cannam@86
|
982
|
cannam@86
|
983 </list>
|
cannam@86
|
984
|
cannam@86
|
985 <t>
|
cannam@86
|
986 If the stream comprises chained Vorbis files and all of them are known in
|
cannam@86
|
987 advance, the Configuration Packet for each file SHOULD be passed to the client
|
cannam@86
|
988 using the configuration attribute.
|
cannam@86
|
989 </t>
|
cannam@86
|
990
|
cannam@86
|
991 <t>
|
cannam@86
|
992 The port value is specified by the server application bound to the address
|
cannam@86
|
993 specified in the c= line. The channel count value specified in the rtpmap
|
cannam@86
|
994 attribute SHOULD match the current Vorbis stream or should be considered the maximum
|
cannam@86
|
995 number of channels to be expected. The timestamp clock rate MUST be a multiple
|
cannam@86
|
996 of the sample rate; a different payload number MUST be used if the clock rate
|
cannam@86
|
997 changes. The Configuration payload delivers the exact information, thus the
|
cannam@86
|
998 SDP information SHOULD be considered a hint.
|
cannam@86
|
999 An example is found below.
|
cannam@86
|
1000 </t>
|
cannam@86
|
1001
|
cannam@86
|
1002 <section anchor="SDP Example" title="SDP Example">
|
cannam@86
|
1003 <t>The following example shows a basic SDP single stream. The first
|
cannam@86
|
1004 configuration packet is inside the SDP; other configurations could be
|
cannam@86
|
1005 fetched at any time from the URIs provided. The following
|
cannam@86
|
1006 <xref target="RFC4648">base64</xref> configuration string is folded in this
|
cannam@86
|
1007 example due to RFC line length limitations.</t>
|
cannam@86
|
1008
|
cannam@86
|
1009
|
cannam@86
|
1010 <list style="empty">
|
cannam@86
|
1011 <t>c=IN IP4 192.0.2.1</t>
|
cannam@86
|
1012 <t>m=audio RTP/AVP 98</t>
|
cannam@86
|
1013 <t>a=rtpmap:98 vorbis/44100/2</t>
|
cannam@86
|
1014 <t>a=fmtp:98 configuration=AAAAAZ2f4g9NAh4aAXZvcmJpcwA...;</t>
|
cannam@86
|
1015 </list>
|
cannam@86
|
1016 </section>
|
cannam@86
|
1017
|
cannam@86
|
1018 <t>
|
cannam@86
|
1019 Note that the payload format (encoding) names are commonly shown in uppercase.
|
cannam@86
|
1020 Media Type subtypes are commonly shown in lowercase. These names are
|
cannam@86
|
1021 case-insensitive in both places. Similarly, parameter names are
|
cannam@86
|
1022 case-insensitive both in Media Type types and in the default mapping to the SDP
|
cannam@86
|
1023 a=fmtp attribute. The a=fmtp line is a single line, even if it is shown as multiple lines in this document for clarity.
|
cannam@86
|
1024 </t>
|
cannam@86
|
1025
|
cannam@86
|
1026 </section>
|
cannam@86
|
1027
|
cannam@86
|
1028 <section anchor="Usage with the SDP Offer/Answer Mode" title="Usage with the SDP Offer/Answer Model">
|
cannam@86
|
1029
|
cannam@86
|
1030 <t>
|
cannam@86
|
1031 There are no negotiable parameters. All of them are declarative.
|
cannam@86
|
1032 </t>
|
cannam@86
|
1033
|
cannam@86
|
1034 </section>
|
cannam@86
|
1035
|
cannam@86
|
1036 </section>
|
cannam@86
|
1037 <section anchor="Congestion Control" title="Congestion Control">
|
cannam@86
|
1038 <t>
|
cannam@86
|
1039 The general congestion control considerations for transporting RTP
|
cannam@86
|
1040 data apply to Vorbis audio over RTP as well. See the RTP specification
|
cannam@86
|
1041 <xref target="RFC3550" /> and any applicable RTP profile (e.g., <xref target="RFC3551" />).
|
cannam@86
|
1042 Audio data can be encoded using a range of different bit rates, so
|
cannam@86
|
1043 it is possible to adapt network bandwidth by adjusting the encoder
|
cannam@86
|
1044 bit rate in real time or by having multiple copies of content encoded
|
cannam@86
|
1045 at different bit rates.
|
cannam@86
|
1046 </t>
|
cannam@86
|
1047 </section>
|
cannam@86
|
1048 <section anchor="Example" title="Example">
|
cannam@86
|
1049
|
cannam@86
|
1050 <t>
|
cannam@86
|
1051 The following example shows a common usage pattern that MAY be applied in
|
cannam@86
|
1052 such a situation. The main scope of this section is to explain better usage
|
cannam@86
|
1053 of the transmission vectors.
|
cannam@86
|
1054 </t>
|
cannam@86
|
1055
|
cannam@86
|
1056 <section anchor="Stream Radio" title="Stream Radio">
|
cannam@86
|
1057
|
cannam@86
|
1058 <t>This is one of the most common situations: there is one single server streaming
|
cannam@86
|
1059 content in multicast, and the clients may start a session at a random time. The
|
cannam@86
|
1060 content itself could be a mix of a live stream (as the webjockey's voice)
|
cannam@86
|
1061 and stored streams (as the music she plays).</t>
|
cannam@86
|
1062
|
cannam@86
|
1063 <t>In this situation, we don't know in advance how many codebooks we will use.
|
cannam@86
|
1064 The clients can join anytime and users expect to start listening to the content
|
cannam@86
|
1065 in a short time.</t>
|
cannam@86
|
1066
|
cannam@86
|
1067 <t>Upon joining, the client will receive the current Configuration necessary to
|
cannam@86
|
1068 decode the current stream inside the SDP so that the decoding will start
|
cannam@86
|
1069 immediately after.</t>
|
cannam@86
|
1070
|
cannam@86
|
1071 <t>When the streamed content changes, the new Configuration is sent in-band
|
cannam@86
|
1072 before the actual stream, and the Configuration that has to be sent inside
|
cannam@86
|
1073 the SDP is updated. Since the in-band method is unreliable, an out-of-band
|
cannam@86
|
1074 fallback is provided.</t>
|
cannam@86
|
1075
|
cannam@86
|
1076 <t>The client may choose to fetch the Configuration from the alternate source
|
cannam@86
|
1077 as soon as it discovers a Configuration packet got lost in-band, or use
|
cannam@86
|
1078 <xref target="RFC3611">selective retransmission</xref> if the server supports
|
cannam@86
|
1079 this feature.</t>
|
cannam@86
|
1080
|
cannam@86
|
1081 <t>A server-side optimization would be to keep a hash list of the
|
cannam@86
|
1082 Configurations per session, which avoids packing all of them and sending the same
|
cannam@86
|
1083 Configuration with different Ident tags.</t>
|
cannam@86
|
1084
|
cannam@86
|
1085 <t>A client-side optimization would be to keep a tag list of the Configurations
|
cannam@86
|
1086 per session and not process configuration packets that are already known.</t>
|
cannam@86
|
1087
|
cannam@86
|
1088 </section>
|
cannam@86
|
1089 </section>
|
cannam@86
|
1090
|
cannam@86
|
1091 <section anchor="Security Considerations" title="Security Considerations">
|
cannam@86
|
1092 <t>
|
cannam@86
|
1093 RTP packets using this payload format are subject to the security
|
cannam@86
|
1094 considerations discussed in the
|
cannam@86
|
1095 <xref target="RFC3550">RTP specification</xref>, the
|
cannam@86
|
1096 <xref target="RFC4648">base64 specification</xref>, and the
|
cannam@86
|
1097 <xref target="RFC3986">URI Generic syntax specification</xref>.
|
cannam@86
|
1098 Among other considerations, this implies that the confidentiality of the
|
cannam@86
|
1099 media stream is achieved by using encryption. Because the data compression used
|
cannam@86
|
1100 with this payload format is applied end-to-end, encryption may be performed on
|
cannam@86
|
1101 the compressed data.
|
cannam@86
|
1102 </t>
|
cannam@86
|
1103
|
cannam@86
|
1104 </section>
|
cannam@86
|
1105 <section title="Copying Conditions">
|
cannam@86
|
1106 <t>The authors agree to grant third parties the irrevocable right to copy,
|
cannam@86
|
1107 use, and distribute the work, with or without modification, in any medium,
|
cannam@86
|
1108 without royalty, provided that, unless separate permission is granted,
|
cannam@86
|
1109 redistributed modified works do not contain misleading author, version,
|
cannam@86
|
1110 name of work, or endorsement information.</t>
|
cannam@86
|
1111 </section>
|
cannam@86
|
1112 <section anchor="Acknowledgments" title="Acknowledgments">
|
cannam@86
|
1113
|
cannam@86
|
1114 <t>
|
cannam@86
|
1115 This document is a continuation of the following documents:
|
cannam@86
|
1116 </t><t>
|
cannam@86
|
1117 Moffitt, J., "RTP Payload Format for Vorbis Encoded Audio", February 2001.
|
cannam@86
|
1118 </t><t>
|
cannam@86
|
1119 Kerr, R., "RTP Payload Format for Vorbis Encoded Audio", December 2004.
|
cannam@86
|
1120 </t><t>
|
cannam@86
|
1121 The Media Type declaration is a continuation of the following
|
cannam@86
|
1122 document:</t><t>
|
cannam@86
|
1123 Short, B., "The audio/rtp-vorbis MIME Type", January 2008.
|
cannam@86
|
1124 </t>
|
cannam@86
|
1125
|
cannam@86
|
1126 <t>
|
cannam@86
|
1127 Thanks to the AVT, Vorbis Communities / Xiph.Org Foundation including Steve Casner,
|
cannam@86
|
1128 Aaron Colwell, Ross Finlayson, Fluendo, Ramon Garcia, Pascal Hennequin, Ralph
|
cannam@86
|
1129 Giles, Tor-Einar Jarnbjo, Colin Law, John Lazzaro, Jack Moffitt, Christopher
|
cannam@86
|
1130 Montgomery, Colin Perkins, Barry Short, Mike Smith, Phil Kerr, Michael Sparks,
|
cannam@86
|
1131 Magnus Westerlund, David Barrett, Silvia Pfeiffer, Stefan Ehmann, Gianni Ceccarelli and Alessandro Salvatori. Thanks to the LScube Group, in particular Federico
|
cannam@86
|
1132 Ridolfo, Francesco Varano, Giampaolo Mancini, Dario Gallucci, and Juan Carlos De Martin.
|
cannam@86
|
1133 </t>
|
cannam@86
|
1134
|
cannam@86
|
1135 </section>
|
cannam@86
|
1136
|
cannam@86
|
1137 </middle>
|
cannam@86
|
1138
|
cannam@86
|
1139 <back>
|
cannam@86
|
1140
|
cannam@86
|
1141 <references title="Normative References">
|
cannam@86
|
1142
|
cannam@86
|
1143 <?rfc include="reference.RFC.2119" ?>
|
cannam@86
|
1144 <?rfc include="reference.RFC.3550" ?>
|
cannam@86
|
1145 <?rfc include="reference.RFC.3551" ?>
|
cannam@86
|
1146 <?rfc include="reference.RFC.3986" ?>
|
cannam@86
|
1147 <?rfc include="reference.RFC.4566" ?>
|
cannam@86
|
1148 <?rfc include="reference.RFC.1191" ?>
|
cannam@86
|
1149 <?rfc include="reference.RFC.1981" ?>
|
cannam@86
|
1150 <?rfc include="reference.RFC.3264" ?>
|
cannam@86
|
1151 <?rfc include="reference.RFC.4648" ?>
|
cannam@86
|
1152
|
cannam@86
|
1153 <reference anchor="VORBIS-SPEC-REF">
|
cannam@86
|
1154 <front>
|
cannam@86
|
1155 <title>Ogg Vorbis I specification: Codec setup and packet decode. Available from the Xiph website, http://xiph.org/vorbis/doc/Vorbis_I_spec.html</title>
|
cannam@86
|
1156 </front>
|
cannam@86
|
1157 </reference>
|
cannam@86
|
1158
|
cannam@86
|
1159 </references>
|
cannam@86
|
1160
|
cannam@86
|
1161 <references title="Informative References">
|
cannam@86
|
1162
|
cannam@86
|
1163 <?rfc include="reference.RFC.3533" ?>
|
cannam@86
|
1164
|
cannam@86
|
1165 <reference anchor="LIBVORBIS">
|
cannam@86
|
1166 <front>
|
cannam@86
|
1167 <title>libvorbis: Available from the dedicated website, http://vorbis.com/</title>
|
cannam@86
|
1168 </front>
|
cannam@86
|
1169 </reference>
|
cannam@86
|
1170
|
cannam@86
|
1171 <?rfc include="reference.RFC.3611" ?>
|
cannam@86
|
1172 <?rfc include="reference.RFC.4588" ?>
|
cannam@86
|
1173
|
cannam@86
|
1174 </references>
|
cannam@86
|
1175 </back>
|
cannam@86
|
1176 </rfc>
|