summaryrefslogtreecommitdiffstats
path: root/third_party/libwebrtc/docs/native-code/rtp-hdrext
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /third_party/libwebrtc/docs/native-code/rtp-hdrext
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/libwebrtc/docs/native-code/rtp-hdrext')
-rw-r--r--third_party/libwebrtc/docs/native-code/rtp-hdrext/abs-capture-time/README.md121
-rw-r--r--third_party/libwebrtc/docs/native-code/rtp-hdrext/abs-send-time/README.md31
-rw-r--r--third_party/libwebrtc/docs/native-code/rtp-hdrext/color-space/README.md88
-rw-r--r--third_party/libwebrtc/docs/native-code/rtp-hdrext/inband-cn/README.md57
-rw-r--r--third_party/libwebrtc/docs/native-code/rtp-hdrext/index.md13
-rw-r--r--third_party/libwebrtc/docs/native-code/rtp-hdrext/playout-delay/README.md54
-rw-r--r--third_party/libwebrtc/docs/native-code/rtp-hdrext/transport-wide-cc-02/README.md62
-rw-r--r--third_party/libwebrtc/docs/native-code/rtp-hdrext/video-content-type/README.md24
-rw-r--r--third_party/libwebrtc/docs/native-code/rtp-hdrext/video-frame-tracking-id/README.md27
-rw-r--r--third_party/libwebrtc/docs/native-code/rtp-hdrext/video-layers-allocation00/README.md86
-rw-r--r--third_party/libwebrtc/docs/native-code/rtp-hdrext/video-timing/README.md42
11 files changed, 605 insertions, 0 deletions
diff --git a/third_party/libwebrtc/docs/native-code/rtp-hdrext/abs-capture-time/README.md b/third_party/libwebrtc/docs/native-code/rtp-hdrext/abs-capture-time/README.md
new file mode 100644
index 0000000000..171993c2e7
--- /dev/null
+++ b/third_party/libwebrtc/docs/native-code/rtp-hdrext/abs-capture-time/README.md
@@ -0,0 +1,121 @@
+# Absolute Capture Time
+
+The Absolute Capture Time extension is used to stamp RTP packets with a NTP
+timestamp showing when the first audio or video frame in a packet was originally
+captured. The intent of this extension is to provide a way to accomplish
+audio-to-video synchronization when RTCP-terminating intermediate systems (e.g.
+mixers) are involved.
+
+**Name:**
+"Absolute Capture Time"; "RTP Header Extension for Absolute Capture Time"
+
+**Formal name:**
+<http://www.webrtc.org/experiments/rtp-hdrext/abs-capture-time>
+
+**Status:**
+This extension is defined here to allow for experimentation. Once experience has
+shown that it is useful, we intend to make a proposal based on it for
+standardization in the IETF.
+
+Contact <chxg@google.com> for more info.
+
+## RTP header extension format
+
+### Data layout overview
+Data layout of the shortened version of `abs-capture-time` with a 1-byte header
+\+ 8 bytes of data:
+
+ 0 1 2 3
+ 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
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | ID | len=7 | absolute capture timestamp (bit 0-23) |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | absolute capture timestamp (bit 24-55) |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | ... (56-63) |
+ +-+-+-+-+-+-+-+-+
+
+Data layout of the extended version of `abs-capture-time` with a 1-byte header +
+16 bytes of data:
+
+ 0 1 2 3
+ 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
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | ID | len=15| absolute capture timestamp (bit 0-23) |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | absolute capture timestamp (bit 24-55) |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | ... (56-63) | estimated capture clock offset (bit 0-23) |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | estimated capture clock offset (bit 24-55) |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | ... (56-63) |
+ +-+-+-+-+-+-+-+-+
+
+### Data layout details
+#### Absolute capture timestamp
+
+Absolute capture timestamp is the NTP timestamp of when the first frame in a
+packet was originally captured. This timestamp MUST be based on the same clock
+as the clock used to generate NTP timestamps for RTCP sender reports on the
+capture system.
+
+It's not always possible to do an NTP clock readout at the exact moment of when
+a media frame is captured. A capture system MAY postpone the readout until a
+more convenient time. A capture system SHOULD have known delays (e.g. from
+hardware buffers) subtracted from the readout to make the final timestamp as
+close to the actual capture time as possible.
+
+This field is encoded as a 64-bit unsigned fixed-point number with the high 32
+bits for the timestamp in seconds and low 32 bits for the fractional part. This
+is also known as the UQ32.32 format and is what the RTP specification defines as
+the canonical format to represent NTP timestamps.
+
+#### Estimated capture clock offset
+
+Estimated capture clock offset is the sender's estimate of the offset between
+its own NTP clock and the capture system's NTP clock. The sender is here defined
+as the system that owns the NTP clock used to generate the NTP timestamps for
+the RTCP sender reports on this stream. The sender system is typically either
+the capture system or a mixer.
+
+This field is encoded as a 64-bit two’s complement **signed** fixed-point number
+with the high 32 bits for the seconds and low 32 bits for the fractional part.
+It’s intended to make it easy for a receiver, that knows how to estimate the
+sender system’s NTP clock, to also estimate the capture system’s NTP clock:
+
+ Capture NTP Clock = Sender NTP Clock + Capture Clock Offset
+
+### Further details
+
+#### Capture system
+
+A receiver MUST treat the first CSRC in the CSRC list of a received packet as if
+it belongs to the capture system. If the CSRC list is empty, then the receiver
+MUST treat the SSRC as if it belongs to the capture system. Mixers SHOULD put
+the most prominent CSRC as the first CSRC in a packet’s CSRC list.
+
+#### Intermediate systems
+
+An intermediate system (e.g. mixer) MAY adjust these timestamps as needed. It
+MAY also choose to rewrite the timestamps completely, using its own NTP clock as
+reference clock, if it wants to present itself as a capture system for A/V-sync
+purposes.
+
+#### Timestamp interpolation
+
+A sender SHOULD save bandwidth by not sending `abs-capture-time` with every
+RTP packet. It SHOULD still send them at regular intervals (e.g. every second)
+to help mitigate the impact of clock drift and packet loss. Mixers SHOULD always
+send `abs-capture-time` with the first RTP packet after changing capture system.
+
+A receiver SHOULD memorize the capture system (i.e. CSRC/SSRC), capture
+timestamp, and RTP timestamp of the most recently received `abs-capture-time`
+packet on each received stream. It can then use that information, in combination
+with RTP timestamps of packets without `abs-capture-time`, to extrapolate
+missing capture timestamps.
+
+Timestamp interpolation works fine as long as there’s reasonably low NTP/RTP
+clock drift. This is not always true. Senders that detect "jumps" between its
+NTP and RTP clock mappings SHOULD send `abs-capture-time` with the first RTP
+packet after such a thing happening.
diff --git a/third_party/libwebrtc/docs/native-code/rtp-hdrext/abs-send-time/README.md b/third_party/libwebrtc/docs/native-code/rtp-hdrext/abs-send-time/README.md
new file mode 100644
index 0000000000..86c3c733dc
--- /dev/null
+++ b/third_party/libwebrtc/docs/native-code/rtp-hdrext/abs-send-time/README.md
@@ -0,0 +1,31 @@
+# Absolute Send Time
+
+The Absolute Send Time extension is used to stamp RTP packets with a timestamp
+showing the departure time from the system that put this packet on the wire
+(or as close to this as we can manage). Contact <solenberg@google.com> for
+more info.
+
+Name: "Absolute Sender Time" ; "RTP Header Extension for Absolute Sender Time"
+
+Formal name: <http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time>
+
+SDP "a= name": "abs-send-time" ; this is also used in client/cloud signaling.
+
+Not unlike [RTP with TFRC](http://tools.ietf.org/html/draft-ietf-avt-tfrc-profile-10#section-5)
+
+Wire format: 1-byte extension, 3 bytes of data. total 4 bytes extra per packet
+(plus shared 4 bytes for all extensions present: 2 byte magic word 0xBEDE, 2
+byte # of extensions). Will in practice replace the "toffset" extension so we
+should see no long term increase in traffic as a result.
+
+Encoding: Timestamp is in seconds, 24 bit 6.18 fixed point, yielding 64s
+wraparound and 3.8us resolution (one increment for each 477 bytes going out on
+a 1Gbps interface).
+
+Relation to NTP timestamps: abs_send_time_24 = (ntp_timestamp_64 >> 14) &
+0x00ffffff ; NTP timestamp is 32 bits for whole seconds, 32 bits fraction of
+second.
+
+Notes: Packets are time stamped when going out, preferably close to metal.
+Intermediate RTP relays (entities possibly altering the stream) should remove
+the extension or set its own timestamp.
diff --git a/third_party/libwebrtc/docs/native-code/rtp-hdrext/color-space/README.md b/third_party/libwebrtc/docs/native-code/rtp-hdrext/color-space/README.md
new file mode 100644
index 0000000000..3f9485681f
--- /dev/null
+++ b/third_party/libwebrtc/docs/native-code/rtp-hdrext/color-space/README.md
@@ -0,0 +1,88 @@
+# Color Space
+
+The color space extension is used to communicate color space information and
+optionally also metadata that is needed in order to properly render a high
+dynamic range (HDR) video stream. Contact <kron@google.com> for more info.
+
+**Name:** "Color space" ; "RTP Header Extension for color space"
+
+**Formal name:** <http://www.webrtc.org/experiments/rtp-hdrext/color-space>
+
+**Status:** This extension is defined here to allow for experimentation. Once experience
+has shown that it is useful, we intend to make a proposal based on it for standardization
+in the IETF.
+
+## RTP header extension format
+
+### Data layout overview
+Data layout without HDR metadata (one-byte RTP header extension)
+ 1-byte header + 4 bytes of data:
+
+ 0 1 2 3
+ 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
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | ID | L = 3 | primaries | transfer | matrix |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ |range+chr.sit. |
+ +-+-+-+-+-+-+-+-+
+
+Data layout of color space with HDR metadata (two-byte RTP header extension)
+ 2-byte header + 28 bytes of data:
+
+ 0 1 2 3
+ 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
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | ID | length=28 | primaries | transfer |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | matrix |range+chr.sit. | luminance_max |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | luminance_min | mastering_metadata.|
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ |primary_r.x and .y | mastering_metadata.|
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ |primary_g.x and .y | mastering_metadata.|
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ |primary_b.x and .y | mastering_metadata.|
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ |white.x and .y | max_content_light_level |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | max_frame_average_light_level |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+### Data layout details
+The data is written in the following order,
+Color space information (4 bytes):
+ * Color primaries value according to ITU-T H.273 Table 2.
+ * Transfer characteristic value according to ITU-T H.273 Table 3.
+ * Matrix coefficients value according to ITU-T H.273 Table 4.
+ * Range and chroma siting as specified at
+ https://www.webmproject.org/docs/container/#colour. Range (range), horizontal (horz)
+ and vertical (vert) siting are merged to one byte by the operation: (range << 4) +
+ (horz << 2) + vert.
+
+The extension may optionally include HDR metadata written in the following order,
+Mastering metadata (20 bytes):
+ * Luminance max, specified in nits, where 1 nit = 1 cd/m<sup>2</sup>.
+ (16-bit unsigned integer)
+ * Luminance min, scaled by a factor of 10000 and specified in the unit 1/10000
+ nits. (16-bit unsigned integer)
+ * CIE 1931 xy chromaticity coordinates of the primary red, scaled by a factor of 50000.
+ (2x 16-bit unsigned integers)
+ * CIE 1931 xy chromaticity coordinates of the primary green, scaled by a factor of 50000.
+ (2x 16-bit unsigned integers)
+ * CIE 1931 xy chromaticity coordinates of the primary blue, scaled by a factor of 50000.
+ (2x 16-bit unsigned integers)
+ * CIE 1931 xy chromaticity coordinates of the white point, scaled by a factor of 50000.
+ (2x 16-bit unsigned integers)
+
+Followed by max light levels (4 bytes):
+ * Max content light level, specified in nits. (16-bit unsigned integer)
+ * Max frame average light level, specified in nits. (16-bit unsigned integer)
+
+Note, the byte order for all integers is big endian.
+
+See the standard SMPTE ST 2086 for more information about these entities.
+
+Notes: Extension should be present only in the last packet of video frames. If attached
+to other packets it should be ignored.
+
diff --git a/third_party/libwebrtc/docs/native-code/rtp-hdrext/inband-cn/README.md b/third_party/libwebrtc/docs/native-code/rtp-hdrext/inband-cn/README.md
new file mode 100644
index 0000000000..70ecdac0fb
--- /dev/null
+++ b/third_party/libwebrtc/docs/native-code/rtp-hdrext/inband-cn/README.md
@@ -0,0 +1,57 @@
+# Inband Comfort Noise
+
+**Name:** "Inband Comfort Noise" ; "RTP Header Extension to signal inband comfort noise"
+
+**Formal name:** <http://www.webrtc.org/experiments/rtp-hdrext/inband-cn>
+
+**Status:** This extension is defined here to allow for experimentation. Once experience has shown that it is useful, we intend to make a proposal based on it for standardization in the IETF.
+
+## Introduction
+
+Comfort noise \(CN\) is widely used in real time communication, as it significantly reduces the frequency of RTP packets, and thus saves the network bandwidth, when participants in the communication are constantly actively speaking.
+
+One way of deploying CN is through \[RFC 3389\]. It defines CN as a special payload, which needs to be encoded and decoded independently from the codec\(s\) applied to active speech signals. This deployment is referred to as outband CN in this context.
+
+Some codecs, for example RFC 6716: Definition of the Opus Audio Codec, implement their own CN schemes. Basically, the encoder can notify that a CN packet is issued and/or no packet needs to be transmitted.
+
+Since CN packets have their particularities, cloud and client may need to identify them and treat them differently. Special treatments on CN packets include but are not limited to
+
+* Upon receiving multiple streams of CN packets, choose only one to relay or mix.
+* Adapt jitter buffer wisely according to the discontinuous transmission nature of CN packets.
+
+While RTP packets that contain outband CN can be easily identified as they bear a different payload type, inband CN cannot. Some codecs may be able to extract the information by decoding the packet, but that depends on codec implementation, not even mentioning that decoding packets is not always feasible. This document proposes using an RTP header extension to signal the inband CN.
+
+## RTP header extension format
+
+The inband CN extension can be encoded using either the one-byte or two-byte header defined in \[RFC 5285\]. Figures 1 and 2 show encodings with each of these header formats.
+
+ 0 1
+ 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | ID | len=0 |N| noise level |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+Figure 1. Encoding Using the One-Byte Header Format
+
+ 0 1 2
+ 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | ID | len=1 |N| noise level |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+Figure 2. Encoding Using the Two-Byte Header Format
+
+Noise level is an optional data. The bit "N" being 1 indicates that there is a noise level. The noise level is defined the same way as the audio level in \[RFC 6464\] and therefore can be used to avoid the Audio Level Header Extension on the same RTP packet. This also means that this level is defined the same as the noise level in \[RFC 3389\] and therfore can be compared against outband CN.
+
+## Further details
+
+The existence of this header extension in an RTP packet indicates that it has inband CN, and therefore it will be used sparsely, and results in very small transmission cost.
+
+The end receiver can utilize this RTP header extension to get notified about an upcoming discontinuous transmission. This can be useful for its jitter buffer management. This RTP header extension signals comfort noise, it can also be used by audio mixer to mix streams wisely. As an example, it can avoid mixing multiple comfort noises together.
+
+Cloud may have the benefits of this RTP header extension as an end receiver, if it does transcoding. It may also utilize this RTP header extension to prioritize RTP packets if it does packet filtering. In both cases, this RTP header extension should not be encrypted.
+
+## References
+* \[RFC 3389\] Zopf, R., "Real-time Transport Protocol \(RTP\) Payload for Comfort Noise \(CN\)", RFC 3389, September 2002.
+* \[RFC 6465\] Ivov, E., Ed., Marocco, E., Ed., and J. Lennox, "A Real-time Transport Protocol \(RTP\) Header Extension for Mixer-to-Client Audio Level Indication", RFC 6465, December 2011.
+* \[RFC 5285\] Singer, D. and H. Desineni, "A General Mechanism for RTP Header Extensions", RFC 5285, July 2008.
diff --git a/third_party/libwebrtc/docs/native-code/rtp-hdrext/index.md b/third_party/libwebrtc/docs/native-code/rtp-hdrext/index.md
new file mode 100644
index 0000000000..081a727c59
--- /dev/null
+++ b/third_party/libwebrtc/docs/native-code/rtp-hdrext/index.md
@@ -0,0 +1,13 @@
+# Experimental RTP header extensions
+
+The following subpages define experiemental RTP header extensions:
+
+ * [abs-send-time](abs-send-time/README.md)
+ * [abs-capture-time](abs-capture-time/README.md)
+ * [color-space](color-space/README.md)
+ * [playout-delay](playout-delay/README.md)
+ * [transport-wide-cc-02](transport-wide-cc-02/README.md)
+ * [video-content-type](video-content-type/README.md)
+ * [video-timing](video-timing/README.md)
+ * [inband-cn](inband-cn/README.md)
+ * [video-layers-allocation00](video-layes-allocation00/README.md)
diff --git a/third_party/libwebrtc/docs/native-code/rtp-hdrext/playout-delay/README.md b/third_party/libwebrtc/docs/native-code/rtp-hdrext/playout-delay/README.md
new file mode 100644
index 0000000000..e669b04f83
--- /dev/null
+++ b/third_party/libwebrtc/docs/native-code/rtp-hdrext/playout-delay/README.md
@@ -0,0 +1,54 @@
+# Playout Delay
+
+**Name:** "Playout Delay" ; "RTP Header Extension to control Playout Delay"
+
+**Formal name:** <http://www.webrtc.org/experiments/rtp-hdrext/playout-delay>
+
+**SDP "a= name":** "playout-delay" ; this is also used in client/cloud signaling.
+
+**Status:** This extension is defined here to allow for experimentation. Once experience
+has shown that it is useful, we intend to make a proposal based on it for standardization
+in the IETF.
+
+## Introduction
+
+On WebRTC, the RTP receiver continuously measures inter-packet delay and evaluates packet jitter. Besides this, an estimated delay for decode and render at the receiver is computed. The jitter buffer, the local time extrapolation and the predicted render time (based on predicted decode and render time) impact the delay on a frame before it is rendered at the receiver.
+
+This document proposes an RTP extension to enable the RTP sender to try and limit the amount of playout delay at the receiver in a certain range. A minimum and maximum delay from the sender provides guidance on the range over which the receiver can smooth out rendering.
+
+Thus, this extension aims to provide the sender’s intent to the receiver on how quickly a frame needs to be rendered.
+
+The following use cases are addressed by this extension:
+
+* Interactive streaming (gaming, remote access): Interactive streaming is highly sensitive to end-to-end latency and any delay in render impacts the end-user experience. These use cases prioritize reducing delay over any smoothing done at the receiver. In these cases, the RTP sender would like to disable all smoothing at receiver (min delay = max delay = 0)
+* Movie playback: In some scenarios, the user prefers smooth playback and adaptive delay impacts end-user experience (audio can speed up and slow down). In these cases the sender would like to have a fixed delay at all times (min delay = max delay = K)
+* Interactive communication: This is the scenarios where the receiver is best suited to adjust the delay adaptively to minimize latency and at the same time add some smoothing based on jitter prevalent due to network conditions (min delay = K1, max delay = K2)
+
+
+## MIN and MAX playout delay
+
+The playout delay on a frame represents the amount of delay added to a frame the time it is captured at the sender to the time it is expected to be rendered at the receiver. Thus playout delay is essentially:
+
+Playout delay = ExpectedRenderTime(frame) - ExpectedCaptureTime(frame)
+
+MIN and MAX playout delay in turn represent the minimum and maximum delay that can be seen on a frame. This restriction range is best effort. The receiver is expected to try and meet the range as best as it can.
+
+A value of 0 for example is meaningless from the perspective of actually meeting the suggested delay, but it indicates to the receiver that the frame should be rendered as soon as possible. It is up-to the receiver to decide how to handle a frame when it arrives too late (i.e., whether to simply drop or hand over for rendering as soon as possible).
+
+## RTP header extension format
+
+ 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
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | ID | len=2 | MIN delay | MAX delay |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+
+12 bits for Minimum and Maximum delay. This represents a range of 0 - 40950 milliseconds for minimum and maximum (with a granularity of 10 ms). A granularity of 10 ms is sufficient since we expect the following typical use cases:
+
+* 0 ms: Certain gaming scenarios (likely without audio) where we will want to play the frame as soon as possible. Also, for remote desktop without audio where rendering a frame asap makes sense
+* 100/150/200 ms: These could be the max target latency for interactive streaming use cases depending on the actual application (gaming, remoting with audio, interactive scenarios)
+* 400 ms: Application that want to ensure a network glitch has very little chance of causing a freeze can start with a minimum delay target that is high enough to deal with network issues. Video streaming is one example.
+
+The header is attached to the RTP packet by the RTP sender when it needs to change the min and max smoothing delay at the receiver. Once the sender is informed that at least one RTP packet which has the min and max details is delivered, it MAY stop providing details on all further RTP packets until another change warrants communicating the details to the receiver again. This is done as follows:
+
+RTCP feedback to RTP sender includes the highest sequence number that was seen on the RTP receiver. The RTP sender can track the sequence number on the packet that first had the playout delay extension and then stop sending the extension once the received sequence number is greater than the sequence number on the first packet containing the current values playout delay in this extension.
diff --git a/third_party/libwebrtc/docs/native-code/rtp-hdrext/transport-wide-cc-02/README.md b/third_party/libwebrtc/docs/native-code/rtp-hdrext/transport-wide-cc-02/README.md
new file mode 100644
index 0000000000..8dc82612c7
--- /dev/null
+++ b/third_party/libwebrtc/docs/native-code/rtp-hdrext/transport-wide-cc-02/README.md
@@ -0,0 +1,62 @@
+# Transport-Wide Congestion Control
+
+This RTP header extension is an extended version of the extension defined in
+<https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01>
+
+**Name:** "Transport-wide congenstion control 02"
+
+**Formal name:**
+<http://www.webrtc.org/experiments/rtp-hdrext/transport-wide-cc-02>
+
+**Status:** This extension is defined here to allow for experimentation. Once
+experience has shown that it is useful, we intend to make a proposal based on
+it for standardization in the IETF.
+
+The original extension defines a transport-wide sequence number that is used in
+feedback packets for congestion control. The original implementation sends these
+feedback packets at a periodic interval. The extended version presented here has
+two changes compared to the original version:
+* Feedback is sent only on request by the sender, therefore, the extension has
+ two optional bytes that signals that a feedback packet is requested.
+* The sender determines if timing information should be included or not in the
+ feedback packet. The original version always include timing information.
+
+Contact <kron@google.com> or <sprang@google.com> for more info.
+
+## RTP header extension format
+
+### Data layout overview
+Data layout of transport-wide sequence number
+ 1-byte header + 2 bytes of data:
+
+ 0 1 2
+ 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | ID | L=1 |transport-wide sequence number |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+Data layout of transport-wide sequence number and optional feedback request
+ 1-byte header + 4 bytes of data:
+
+ 0 1 2 3
+ 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
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | ID | L=3 |transport-wide sequence number |T| seq count |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ |seq count cont.|
+ +-+-+-+-+-+-+-+-+
+
+### Data layout details
+The data is written in the following order,
+* transport-wide sequence number (16-bit unsigned integer)
+* feedback request (optional) (16-bit unsigned integer)<br>
+ If the extension contains two extra bytes for feedback request, this means
+ that a feedback packet should be generated and sent immediately. The feedback
+ request consists of a one-bit field giving the flag value T and a 15-bit
+ field giving the sequence count as an unsigned number.
+ - If the bit T is set the feedback packet must contain timing information.
+ - seq count specifies how many packets of history that should be included in
+ the feedback packet. If seq count is zero no feedback should be be
+ generated, which is equivalent of sending the two-byte extension above.
+ This is added as an option to allow for a fixed packet header size.
+
diff --git a/third_party/libwebrtc/docs/native-code/rtp-hdrext/video-content-type/README.md b/third_party/libwebrtc/docs/native-code/rtp-hdrext/video-content-type/README.md
new file mode 100644
index 0000000000..e7eb10d4e8
--- /dev/null
+++ b/third_party/libwebrtc/docs/native-code/rtp-hdrext/video-content-type/README.md
@@ -0,0 +1,24 @@
+# Video Content Type
+
+The Video Content Type extension is used to communicate a video content type
+from sender to receiver of rtp video stream. Contact <ilnik@google.com> for
+more info.
+
+Name: "Video Content Type" ; "RTP Header Extension for Video Content Type"
+
+Formal name: <http://www.webrtc.org/experiments/rtp-hdrext/video-content-type>
+
+SDP "a= name": "video-content-type" ; this is also used in client/cloud signaling.
+
+Wire format: 1-byte extension, 1 bytes of data. total 2 bytes extra per packet
+(plus shared 4 bytes for all extensions present: 2 byte magic word 0xBEDE, 2
+byte # of extensions).
+
+Values:
+
+ * 0x00: *Unspecified*. Default value. Treated the same as an absence of an extension.
+ * 0x01: *Screenshare*. Video stream is of a screenshare type.
+
+Notes: Extension shoud be present only in the last packet of key-frames. If
+attached to other packets it should be ignored. If extension is absent,
+*Unspecified* value is assumed.
diff --git a/third_party/libwebrtc/docs/native-code/rtp-hdrext/video-frame-tracking-id/README.md b/third_party/libwebrtc/docs/native-code/rtp-hdrext/video-frame-tracking-id/README.md
new file mode 100644
index 0000000000..d1c609744e
--- /dev/null
+++ b/third_party/libwebrtc/docs/native-code/rtp-hdrext/video-frame-tracking-id/README.md
@@ -0,0 +1,27 @@
+# Video Frame Tracking Id
+
+The Video Frame Tracking Id extension is meant for media quality testing
+purpose and shouldn't be used in production. It tracks webrtc::VideoFrame id
+field from the sender to the receiver to gather referenced base media quality
+metrics such as PSNR or SSIM.
+Contact <jleconte@google.com> for more info.
+
+**Name:** "Video Frame Tracking Id"
+
+**Formal name:**
+<http://www.webrtc.org/experiments/rtp-hdrext/video-frame-tracking-id>
+
+**Status:** This extension is defined to allow for media quality testing. It is
+enabled by using a field trial and should only be used in a testing environment.
+
+### Data layout overview
+ 1-byte header + 2 bytes of data:
+
+ 0              1 2
+ 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | ID   | L=1 | video-frame-tracking-id |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+Notes: The extension shoud be present only in the first packet of each frame.
+If attached to other packets it can be ignored. \ No newline at end of file
diff --git a/third_party/libwebrtc/docs/native-code/rtp-hdrext/video-layers-allocation00/README.md b/third_party/libwebrtc/docs/native-code/rtp-hdrext/video-layers-allocation00/README.md
new file mode 100644
index 0000000000..c4454d8ee1
--- /dev/null
+++ b/third_party/libwebrtc/docs/native-code/rtp-hdrext/video-layers-allocation00/README.md
@@ -0,0 +1,86 @@
+# Video Layers Allocation
+
+The goal of this extension is for a video sender to provide information about
+the target bitrate, resolution and frame rate of each scalability layer in order
+to aid a selective forwarding middlebox to decide which layer to relay.
+
+**Name:** "Video layers allocation version 0"
+
+**Formal name:**
+<http://www.webrtc.org/experiments/rtp-hdrext/video-layers-allocation00>
+
+**Status:** This extension is defined here to allow for experimentation.
+
+In a conference scenario, a video from a single sender may be received by
+several recipients with different downlink bandwidth constraints and UI
+requirements. To allow this, a sender can send video with several scalability
+layers and a middle box can choose a layer to relay for each receiver.
+
+This extension support temporal layers, multiple spatial layers sent on a single
+rtp stream (SVC), or independent spatial layers sent on multiple rtp streams
+(simulcast).
+
+## RTP header extension format
+
+### Data layout
+
+```
+// +-+-+-+-+-+-+-+-+
+// |RID| NS| sl_bm |
+// +-+-+-+-+-+-+-+-+
+// Spatial layer bitmask |sl0_bm |sl1_bm |
+// up to 2 bytes |---------------|
+// when sl_bm == 0 |sl2_bm |sl3_bm |
+// +-+-+-+-+-+-+-+-+
+// Number of temporal layers |#tl|#tl|#tl|#tl|
+// per spatial layer | | | | |
+// +-+-+-+-+-+-+-+-+
+// Target bitrate in kpbs | |
+// per temporal layer : ... :
+// leb128 encoded | |
+// +-+-+-+-+-+-+-+-+
+// Resolution and framerate | |
+// 5 bytes per spatial layer + width-1 for +
+// (optional) | rid=0, sid=0 |
+// +---------------+
+// | |
+// + height-1 for +
+// | rid=0, sid=0 |
+// +---------------+
+// | max framerate |
+// +-+-+-+-+-+-+-+-+
+// : ... :
+// +-+-+-+-+-+-+-+-+
+```
+
+RID: RTP stream index this allocation is sent on, numbered from 0. 2 bits.
+
+NS: Number of RTP streams minus one. 2 bits, thus allowing up-to 4 RTP streams.
+
+sl_bm: BitMask of the active Spatial Layers when same for all RTP streams or 0
+otherwise. 4 bits, thus allows up to 4 spatial layers per RTP streams.
+
+slX_bm: BitMask of the active Spatial Layers for RTP stream with index=X.
+When NS < 2, takes one byte, otherwise uses two bytes. Zero-padded to byte
+alignment.
+
+\#tl: 2-bit value of number of temporal layers-1, thus allowing up-to 4 temporal
+layers. Values are stored in ascending order of spatial id. Zero-padded to byte
+alignment.
+
+Target bitrate in kbps. Values are stored using leb128 encoding [1]. One value per
+temporal layer. Values are stored in (RTP stream id, spatial id, temporal id)
+ascending order. All bitrates are total required bitrate to receive the
+corresponding layer, i.e. in simulcast mode they include only corresponding
+spatial layers, in full-svc all lower spatial layers are included. All lower
+temporal layers are also included.
+
+Resolution and framerate. Optional. Presence is inferred from the rtp header
+extension size. Encoded (width - 1), 16-bit, (height - 1), 16-bit, max frame
+rate 8-bit per spatial layer per RTP stream. Values are stored in (RTP stream
+id, spatial id) ascending order.
+
+An empty layer allocation (i.e nothing sent on ssrc) is encoded as
+special case with a single 0 byte.
+
+[1] https://aomediacodec.github.io/av1-spec/#leb128
diff --git a/third_party/libwebrtc/docs/native-code/rtp-hdrext/video-timing/README.md b/third_party/libwebrtc/docs/native-code/rtp-hdrext/video-timing/README.md
new file mode 100644
index 0000000000..6f862f6157
--- /dev/null
+++ b/third_party/libwebrtc/docs/native-code/rtp-hdrext/video-timing/README.md
@@ -0,0 +1,42 @@
+# Video Timing
+
+The Video Timing extension is used to communicate a timing information on
+per-frame basis to receiver of rtp video stream. Contact <ilnik@google.com> for
+more info. It may be generalized to audio frames as well in the future.
+
+Name: "Video Timing" ; "RTP Header Extension for Video timing"
+
+Formal name: <http://www.webrtc.org/experiments/rtp-hdrext/video-timing>
+
+SDP "a= name": "video-timing" ; this is also used in client/cloud signaling.
+
+Wire format: 1-byte extension, 13 bytes of data. Total 14 bytes extra per packet
+(plus 1-3 padding byte in some cases, plus shared 4 bytes for all extensions
+present: 2 byte magic word 0xBEDE, 2 byte # of extensions).
+
+First byte is a flags field. Defined flags:
+
+ * 0x01 - extension is set due to timer.
+ * 0x02 - extension is set because the frame is larger than usual.
+
+Both flags may be set at the same time. All remaining 6 bits are reserved and
+should be ignored.
+
+Next, 6 timestamps are stored as 16-bit values in big-endian order, representing
+delta from the capture time of a packet in ms.
+Timestamps are, in order:
+
+ * Encode start.
+ * Encode finish.
+ * Packetization complete.
+ * Last packet left the pacer.
+ * Reserved for network.
+ * Reserved for network (2).
+
+Pacer timestamp should be updated inside the RTP packet by pacer component when
+the last packet (containing the extension) is sent to the network. Last two,
+reserved timstamps, are not set by the sender but are reserved in packet for any
+in-network RTP stream processor to modify.
+
+Notes: Extension shoud be present only in the last packet of video frames. If
+attached to other packets it should be ignored.