draft-terriberry-oggopus.xml 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE rfc SYSTEM 'rfc2629.dtd'>
  3. <?rfc toc="yes" symrefs="yes" ?>
  4. <rfc ipr="trust200902" category="std" docName="draft-terriberry-oggopus-00">
  5. <front>
  6. <title abbrev="Ogg Opus">Ogg Encapsulation for the Opus Audio Codec</title>
  7. <author initials="T.B." surname="Terriberry" fullname="Timothy B. Terriberry">
  8. <organization>Mozilla Corporation</organization>
  9. <address>
  10. <postal>
  11. <street>650 Castro Street</street>
  12. <city>Mountain View</city>
  13. <region>CA</region>
  14. <code>94041</code>
  15. <country>USA</country>
  16. </postal>
  17. <phone>+1 650 903-0800</phone>
  18. <email>tterribe@xiph.org</email>
  19. </address>
  20. </author>
  21. <author initials="R." surname="Lee" fullname="Ron Lee">
  22. <organization>Voicetronix</organization>
  23. <address>
  24. <postal>
  25. <street>246 Pulteney Street, Level 1</street>
  26. <city>Adelaide</city>
  27. <region>SA</region>
  28. <code>5000</code>
  29. <country>Australia</country>
  30. </postal>
  31. <phone>+61 8 8232 9112</phone>
  32. <email>ron@debian.org</email>
  33. </address>
  34. </author>
  35. <date day="3" month="July" year="2012"/>
  36. <area>RAI</area>
  37. <workgroup>codec</workgroup>
  38. <abstract>
  39. <t>
  40. This document defines the Ogg encapsulation for the Opus interactive speech and
  41. audio codec.
  42. This allows data encoded in the Opus format to be stored in an Ogg logical
  43. bitstream.
  44. This provides Opus with a long-term storage format supporting all of the
  45. essential features, including metadata, fast and accurate seeking, corruption
  46. detection, recapture after errors, low overhead, and the ability to multiplex
  47. Opus with other codecs (including video) with minimal buffering.
  48. It also provides a live streamable format, capable of delivery over a reliable
  49. stream-oriented transport, without requiring all the data, or even the total
  50. length of the data, up-front, in a form that is identical to the on-disk
  51. storage format.
  52. </t>
  53. </abstract>
  54. </front>
  55. <middle>
  56. <section anchor="intro" title="Introduction">
  57. <t>
  58. The IETF Opus codec is a low-latency audio codec optimized for both voice and
  59. general-purpose audio.
  60. See <xref target="RFCOpus"/> for technical details.
  61. This document defines the encapsulation of Opus in a continuous, logical Ogg
  62. bitstream&nbsp;<xref target="RFC3533"/>.
  63. </t>
  64. <t>
  65. Ogg bitstreams are made up of a series of 'pages', each of which contains data
  66. from one or more 'packets'.
  67. Pages are the fundamental unit of multiplexing in an Ogg stream.
  68. Each page is associated with a particular logical stream and contains a capture
  69. pattern and checksum, flags to mark the beginning and end of the logical
  70. stream, and a 'granule position' that represents an absolute position in the
  71. stream, to aid seeking.
  72. A single page can contain up to 65,025 octets of packet data from up to 255
  73. different packets.
  74. Packets may be split arbitrarily across pages, and continued from one page to
  75. the next (allowing packets much larger than would fit on a single page).
  76. Each page contains 'lacing values' that indicate how the data is partitioned
  77. into packets, allowing a demuxer to recover the packet boundaries without
  78. examining the encoded data.
  79. A packet is said to 'complete' on a page when the page contains the final
  80. lacing value corresponding to that packet.
  81. </t>
  82. <t>
  83. This encapsulation defines the required contents of the packet data, including
  84. the necessary headers, the organization of those packets into a logical
  85. stream, and the interpretation of the codec-specific granule position field.
  86. It does not attempt to describe or specify the existing Ogg container format.
  87. Readers unfamiliar with the basic concepts mentioned above are encouraged to
  88. review the details in <xref target="RFC3533"/>.
  89. </t>
  90. </section>
  91. <section anchor="terminology" title="Terminology">
  92. <t>
  93. The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD",
  94. "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be
  95. interpreted as described in <xref target="RFC2119"/>.
  96. </t>
  97. <t>
  98. Implementations that fail to satisfy one or more "MUST" requirements are
  99. considered non-compliant.
  100. Implementations that satisfy all "MUST" requirements, but fail to satisfy one
  101. or more "SHOULD" requirements are said to be "conditionally compliant".
  102. All other implementations are "unconditionally compliant".
  103. </t>
  104. </section>
  105. <section anchor="packet_organization" title="Packet Organization">
  106. <t>
  107. An Opus stream is organized as follows.
  108. </t>
  109. <t>
  110. There are two mandatory header packets.
  111. The granule position of the pages on which these packets complete MUST be zero.
  112. </t>
  113. <t>
  114. The first packet in the logical Ogg bitstream MUST contain the identification
  115. (ID) header, which uniquely identifies a stream as Opus audio.
  116. The format of this header is defined in <xref target="id_header"/>.
  117. It MUST be placed alone (without any other packet data) on the first page of
  118. the logical Ogg bitstream.
  119. This page MUST have its 'beginning of stream' flag set.
  120. </t>
  121. <t>
  122. The second packet in the logical Ogg bitstream MUST contain the comment header,
  123. which contains user-supplied metadata.
  124. The format of this header is defined in <xref target="comment_header"/>.
  125. It MAY span one or more pages, beginning on the second page of the logical
  126. stream.
  127. However many pages it spans, the comment header packet MUST finish the page on
  128. which it completes.
  129. </t>
  130. <t>
  131. All subsequent pages are audio data pages, and the packets they contain are
  132. audio data packets.
  133. Each audio data packet contains one Opus packet for each of N different
  134. streams, where N is typically one for mono or stereo, but may be greater than
  135. one for, e.g., multichannel audio.
  136. The value N is specified in the ID header (see
  137. <xref target="channel_mapping"/>), and is fixed over the entire length of the
  138. logical Ogg bitstream.
  139. </t>
  140. <t>
  141. The first N-1 Opus packets, if any, are packed using the self-delimiting
  142. framing from Appendix&nbsp;B of <xref target="RFCOpus"/>.
  143. The remaining Opus packet is packed using the regular, undelimited framing from
  144. Section&nbsp;3 of <xref target="RFCOpus"/>.
  145. All of the Opus packets in a single Ogg packet MUST be constrained to have the
  146. same duration.
  147. A decoder SHOULD treat any Opus packet whose duration is different from that of
  148. the first Opus packet in an Ogg packet as if it were an Opus packet with an
  149. illegal TOC sequence.
  150. </t>
  151. <t>
  152. The first audio data page SHOULD NOT have the 'continued packet' flag set
  153. (which would indicated the first audio data packet is continued from a
  154. previous page).
  155. Packets MUST be placed into Ogg pages in order until the end of stream.
  156. Audio packets MAY span page boundaries.
  157. A decoder MUST treat a zero-octet audio data packet as if it were an Opus
  158. packet with an illegal TOC sequence.
  159. The last page SHOULD have the 'end of stream' flag set, but implementations
  160. should be prepared to deal with truncated streams that do not have a page
  161. marked 'end of stream'.
  162. The final packet on the last page SHOULD NOT be a continued packet, i.e., the
  163. final lacing value should be less than 255.
  164. There MUST NOT be any more pages in an Opus logical bitstream after a page
  165. marked 'end of stream'.
  166. </t>
  167. </section>
  168. <section anchor="granpos" title="Granule Position">
  169. <t>
  170. The granule position of an audio data page encodes the total number of PCM
  171. samples in the stream up to and including the last fully-decodable sample from
  172. the last packet completed on that page.
  173. A page that is entirely spanned by a single packet (that completes on a
  174. subsequent page) has no granule position, and the granule position field MUST
  175. be set to the special value '-1' in two's complement.
  176. </t>
  177. <t>
  178. The granule position of an audio data page is in units of PCM audio samples at
  179. a fixed rate of 48&nbsp;kHz (per channel; a stereo stream's granule position
  180. does not increment at twice the speed of a mono stream).
  181. It is possible to run an Opus decoder at other sampling rates, but the value
  182. in the granule position field always counts samples assuming a 48&nbsp;kHz
  183. decoding rate, and the rest of this specification makes the same assumption.
  184. </t>
  185. <t>
  186. The duration of an Opus packet may be any multiple of 2.5&nbsp;ms, up to a
  187. maximum of 120&nbsp;ms.
  188. This duration is encoded in the TOC sequence at the beginning of each packet.
  189. The number of samples returned by a decoder corresponds to this duration
  190. exactly, even for the first few packets.
  191. For example, a 20&nbsp;ms packet fed to a decoder running at 48&nbsp;kHz will
  192. always return 960&nbsp;samples.
  193. A demuxer can parse the TOC sequence at the beginning of each Ogg packet to
  194. work backwards or forwards from a packet with a known granule position (i.e.,
  195. the last packet completed on some page) in order to assign granule positions
  196. to every packet, or even every individual sample.
  197. The one exception is the last page in the stream, as described below.
  198. </t>
  199. <t>
  200. All other pages with completed packets after the first MUST have a granule
  201. position equal to the number of samples contained in packets that complete on
  202. that page plus the granule position of the most recent page with completed
  203. packets.
  204. This guarantees that a demuxer can assign individual packets the same granule
  205. position when working forwards as when working backwards.
  206. For this to work, there cannot be any gaps.
  207. In order to support capturing a stream that uses discontinuous transmission
  208. (DTX), an encoder SHOULD emit packets that explicitly request the use of
  209. Packet Loss Concealment (PLC) (i.e., with a frame length of 0, as defined in
  210. Section 3.2.1 of <xref target="RFCOpus"/>) in place of the packets that were
  211. not transmitted.
  212. </t>
  213. <t>
  214. There is some amount of latency introduced during the decoding process, to
  215. allow for overlap in the MDCT modes, stereo mixing in the LP modes, and
  216. resampling, and the encoder will introduce even more latency (though the exact
  217. amount is not specified).
  218. Therefore, the first few samples produced by the decoder do not correspond to
  219. real input audio, but are instead composed of padding inserted by the encoder
  220. to compensate for this latency.
  221. These samples need to be stored and decoded, as Opus is an asymptotically
  222. convergent predictive codec, meaning the decoded contents of each frame depend
  223. on the recent history of decoder inputs.
  224. However, a decoder will want to skip these samples after decoding them.
  225. </t>
  226. <t>
  227. A 'pre-skip' field in the ID header (see <xref target="id_header"/>) signals
  228. the number of samples which should be skipped at the beginning of the stream.
  229. This provides sufficient history to the decoder so that it has already
  230. converged before the stream's output begins.
  231. It may also be used to perform sample-accurate cropping of existing encoded
  232. streams.
  233. This amount need not be a multiple of 2.5&nbsp;ms, may be smaller than a single
  234. packet, or may span the contents of several packets.
  235. </t>
  236. <t>
  237. The PCM sample position is determined from the granule position using the
  238. formula
  239. <figure align="center">
  240. <artwork align="center"><![CDATA[
  241. 'PCM sample position' = 'granule position' - 'pre-skip' .
  242. ]]></artwork>
  243. </figure>
  244. </t>
  245. <t>
  246. For example, if the granule position of the first audio data page is 59,971,
  247. and the pre-skip is 11,971, then the PCM sample position of the last decoded
  248. sample from that page is 48,000.
  249. This can be converted into a playback time using the formula
  250. <figure align="center">
  251. <artwork align="center"><![CDATA[
  252. 'PCM sample position'
  253. 'playback time' = --------------------- .
  254. 48000.0
  255. ]]></artwork>
  256. </figure>
  257. </t>
  258. <t>
  259. The initial PCM sample position before any samples are played is normally '0'.
  260. In this case, the PCM sample position of the first audio sample to be played
  261. starts at '1', because it marks the time on the clock
  262. <spanx style="emph">after</spanx> that sample has been played, and a stream
  263. that is exactly one second long has a final PCM sample position of '48000',
  264. as in the example here.
  265. </t>
  266. <t>
  267. Vorbis streams use a granule position smaller than the number of audio samples
  268. contained in the first audio data page to indicate that some of those samples
  269. must be trimmed from the output.
  270. However, to do so, Vorbis requires that the first audio data page contains
  271. exactly two packets, in order to allow the decoder to perform PCM position
  272. adjustments before needing to return any PCM data.
  273. Opus uses the pre-skip mechanism for this purpose instead, since the encoder
  274. may introduce more than a single packet's worth of latency, and since very
  275. large packets in streams with a very large number of channels might not fit on
  276. a single page.
  277. </t>
  278. <t>
  279. The page with the 'end of stream' flag set MAY have a granule position that
  280. indicates the page contains less audio data than would normally be returned by
  281. decoding up through the final packet.
  282. This is used to end the stream somewhere other than an even frame boundary.
  283. The granule position of the most recent audio data page with completed packets
  284. is used to make this determination, or '0' is used if there were no previous
  285. audio data pages with a completed packet.
  286. The difference between these granule positions indicates how many samples to
  287. keep after decoding the packets that completed on the final page.
  288. The remaining samples are discarded.
  289. The number of discarded samples SHOULD be no larger than the number decoded
  290. from the last packet.
  291. </t>
  292. <t>
  293. The granule position of the first audio data page with a completed packet MAY
  294. be larger than the number of samples contained in packets that complete on
  295. that page, however it MUST NOT be smaller, unless that page has the 'end of
  296. stream' flag set.
  297. Allowing a granule position larger than the number of samples allows the
  298. beginning of a stream to be cropped or a live stream to be joined without
  299. rewriting the granule position of all the remaining pages.
  300. This means that the PCM sample position just before the first sample to be
  301. played may be larger than '0'.
  302. Synchronization when multiplexing with other logical streams still uses the PCM
  303. sample position relative to '0' to compute sample times.
  304. This does not affect the behavior of pre-skip: exactly 'pre-skip' samples
  305. should be skipped from the beginning of the decoded output, even if the
  306. initial PCM sample position is greater than zero.
  307. </t>
  308. <t>
  309. On the other hand, a granule position that is smaller than the number of
  310. decoded samples prevents a demuxer from working backwards to assign each
  311. packet or each individual sample a valid granule position, since granule
  312. positions must be non-negative.
  313. A decoder MUST reject as invalid any stream where the granule position is
  314. smaller than the number of samples contained in packets that complete on the
  315. first audio data page with a completed packet, unless that page has the 'end
  316. of stream' flag set.
  317. It MAY defer this action until it decodes the last packet completed on that
  318. page.
  319. If that page has the 'end of stream' flag set, a demuxer can work forwards from
  320. the granule position '0', but MUST reject as invalid any stream where the
  321. granule position is smaller than the 'pre-skip' amount.
  322. This would indicate that more samples should be skipped from the initial
  323. decoded output than exist in the stream.
  324. </t>
  325. </section>
  326. <section anchor="headers" title="Header Packets">
  327. <t>
  328. An Opus stream contains exactly two mandatory header packets.
  329. </t>
  330. <section anchor="id_header" title="Identification Header">
  331. <figure anchor="id_header_packet" title="ID Header Packet" align="center">
  332. <artwork align="center"><![CDATA[
  333. 0 1 2 3
  334. 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
  335. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  336. | 'O' | 'p' | 'u' | 's' |
  337. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  338. | 'H' | 'e' | 'a' | 'd' |
  339. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  340. | Version = 1 | Channel Count | Pre-skip |
  341. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  342. | Input Sample Rate (Hz) |
  343. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  344. | Output Gain (Q7.8 in dB) | Mapping Family| |
  345. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ :
  346. | |
  347. : Optional Channel Mapping Table... :
  348. | |
  349. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  350. ]]></artwork>
  351. </figure>
  352. <t>
  353. The fields in the identification (ID) header have the following meaning:
  354. <list style="numbers">
  355. <t><spanx style="strong">Magic Signature</spanx>:
  356. <vspace blankLines="1"/>
  357. This is an 8-octet (64-bit) field that allows codec identification and is
  358. human-readable.
  359. It contains, in order, the magic numbers:
  360. <list style="empty">
  361. <t>0x4F 'O'</t>
  362. <t>0x70 'p'</t>
  363. <t>0x75 'u'</t>
  364. <t>0x73 's'</t>
  365. <t>0x48 'H'</t>
  366. <t>0x65 'e'</t>
  367. <t>0x61 'a'</t>
  368. <t>0x64 'd'</t>
  369. </list>
  370. Starting with "Op" helps distinguish it from audio data packets, as this is an
  371. invalid TOC sequence.
  372. <vspace blankLines="1"/>
  373. </t>
  374. <t><spanx style="strong">Version</spanx> (8 bits, unsigned):
  375. <vspace blankLines="1"/>
  376. The version number MUST always be '1' for this version of the encapsulation
  377. specification.
  378. Implementations SHOULD treat streams where the upper four bits of the version
  379. number match that of a recognized specification as backwards-compatible with
  380. that specification.
  381. That is, the version number can be split into "major" and "minor" version
  382. sub-fields, with changes to the "minor" sub-field (in the lower four bits)
  383. signaling compatible changes.
  384. For example, a decoder implementing this specification SHOULD accept any stream
  385. with a version number of '15' or less, and SHOULD assume any stream with a
  386. version number '16' or greater is incompatible.
  387. The initial version '1' was chosen to keep implementations from relying on this
  388. octet as a null terminator for the "OpusHead" string.
  389. <vspace blankLines="1"/>
  390. </t>
  391. <t><spanx style="strong">Output Channel Count</spanx> 'C' (8 bits, unsigned):
  392. <vspace blankLines="1"/>
  393. This is the number of output channels.
  394. This might be different than the number of encoded channels, which can change
  395. on a packet-by-packet basis.
  396. This value MUST NOT be zero.
  397. The maximum allowable value depends on the channel mapping family, and might be
  398. as large as 255.
  399. See <xref target="channel_mapping"/> for details.
  400. <vspace blankLines="1"/>
  401. </t>
  402. <t><spanx style="strong">Pre-skip</spanx> (16 bits, unsigned, little
  403. endian):
  404. <vspace blankLines="1"/>
  405. This is the number of samples (at 48&nbsp;kHz) to discard from the decoder
  406. output when starting playback, and also the number to subtract from a page's
  407. granule position to calculate its PCM sample position.
  408. When constructing cropped Ogg Opus streams, a pre-skip of at least
  409. 3,840&nbsp;samples (80&nbsp;ms) is RECOMMENDED to ensure complete convergence.
  410. <vspace blankLines="1"/>
  411. </t>
  412. <t><spanx style="strong">Input Sample Rate</spanx> (32 bits, unsigned, little
  413. endian):
  414. <vspace blankLines="1"/>
  415. This field is <spanx style="emph">not</spanx> the sample rate to use for
  416. playback of the encoded data.
  417. <vspace blankLines="1"/>
  418. Opus has a handful of coding modes, with internal audio bandwidths of 4, 6, 8,
  419. 12, and 20&nbsp;kHz.
  420. Each packet in the stream may have a different audio bandwidth.
  421. Regardless of the audio bandwidth, the reference decoder supports decoding any
  422. stream at a sample rate of 8, 12, 16, 24, or 48&nbsp;kHz.
  423. The original sample rate of the encoder input is not preserved by the lossy
  424. compression.
  425. <vspace blankLines="1"/>
  426. An Ogg Opus player SHOULD select the playback sample rate according to the
  427. following procedure:
  428. <list style="numbers">
  429. <t>If the hardware supports 48&nbsp;kHz playback, decode at 48&nbsp;kHz</t>
  430. <t>Else if the hardware's highest available sample rate is a supported rate,
  431. decode at this sample rate,</t>
  432. <t>Else if the hardware's highest available sample rate is less than
  433. 48&nbsp;kHz, decode at the highest supported rate above this and resample.</t>
  434. <t>Else decode at 48&nbsp;kHz and resample.</t>
  435. </list>
  436. However, the 'Input Sample Rate' field allows the encoder to pass the sample
  437. rate of the original input stream as metadata.
  438. This may be useful when the user requires the output sample rate to match the
  439. input sample rate.
  440. For example, a non-player decoder writing PCM format samples to disk might
  441. choose to resample the output audio back to the original input sample rate to
  442. reduce surprise to the user, who might reasonably expect to get back a file
  443. with the same sample rate as the one they fed to the encoder.
  444. <vspace blankLines="1"/>
  445. A value of zero indicates 'unspecified'.
  446. Encoders SHOULD write the actual input sample rate or zero, but decoder
  447. implementations which do something with this field SHOULD take care to behave
  448. sanely if given crazy values (e.g., do not actually upsample the output to
  449. 10 MHz if requested).
  450. <vspace blankLines="1"/>
  451. </t>
  452. <t><spanx style="strong">Output Gain</spanx> (16 bits, signed, little
  453. endian):
  454. <vspace blankLines="1"/>
  455. This is a gain to be applied by the decoder.
  456. It is 20*log10 of the factor to scale the decoder output by to achieve the
  457. desired playback volume, stored in a 16-bit, signed, two's complement
  458. fixed-point value with 8 fractional bits (i.e., Q7.8).
  459. To apply the gain, a decoder could use
  460. <figure align="center">
  461. <artwork align="center"><![CDATA[
  462. sample *= pow(10, output_gain/(20.0*256)) ,
  463. ]]></artwork>
  464. </figure>
  465. where output_gain is the raw 16-bit value from the header.
  466. <vspace blankLines="1"/>
  467. Virtually all players and media frameworks should apply it by default.
  468. If a player chooses to apply any volume adjustment or gain modification, such
  469. as the R128_TRACK_GAIN (see <xref target="comment_header"/>) or a user-facing
  470. volume knob, the adjustment MUST be applied in addition to this output gain in
  471. order to achieve playback at the desired volume.
  472. <vspace blankLines="1"/>
  473. An encoder SHOULD set this field to zero, and instead apply any gain prior to
  474. encoding, when this is possible and does not conflict with the user's wishes.
  475. The output gain should only be nonzero when the gain is adjusted after
  476. encoding, or when the user wishes to adjust the gain for playback while
  477. preserving the ability to recover the original signal amplitude.
  478. <vspace blankLines="1"/>
  479. Although the output gain has enormous range (+/- 128 dB, enough to amplify
  480. inaudible sounds to the threshold of physical pain), most applications can
  481. only reasonably use a small portion of this range around zero.
  482. The large range serves in part to ensure that gain can always be losslessly
  483. transferred between OpusHead and R128_TRACK_GAIN (see below) without
  484. saturating.
  485. <vspace blankLines="1"/>
  486. </t>
  487. <t><spanx style="strong">Channel Mapping Family</spanx> (8 bits,
  488. unsigned):
  489. <vspace blankLines="1"/>
  490. This octet indicates the order and semantic meaning of the various channels
  491. encoded in each Ogg packet.
  492. <vspace blankLines="1"/>
  493. Each possible value of this octet indicates a mapping family, which defines a
  494. set of allowed channel counts, and the ordered set of channel names for each
  495. allowed channel count.
  496. The details are described in <xref target="channel_mapping"/>.
  497. </t>
  498. </list>
  499. </t>
  500. <section anchor="channel_mapping" title="Channel Mapping">
  501. <t>
  502. An Ogg Opus stream allows mapping one number of Opus streams (N) to a possibly
  503. larger number of decoded channels (M+N) to yet another number of output
  504. channels (C), which might be larger or smaller than the number of decoded
  505. channels.
  506. The order and meaning these channels is defined by a channel mapping, which
  507. consists of the 'channel mapping family' octet and, for channel mapping
  508. families other than family&nbsp;0, a channel mapping table, as illustrated in
  509. <xref target="channel_mapping_table"/>.
  510. </t>
  511. <figure anchor="channel_mapping_table" title="Channel Mapping Table"
  512. align="center">
  513. <artwork align="center"><![CDATA[
  514. 0 1 2 3
  515. 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
  516. +-+-+-+-+-+-+-+-+
  517. | Stream Count |
  518. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  519. | Coupled Count | Channel Mapping... :
  520. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  521. ]]></artwork>
  522. </figure>
  523. <t>
  524. The fields in the channel mapping table have the following meaning:
  525. <list style="numbers" counter="8">
  526. <t><spanx style="strong">Stream Count</spanx> 'N' (8 bits, unsigned):
  527. <vspace blankLines="1"/>
  528. This is the total number of streams encoded in each Ogg packet.
  529. This value is required to correctly parse the packed Opus packets inside an
  530. Ogg packet, as described in <xref target="packet_organization"/>.
  531. This value MUST NOT be zero, as without at least one Opus packet with a valid
  532. TOC sequence, a demuxer cannot recover the duration of an Ogg packet.
  533. <vspace blankLines="1"/>
  534. For channel mapping family&nbsp;0, this value defaults to 1, and is not coded.
  535. <vspace blankLines="1"/>
  536. </t>
  537. <t><spanx style="strong">Coupled Stream Count</spanx> 'M' (8 bits, unsigned):
  538. This is the number of streams whose decoders should be configured to produce
  539. two channels.
  540. This MUST be no larger than the total number of streams, N.
  541. <vspace blankLines="1"/>
  542. Each packet in an Opus stream has an internal channel count of 1 or 2, which
  543. can change from packet to packet.
  544. This is selected by the encoder depending on the bitrate and the contents being
  545. encoded.
  546. The original channel count of the encoder input is not preserved by the lossy
  547. compression.
  548. <vspace blankLines="1"/>
  549. Regardless of the internal channel count, any Opus stream can be decoded as
  550. mono (a single channel) or stereo (two channels) by appropriate initialization
  551. of the decoder.
  552. The 'coupled stream count' field indicates that the first M Opus decoders are
  553. to be initialized in stereo mode, and the remaining N-M decoders are to be
  554. initialized in mono mode.
  555. The total number of decoded channels, (M+N), MUST be no larger than 255, as
  556. there is no way to index more channels than that in the channel mapping.
  557. <vspace blankLines="1"/>
  558. For channel mapping family&nbsp;0, this value defaults to C-1 (i.e., 0 for mono
  559. and 1 for stereo), and is not coded.
  560. <vspace blankLines="1"/>
  561. </t>
  562. <t><spanx style="strong">Channel Mapping</spanx> (8*C bits):
  563. This contains one octet per output channel, indicating which decoded channel
  564. should be used for each one.
  565. Let 'index' be the value of this octet for a particular output channel.
  566. This value MUST either be smaller than (M+N), or be the special value 255.
  567. If 'index' is less than 2*M, the output MUST be taken from decoding stream
  568. ('index'/2) as stereo and selecting the left channel if 'index' is even, and
  569. the right channel if 'index' is odd.
  570. If 'index' is 2*M or larger, the output MUST be taken from decoding stream
  571. ('index'-M) as mono.
  572. If 'index' is 255, the corresponding output channel MUST contain pure silence.
  573. <vspace blankLines="1"/>
  574. The number of output channels, C, is not constrained to match the number of
  575. decoded channels (M+N).
  576. A single index value MAY appear multiple times, i.e., the same decoded channel
  577. might be mapped to multiple output channels.
  578. Some decoded channels might not be assigned to any output channel, as well.
  579. <vspace blankLines="1"/>
  580. For channel mapping family&nbsp;0, the first index defaults to 0, and if C==2,
  581. the second index defaults to 1.
  582. Neither index is coded.
  583. </t>
  584. </list>
  585. </t>
  586. <t>
  587. After producing the output channels, the channel mapping family determines the
  588. semantic meaning of each one.
  589. Currently there are three defined mapping families, although more may be added:
  590. <list style="symbols">
  591. <t>Family&nbsp;0 (RTP mapping):
  592. <vspace blankLines="1"/>
  593. Allowed numbers of channels: 1 or 2.
  594. <list style="symbols">
  595. <t>1 channel: monophonic (mono).</t>
  596. <t>2 channels: stereo (left, right).</t>
  597. </list>
  598. <spanx style="strong">Special mapping</spanx>: This channel mapping value also
  599. indicates that the contents consists of a single Opus stream that is stereo if
  600. and only if C==2, with stream index 0 mapped to channel 0, and (if stereo)
  601. stream index 1 mapped to channel 1.
  602. When the 'channel mapping family' octet has this value, the channel mapping
  603. table MUST be omitted from the ID header packet.
  604. <vspace blankLines="1"/>
  605. </t>
  606. <t>Family&nbsp;1 (Vorbis channel order):
  607. <vspace blankLines="1"/>
  608. Allowed numbers of channels: 1...8.<vspace/>
  609. Channel meanings depend on the number of channels.
  610. See <xref target="vorbis-mapping">the
  611. Vorbis mapping</xref> for the assignments from output channel number to
  612. specific speaker locations.
  613. <vspace blankLines="1"/>
  614. </t>
  615. <t>Family&nbsp;255 (no defined channel meaning):
  616. <vspace blankLines="1"/>
  617. Allowed numbers of channels: 1...255.<vspace/>
  618. Channels are unidentified.
  619. General-purpose players SHOULD NOT attempt to play these streams, and offline
  620. decoders MAY deinterleave the output into separate PCM files, one per channel.
  621. Decoders SHOULD NOT produce output for channels mapped to stream index 255
  622. (pure silence) unless they have no other way to indicate the index of
  623. non-silent channels.
  624. </t>
  625. </list>
  626. The remaining channel mapping families (2...254) are reserved.
  627. A decoder encountering a reserved channel mapping family value should act as
  628. though the value is 255.
  629. <vspace blankLines="1"/>
  630. An Ogg Opus player MUST play any Ogg Opus stream with a channel mapping family
  631. of 0 or 1, even if the number of channels does not match the physically
  632. connected audio hardware.
  633. Players SHOULD perform channel mixing to increase or reduce the number of
  634. channels as needed.
  635. </t>
  636. </section>
  637. </section>
  638. <section anchor="comment_header" title="Comment Header">
  639. <figure anchor="comment_header_packet" title="Comment Header Packet"
  640. align="center">
  641. <artwork align="center"><![CDATA[
  642. 0 1 2 3
  643. 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
  644. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  645. | 'O' | 'p' | 'u' | 's' |
  646. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  647. | 'T' | 'a' | 'g' | 's' |
  648. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  649. | Vendor String Length |
  650. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  651. | |
  652. : Vendor String... :
  653. | |
  654. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  655. | User Comment List Length |
  656. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  657. | User Comment #0 String Length |
  658. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  659. | |
  660. : User Comment #0 String... :
  661. | |
  662. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  663. | User Comment #1 String Length |
  664. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  665. : :
  666. ]]></artwork>
  667. </figure>
  668. <t>
  669. The comment header consists of a 64-bit magic signature, followed by data in
  670. the same format as the <xref target="vorbis-comment"/> header used in Ogg
  671. Vorbis (without the final "framing bit"), Ogg Theora, and Speex.
  672. <list style="numbers">
  673. <t><spanx style="strong">Magic Signature</spanx>:
  674. <vspace blankLines="1"/>
  675. This is an 8-octet (64-bit) field that allows codec identification and is
  676. human-readable.
  677. It contains, in order, the magic numbers:
  678. <list style="empty">
  679. <t>0x4F 'O'</t>
  680. <t>0x70 'p'</t>
  681. <t>0x75 'u'</t>
  682. <t>0x73 's'</t>
  683. <t>0x54 'T'</t>
  684. <t>0x61 'a'</t>
  685. <t>0x67 'g'</t>
  686. <t>0x73 's'</t>
  687. </list>
  688. Starting with "Op" helps distinguish it from audio data packets, as this is an
  689. invalid TOC sequence.
  690. <vspace blankLines="1"/>
  691. </t>
  692. <t><spanx style="strong">Vendor String Length</spanx> (32 bits, unsigned,
  693. little endian):
  694. <vspace blankLines="1"/>
  695. This field gives the length of the following vendor string, in octets.
  696. It MUST NOT indicate that the vendor string is longer than the rest of the
  697. packet.
  698. <vspace blankLines="1"/>
  699. </t>
  700. <t><spanx style="strong">Vendor String</spanx> (variable length, UTF-8 vector):
  701. <vspace blankLines="1"/>
  702. This is a simple human-readable tag for vendor information, encoded as a UTF-8
  703. string.
  704. No terminating NUL octet is required.
  705. <vspace blankLines="1"/>
  706. </t>
  707. <t><spanx style="strong">User Comment List Length</spanx> (32 bits, unsigned,
  708. little endian):
  709. <vspace blankLines="1"/>
  710. This field indicates the number of user-supplied comments.
  711. It MAY indicate there are zero user-supplied comments, in which case there are
  712. no additional fields in the packet.
  713. It MUST NOT indicate that there are so many comments that the comment string
  714. lengths would require more data than is available in the rest of the packet.
  715. <vspace blankLines="1"/>
  716. </t>
  717. <t><spanx style="strong">User Comment #i String Length</spanx> (32 bits,
  718. unsigned, little endian):
  719. <vspace blankLines="1"/>
  720. This field gives the length of the following user comment string, in octets.
  721. There is one for each user comment indicated by the 'user comment list length'
  722. field.
  723. It MUST NOT indicate that the string is longer than the rest of the packet.
  724. <vspace blankLines="1"/>
  725. </t>
  726. <t><spanx style="strong">User Comment #i String</spanx> (variable length, UTF-8
  727. vector):
  728. <vspace blankLines="1"/>
  729. This field contains a single user comment string.
  730. There is one for each user comment indicated by the 'user comment list length'
  731. field.
  732. </t>
  733. </list>
  734. </t>
  735. <t>
  736. The user comment strings follow the NAME=value format described by
  737. <xref target="vorbis-comment"/> with the same recommended tag names.
  738. One new comment tag is introduced for Ogg Opus:
  739. <figure align="center">
  740. <artwork align="left"><![CDATA[
  741. R128_TRACK_GAIN=-573
  742. ]]></artwork>
  743. </figure>
  744. representing the volume shift needed to normalize the track's volume.
  745. The gain is a Q7.8 fixed point number in dB, as in the ID header's 'output
  746. gain' field.
  747. This tag is similar to the REPLAYGAIN_TRACK_GAIN tag in
  748. Vorbis&nbsp;<xref target="replay-gain"/>, except that the normal volume
  749. reference is the <xref target="EBU-R128"/> standard.
  750. </t>
  751. <t>
  752. An Ogg Opus file MUST NOT have more than one such tag, and if present its
  753. value MUST be an integer from -32768 to 32767, inclusive, represented in
  754. ASCII with no whitespace.
  755. If present, it MUST correctly represent the R128 normalization gain relative
  756. to the 'output gain' field specified in the ID header.
  757. If a player chooses to make use of the R128_TRACK_GAIN tag, it MUST be
  758. applied <spanx style="emph">in addition</spanx> to the 'output gain' value.
  759. If an encoder wishes to use R128 normalization, and the output gain is not
  760. otherwise constrained or specified, the encoder SHOULD write the R128 gain
  761. into the 'output gain' field and store a tag containing "R128_TRACK_GAIN=0".
  762. That is, it should assume that by default tools will respect the 'output gain'
  763. field, and not the comment tag.
  764. If a tool modifies the ID header's 'output gain' field, it MUST also update or
  765. remove the R128_TRACK_GAIN comment tag.
  766. </t>
  767. <t>
  768. To avoid confusion with multiple normalization schemes, an Opus comment header
  769. SHOULD NOT contain any of the REPLAYGAIN_TRACK_GAIN, REPLAYGAIN_TRACK_PEAK,
  770. REPLAYGAIN_ALBUM_GAIN, or REPLAYGAIN_ALBUM_PEAK tags.
  771. </t>
  772. <t>
  773. There is no Opus comment tag corresponding to REPLAYGAIN_ALBUM_GAIN.
  774. That information should instead be stored in the ID header's 'output gain'
  775. field.
  776. </t>
  777. </section>
  778. </section>
  779. <section anchor="other_implementation_notes"
  780. title="Other Implementation Notes">
  781. <t>
  782. When seeking within an Ogg Opus stream, the decoder should start decoding (and
  783. discarding the output) at least 3840&nbsp;samples (80&nbsp;ms) prior to the
  784. seek point in order to ensure that the output audio is correct at the seek
  785. point.
  786. </t>
  787. <t>
  788. Technically valid Opus packets can be arbitrarily large due to the padding
  789. format, although the amount of non-padding data they can contain is bounded.
  790. These packets might be spread over a similarly enormous number of Ogg pages.
  791. Encoders SHOULD use no more padding than required to make a variable bitrate
  792. (VBR) stream constant bitrate (CBR).
  793. Decoders SHOULD avoid attempting to allocate excessive amounts of memory when
  794. presented with a very large packet.
  795. The presence of an extremely large packet in the stream could indicate a
  796. potential memory exhaustion attack or stream corruption.
  797. Decoders SHOULD reject a packet that is too large to process, and display a
  798. warning message.
  799. </t>
  800. <t>
  801. In an Ogg Opus stream, the largest possible valid packet that does not use
  802. padding has a size of (61,298*N&nbsp;-&nbsp;2) octets, or about 60&nbsp;kB per
  803. Opus stream.
  804. With 255&nbsp;streams, this is 15,630,988&nbsp;octets (14.9&nbsp;MB) and can
  805. span up to 61,298&nbsp;Ogg pages, all but one of which will have a granule
  806. position of -1.
  807. This is of course a very extreme packet, consisting of 255&nbsp;streams, each
  808. containing 120&nbsp;ms of audio encoded as 2.5&nbsp;ms frames, each frame
  809. using the maximum possible number of octets (1275) and stored in the least
  810. efficient manner allowed (a VBR code&nbsp;3 Opus packet).
  811. Even in such a packet, most of the data will be zeros, as 2.5&nbsp;ms frames,
  812. which are required to run in the MDCT mode, cannot actually use all
  813. 1275&nbsp;octets.
  814. The largest packet consisting of entirely useful data is
  815. (15,326*N&nbsp;-&nbsp;2) octets, or about 15&nbsp;kB per stream.
  816. This corresponds to 120&nbsp;ms of audio encoded as 10&nbsp;ms frames in either
  817. LP or Hybrid mode, but at a data rate of over 1&nbsp;Mbps, which makes little
  818. sense for the quality achieved.
  819. A more reasonable limit is (7,664*N&nbsp;-&nbsp;2) octets, or about 7.5&nbsp;kB
  820. per stream.
  821. This corresponds to 120&nbsp;ms of audio encoded as 20&nbsp;ms stereo MDCT-mode
  822. frames, with a total bitrate just under 511&nbsp;kbps (not counting the Ogg
  823. encapsulation overhead).
  824. With N=8, the maximum number of streams currently defined by mapping
  825. family&nbsp;1, this gives a maximum packet size of 61,310&nbsp;octets, or just
  826. under 60&nbsp;kB.
  827. This is still quite conservative, as it assumes each output channel is taken
  828. from one decoded channel of a stereo packet.
  829. An implementation could reasonably choose any of these numbers for its internal
  830. limits.
  831. </t>
  832. </section>
  833. <section anchor="security" title="Security Considerations">
  834. <t>
  835. Implementations of the Opus codec need to take appropriate security
  836. considerations into account, as outlined in <xref target="RFC4732"/>.
  837. This is just as much a problem for the container as it is for the codec itself.
  838. It is extremely important for the decoder to be robust against malicious
  839. payloads.
  840. Malicious payloads must not cause the decoder to overrun its allocated memory
  841. or to take an excessive amount of resources to decode.
  842. Although problems in encoders are typically rarer, the same applies to the
  843. encoder.
  844. Malicious audio streams must not cause the encoder to misbehave because this
  845. would allow an attacker to attack transcoding gateways.
  846. </t>
  847. <t>
  848. Like most other container formats, Ogg Opus files should not be used with
  849. insecure ciphers or cipher modes that are vulnerable to known-plaintext
  850. attacks.
  851. Elements such as the Ogg page capture pattern and the magic signatures in the
  852. ID header and the comment header all have easily predictable values, in
  853. addition to various elements of the codec data itself.
  854. </t>
  855. </section>
  856. <section anchor="content_type" title="Content Type">
  857. <t>
  858. An "Ogg Opus file" consists of one or more sequentially multiplexed segments,
  859. each containing exactly one Ogg Opus stream.
  860. The RECOMMENDED mime-type for Ogg Opus files is "audio/ogg".
  861. When Opus is concurrently multiplexed with other streams in an Ogg container,
  862. one SHOULD use one of the "audio/ogg", "video/ogg", or "application/ogg"
  863. mime-types, as defined in <xref target="RFC5334"/>.
  864. </t>
  865. <t>
  866. If more specificity is desired, one MAY indicate the presence of Opus streams
  867. using the codecs parameter defined in <xref target="RFC6381"/>, e.g.,
  868. <figure align="center">
  869. <artwork align="left"><![CDATA[
  870. audio/ogg; codecs=opus
  871. ]]></artwork>
  872. </figure>
  873. for an Ogg Opus file.
  874. </t>
  875. <t>
  876. The RECOMMENDED filename extension for Ogg Opus files is '.opus'.
  877. </t>
  878. </section>
  879. <section title="IANA Considerations">
  880. <t>
  881. This document has no actions for IANA.
  882. </t>
  883. </section>
  884. <section anchor="Acknowledgments" title="Acknowledgments">
  885. <t>
  886. Thanks to Ralph Giles, Greg Maxwell, Christopher "Monty" Montgomery, and
  887. Jean-Marc Valin for their valuable contributions to this document.
  888. Additional thanks to Andrew D'Addesio, Ralph Giles, Greg Maxwell, and
  889. Vincent Penqeurc'h for their feedback based on early implementations.
  890. </t>
  891. </section>
  892. <section title="Copying Conditions">
  893. <t>
  894. The authors agree to grant third parties the irrevocable right to copy, use,
  895. and distribute the work, with or without modification, in any medium, without
  896. royalty, provided that, unless separate permission is granted, redistributed
  897. modified works do not contain misleading author, version, name of work, or
  898. endorsement information.
  899. </t>
  900. </section>
  901. </middle>
  902. <back>
  903. <references title="Normative References">
  904. <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml"?>
  905. <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.3533.xml"?>
  906. <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.5334.xml"?>
  907. <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.6381.xml"?>
  908. <reference anchor="RFCOpus">
  909. <front>
  910. <title>Definition of the Opus Audio Codec</title>
  911. <author initials="JM" surname="Valin" fullname="Jean-Marc Valin"/>
  912. <author initials="K." surname="Vos" fullname="Koen Vos"/>
  913. <author initials="T.B." surname="Terriberry" fullname="Timothy B. Terriberry"/>
  914. </front>
  915. <seriesInfo name="RFC" value="XXXX"/>
  916. </reference>
  917. <reference anchor="vorbis-mapping"
  918. target="http://www.xiph.org/vorbis/doc/Vorbis_I_spec.html#x1-800004.3.9">
  919. <front>
  920. <title>The Vorbis I Specification, Section 4.3.9 Output Channel Order</title>
  921. <author initials="C." surname="Montgomery"
  922. fullname="Christopher &quot;Monty&quot; Montgomery"/>
  923. </front>
  924. </reference>
  925. <reference anchor="vorbis-comment"
  926. target="http://www.xiph.org/vorbis/doc/v-comment.html">
  927. <front>
  928. <title>Ogg Vorbis I Format Specification: Comment Field and Header
  929. Specification</title>
  930. <author initials="C." surname="Montgomery"
  931. fullname="Christopher &quot;Monty&quot; Montgomery"/>
  932. </front>
  933. </reference>
  934. <reference anchor="EBU-R128" target="http://tech.ebu.ch/loudness">
  935. <front>
  936. <title>"Loudness Recommendation EBU R128</title>
  937. <author fullname="EBU Technical Committee"/>
  938. </front>
  939. </reference>
  940. </references>
  941. <references title="Informative References">
  942. <!--?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.3550.xml"?-->
  943. <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.4732.xml"?>
  944. <reference anchor="replay-gain"
  945. target="http://wiki.xiph.org/VorbisComment#Replay_Gain">
  946. <front>
  947. <title>VorbisComment: Replay Gain</title>
  948. <author initials="C." surname="Parker" fullname="Conrad Parker"/>
  949. <author initials="M." surname="Leese" fullname="Martin Leese"/>
  950. </front>
  951. </reference>
  952. </references>
  953. </back>
  954. </rfc>