Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Opus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
Opus
Commits
3b1928ce
Commit
3b1928ce
authored
10 years ago
by
Jean-Marc Valin
Browse files
Options
Downloads
Patches
Plain Diff
RTP draft: addressing comments from Martin Thompson
parent
aad28187
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/draft-ietf-payload-rtp-opus.xml
+40
-106
40 additions, 106 deletions
doc/draft-ietf-payload-rtp-opus.xml
with
40 additions
and
106 deletions
doc/draft-ietf-payload-rtp-opus.xml
+
40
−
106
View file @
3b1928ce
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<!ENTITY nbsp " ">
<!ENTITY nbsp " ">
]>
]>
<rfc
category=
"std"
ipr=
"trust200902"
docName=
"draft-ietf-payload-rtp-opus-0
4
"
>
<rfc
category=
"std"
ipr=
"trust200902"
docName=
"draft-ietf-payload-rtp-opus-0
5
"
>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc strict="yes" ?>
<?rfc strict="yes" ?>
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
</address>
</address>
</author>
</author>
<date
day=
'
13
'
month=
'
Nov
ember'
year=
'2014'
/>
<date
day=
'
7
'
month=
'
Dec
ember'
year=
'2014'
/>
<abstract>
<abstract>
<t>
<t>
...
@@ -112,6 +112,7 @@
...
@@ -112,6 +112,7 @@
document are to be interpreted as described in
<xref
target=
"RFC2119"
/>
.
</t>
document are to be interpreted as described in
<xref
target=
"RFC2119"
/>
.
</t>
<t>
<t>
<list
style=
'hanging'
>
<list
style=
'hanging'
>
<t
hangText=
"audio bandwidth:"
>
The range of audio frequecies being coded
</t>
<t
hangText=
"CBR:"
>
Constant bitrate
</t>
<t
hangText=
"CBR:"
>
Constant bitrate
</t>
<t
hangText=
"CPU:"
>
Central Processing Unit
</t>
<t
hangText=
"CPU:"
>
Central Processing Unit
</t>
<t
hangText=
"DTX:"
>
Discontinuous transmission
</t>
<t
hangText=
"DTX:"
>
Discontinuous transmission
</t>
...
@@ -122,7 +123,6 @@
...
@@ -122,7 +123,6 @@
<t
hangText=
"VBR:"
>
Variable bitrate
</t>
<t
hangText=
"VBR:"
>
Variable bitrate
</t>
</list>
</list>
</t>
</t>
<section
title=
'Audio Bandwidth'
>
<t>
<t>
Throughout this document, we refer to the following definitions:
Throughout this document, we refer to the following definitions:
</t>
</t>
...
@@ -160,7 +160,6 @@
...
@@ -160,7 +160,6 @@
Audio bandwidth naming
Audio bandwidth naming
</postamble>
</postamble>
</texttable>
</texttable>
</section>
</section>
</section>
<section
title=
'Opus Codec'
>
<section
title=
'Opus Codec'
>
...
@@ -186,7 +185,7 @@
...
@@ -186,7 +185,7 @@
<section
title=
'Network Bandwidth'
>
<section
title=
'Network Bandwidth'
>
<t>
<t>
Opus supports
all
bitrates from 6
kb/s to 510
kb/s.
Opus supports bitrates from 6
kb/s to 510
kb/s.
The bitrate can be changed dynamically within that range.
The bitrate can be changed dynamically within that range.
All
All
other parameters being
other parameters being
...
@@ -281,7 +280,7 @@
...
@@ -281,7 +280,7 @@
<section
title=
'Complexity'
>
<section
title=
'Complexity'
>
<t>
<t>
Complexity can be scaled to optimize for CPU resources in real-time, mostly as
Complexity
of the encoder
can be scaled to optimize for CPU resources in real-time, mostly as
a trade-off between audio quality and bitrate. Also, different modes of Opus have different complexity.
a trade-off between audio quality and bitrate. Also, different modes of Opus have different complexity.
</t>
</t>
...
@@ -308,15 +307,16 @@
...
@@ -308,15 +307,16 @@
On the receiving side, the decoder can take advantage of this
On the receiving side, the decoder can take advantage of this
additional information when it loses a packet and the next packet
additional information when it loses a packet and the next packet
is available. In order to use the FEC data, the jitter buffer needs
is available. In order to use the FEC data, the jitter buffer needs
to provide access to payloads with the FEC data. The receiver can
to provide access to payloads with the FEC data.
then configure its decoder to decode the FEC data from the packet
Instead of performing loss concealment for a missing packet, the
rather than the regular audio data.
receiver can then configure its decoder to decode the FEC data from the next packet.
If no FEC data is available for the current frame, the decoder
will consider the frame lost and invoke frame loss concealment.
</t>
</t>
<t>
<t>
If the FEC scheme is not implemented on the receiving side, FEC
Any compliant Opus decoder is capable of ignoring
FEC information when it is not needed, so encoding with FEC cannot cause
interoperability problems.
However, if FEC cannot be used on the receiving side, then FEC
SHOULD NOT be used, as it leads to an inefficient usage of network
SHOULD NOT be used, as it leads to an inefficient usage of network
resources. Decoder support for FEC SHOULD be indicated at the time a
resources. Decoder support for FEC SHOULD be indicated at the time a
session is set up.
session is set up.
...
@@ -329,12 +329,13 @@
...
@@ -329,12 +329,13 @@
<t>
<t>
Opus allows for transmission of stereo audio signals. This operation
Opus allows for transmission of stereo audio signals. This operation
is signaled in-band in the Opus payload and no special arrangement
is signaled in-band in the Opus payload and no special arrangement
is needed in the payload format. Any implementation of the Opus
is needed in the payload format. An
decoder MUST be capable of receiving stereo signals, although it MAY
Opus decoder is capable of handling a stereo encoding, but an
decode those signals as mono.
application might only be capable of consuming a single audio
channel.
</t>
</t>
<t>
<t>
If a decoder can
not take advantage of the benefits of a stereo signal
If a decoder cannot take advantage of the benefits of a stereo signal
this SHOULD be indicated at the time a session is set up. In that case
this SHOULD be indicated at the time a session is set up. In that case
the sending side SHOULD NOT send stereo signals as it leads to an
the sending side SHOULD NOT send stereo signals as it leads to an
inefficient usage of network resources.
inefficient usage of network resources.
...
@@ -354,14 +355,14 @@
...
@@ -354,14 +355,14 @@
<t>
The payload length of Opus is an integer number of octets and
<t>
The payload length of Opus is an integer number of octets and
therefore no padding is necessary. The payload MAY be padded by an
therefore no padding is necessary. The payload MAY be padded by an
integer number of octets according to
<xref
target=
"RFC3550"
/>
.
</t>
integer number of octets according to
<xref
target=
"RFC3550"
/>
,
although the Opus internal padding is preferred.
</t>
<t>
The timestamp, sequence number, and marker bit (M) of the RTP header
<t>
The timestamp, sequence number, and marker bit (M) of the RTP header
are used in accordance with Section 4.1
are used in accordance with Section 4.1
of
<xref
target=
"RFC3551"
/>
.
</t>
of
<xref
target=
"RFC3551"
/>
.
</t>
<t>
The RTP payload type for Opus has not been assigned statically and is
<t>
The RTP payload type for Opus is to be assigned dynamically.
</t>
expected to be assigned dynamically.
</t>
<t>
The receiving side MUST be prepared to receive duplicate RTP
<t>
The receiving side MUST be prepared to receive duplicate RTP
packets. The receiver MUST provide at most one of those payloads to the
packets. The receiver MUST provide at most one of those payloads to the
...
@@ -375,23 +376,8 @@
...
@@ -375,23 +376,8 @@
for the timestamp is samples per single (mono) channel. The RTP timestamp corresponds to the
for the timestamp is samples per single (mono) channel. The RTP timestamp corresponds to the
sample time of the first encoded sample in the encoded frame.
sample time of the first encoded sample in the encoded frame.
For data encoded with sampling rates other than 48000 Hz,
For data encoded with sampling rates other than 48000 Hz,
the sampling rate has to be adjusted to 48000 Hz using the
the sampling rate has to be adjusted to 48000 Hz.
</t>
corresponding multiplier in
<xref
target=
"fs-upsample-factors"
/>
.
</t>
<texttable
anchor=
'fs-upsample-factors'
title=
"Timestamp multiplier"
>
<ttcol
align=
'center'
>
Sampling Rate (Hz)
</ttcol>
<ttcol
align=
'center'
>
Multiplier
</ttcol>
<c>
8000
</c>
<c>
6
</c>
<c>
12000
</c>
<c>
4
</c>
<c>
16000
</c>
<c>
3
</c>
<c>
24000
</c>
<c>
2
</c>
<c>
48000
</c>
<c>
1
</c>
</texttable>
</section>
</section>
<section
title=
'Payload Structure'
>
<section
title=
'Payload Structure'
>
...
@@ -408,7 +394,7 @@
...
@@ -408,7 +394,7 @@
<t><xref
target=
'payload-structure'
/>
shows the structure combined with the RTP header.
</t>
<t><xref
target=
'payload-structure'
/>
shows the structure combined with the RTP header.
</t>
<figure
anchor=
"payload-structure"
<figure
anchor=
"payload-structure"
title=
"Pa
yload S
tructure with RTP header"
>
title=
"Pa
cket s
tructure with RTP header"
>
<artwork
align=
"center"
>
<artwork
align=
"center"
>
<![CDATA[
<![CDATA[
+----------+--------------+
+----------+--------------+
...
@@ -499,8 +485,7 @@
...
@@ -499,8 +485,7 @@
<t
hangText=
"rate:"
>
the RTP timestamp is incremented with a
<t
hangText=
"rate:"
>
the RTP timestamp is incremented with a
48000 Hz clock rate for all modes of Opus and all sampling
48000 Hz clock rate for all modes of Opus and all sampling
rates. For data encoded with sampling rates other than 48000 Hz,
rates. For data encoded with sampling rates other than 48000 Hz,
the sampling rate has to be adjusted to 48000 Hz using the
the sampling rate has to be adjusted to 48000 Hz.
corresponding multiplier in
<xref
target=
"fs-upsample-factors"
/>
.
</t>
</t>
</list></t>
</list></t>
...
@@ -545,11 +530,7 @@
...
@@ -545,11 +530,7 @@
multiple of an Opus frame size rounded up to the next full integer
multiple of an Opus frame size rounded up to the next full integer
value, up to a maximum value of 120, as
value, up to a maximum value of 120, as
defined in
<xref
target=
'opus-rtp-payload-format'
/>
. If no value is
defined in
<xref
target=
'opus-rtp-payload-format'
/>
. If no value is
specified, the default is 120. This value is a recommendation
specified, the default is 120.
by the decoding side to ensure the best
performance for the decoder. The decoder MUST be
capable of accepting any allowed packet sizes to
ensure maximum compatibility.
<vspace
blankLines=
'1'
/></t>
<vspace
blankLines=
'1'
/></t>
<t
hangText=
"ptime:"
>
the preferred duration of media represented
<t
hangText=
"ptime:"
>
the preferred duration of media represented
...
@@ -560,41 +541,9 @@
...
@@ -560,41 +541,9 @@
multiple of an Opus frame size rounded up to the next full integer
multiple of an Opus frame size rounded up to the next full integer
value, up to a maximum value of 120, as defined in
<xref
value, up to a maximum value of 120, as defined in
<xref
target=
'opus-rtp-payload-format'
/>
. If no value is
target=
'opus-rtp-payload-format'
/>
. If no value is
specified, the default is 20. If ptime is greater than
specified, the default is 20.
maxptime, ptime MUST be ignored. This parameter MAY be changed
during a session. This value is a recommendation by the decoding
side to ensure the best
performance for the decoder. The decoder MUST be
capable of accepting any allowed packet sizes to
ensure maximum compatibility.
<vspace
blankLines=
'1'
/></t>
<t
hangText=
"minptime:"
>
the minimum duration of media represented
by a packet (according to Section
6 of
<xref
target=
"RFC4566"
/>
) that SHOULD be encapsulated in a received
packet, in milliseconds rounded up to the next full integer value.
Possible values are 3, 5, 10, 20, 40, and 60
or an arbitrary multiple of Opus frame sizes rounded up to the next
full integer value up to a maximum value of 120
as defined in
<xref
target=
'opus-rtp-payload-format'
/>
. If no value is
specified, the default is 3. This value is a recommendation
by the decoding side to ensure the best
performance for the decoder. The decoder MUST be
capable to accept any allowed packet sizes to
ensure maximum compatibility.
<vspace
blankLines=
'1'
/></t>
<vspace
blankLines=
'1'
/></t>
<t
hangText=
"maxaveragebitrate:"
>
specifies the maximum average
receive bitrate of a session in bits per second (b/s). The actual
value of the bitrate can vary, as it is dependent on the
characteristics of the media in a packet. Note that the maximum
average bitrate MAY be modified dynamically during a session. Any
positive integer is allowed, but values outside the range
6000 to 510000 SHOULD be ignored. If no value is specified, the
maximum value specified in
<xref
target=
'bitrate_by_bandwidth'
/>
for the corresponding mode of Opus and corresponding maxplaybackrate
is the default.
<vspace
blankLines=
'1'
/></t>
<t
hangText=
"stereo:"
>
<t
hangText=
"stereo:"
>
specifies whether the decoder prefers receiving stereo or mono signals.
specifies whether the decoder prefers receiving stereo or mono signals.
Possible values are 1 and 0 where 1 specifies that stereo signals are preferred,
Possible values are 1 and 0 where 1 specifies that stereo signals are preferred,
...
@@ -708,12 +657,12 @@
...
@@ -708,12 +657,12 @@
mapped to "a=ptime" and "a=maxptime" attributes, respectively, in the
mapped to "a=ptime" and "a=maxptime" attributes, respectively, in the
SDP.
</t>
SDP.
</t>
<t>
The OPTIONAL media type parameters
"maxaveragebitrate",
<t>
The OPTIONAL media type parameters
"maxplaybackrate",
"minptime",
"stereo", "cbr", "useinbandfec", and
"maxplaybackrate", "stereo", "cbr", "useinbandfec", and
"usedtx", when present, MUST be included in the "a=fmtp" attribute
"usedtx", when present, MUST be included in the "a=fmtp" attribute
in the SDP, expressed as a media type string in the form of a
in the SDP, expressed as a media type string in the form of a
semicolon-separated list of parameter=value pairs (e.g.,
semicolon-separated list of parameter=value pairs (e.g.,
max
averagebit
rate=
20
000). They MUST NOT be specified in an
max
playback
rate=
48
000). They MUST NOT be specified in an
SSRC-specific "fmtp" source-level attribute (as defined in
SSRC-specific "fmtp" source-level attribute (as defined in
Section
6.3 of
<xref
target=
"RFC5576"
/>
).
</t>
Section
6.3 of
<xref
target=
"RFC5576"
/>
).
</t>
...
@@ -757,7 +706,7 @@
...
@@ -757,7 +706,7 @@
m=audio 54312 RTP/AVP 101
m=audio 54312 RTP/AVP 101
a=rtpmap:101 opus/48000/2
a=rtpmap:101 opus/48000/2
a=fmtp:101 maxplaybackrate=16000; sprop-maxcapturerate=16000;
a=fmtp:101 maxplaybackrate=16000; sprop-maxcapturerate=16000;
maxaveragebitrate=2000
0; stereo=1; useinbandfec=1; usedtx=0
b=AS:2
0; stereo=1; useinbandfec=1; usedtx=0
a=ptime:40
a=ptime:40
a=maxptime:40
a=maxptime:40
]]>
]]>
...
@@ -810,13 +759,6 @@
...
@@ -810,13 +759,6 @@
"ptime" parameter. The "maxptime" parameter MUST be handled in the
"ptime" parameter. The "maxptime" parameter MUST be handled in the
same way.
</t>
same way.
</t>
<t>
The "minptime" parameter is a unidirectional
receive-only parameters and typically will not compromise
interoperability; however, some values might cause application
performance to suffer and ought to be used with care.
</t>
<t>
<t>
The "maxplaybackrate" parameter is a unidirectional receive-only
The "maxplaybackrate" parameter is a unidirectional receive-only
parameter that reflects limitations of the local receiver. When
parameter that reflects limitations of the local receiver. When
...
@@ -833,15 +775,6 @@
...
@@ -833,15 +775,6 @@
is the responsibility of the Opus encoder implementation.
is the responsibility of the Opus encoder implementation.
</t>
</t>
<t>
The "maxaveragebitrate" parameter is a unidirectional receive-only
parameter that reflects limitations of the local receiver. The sender
of the other side MUST NOT send with an average bitrate higher than
"maxaveragebitrate" as it might overload the network and/or
receiver. The "maxaveragebitrate" parameter typically will not
compromise interoperability; however, some values might cause
application performance to suffer, and ought to be set with
care.
</t>
<t>
The "sprop-maxcapturerate" and "sprop-stereo" parameters are
<t>
The "sprop-maxcapturerate" and "sprop-stereo" parameters are
unidirectional sender-only parameters that reflect limitations of
unidirectional sender-only parameters that reflect limitations of
the sender side.
the sender side.
...
@@ -887,16 +820,14 @@
...
@@ -887,16 +820,14 @@
<t><list
style=
"symbols"
>
<t><list
style=
"symbols"
>
<t>
The values for "maxptime", "ptime",
"minptime",
"maxplaybackrate", and
<t>
The values for "maxptime", "ptime", "maxplaybackrate", and
"maxaveragebitrate"
ought to be selected carefully to ensure that a
ought to be selected carefully to ensure that a
reasonable performance can be achieved for the participants of a session.
</t>
reasonable performance can be achieved for the participants of a session.
</t>
<t>
<t>
The values for "maxptime", "ptime", and
"minptime"
of the payload
The values for "maxptime", "ptime", and of the payload
format configuration are recommendations by the decoding side to ensure
format configuration are recommendations by the decoding side to ensure
the best performance for the decoder. The decoder MUST be
the best performance for the decoder.
capable of accepting any allowed packet sizes to
ensure maximum compatibility.
</t>
</t>
<t>
All other parameters of the payload format configuration are declarative
<t>
All other parameters of the payload format configuration are declarative
...
@@ -918,8 +849,8 @@
...
@@ -918,8 +849,8 @@
<t>
This payload format transports Opus encoded speech or audio data.
<t>
This payload format transports Opus encoded speech or audio data.
Hence, security issues include confidentiality, integrity protection, and
Hence, security issues include confidentiality, integrity protection, and
authentication of the speech or audio itself.
The
Opus
payload format does
authentication of the speech or audio itself. Opus
does not provide
not have any built-in security mechanisms
. Any suitable external
any confidentiality or integrity protection
. Any suitable external
mechanisms, such as SRTP
<xref
target=
"RFC3711"
/>
, MAY be used.
</t>
mechanisms, such as SRTP
<xref
target=
"RFC3711"
/>
, MAY be used.
</t>
<t>
This payload format and the Opus encoding do not exhibit any
<t>
This payload format and the Opus encoding do not exhibit any
...
@@ -929,7 +860,10 @@
...
@@ -929,7 +860,10 @@
</section>
</section>
<section
title=
'Acknowledgements'
>
<section
title=
'Acknowledgements'
>
<t>
TBD
</t>
<t>
Many people have made useful comments and suggestions contributing to this document.
In particular, we would like to thank
Tina le Grand, Cullen Jennings, Jonathan Lennox, Gregory Maxwell, Colin Perkins, Jan Skoglund,
Timothy B. Terriberry, Martin Thompson, Justin Uberti, Magnus Westerlund, and Mo Zanaty.
</t>
</section>
</section>
</middle>
</middle>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment