Payload Working Group | S. Lugan |
Internet-Draft | G. Rouvroy |
Intended status: Standards Track | A. Descampe |
Expires: October 12, 2019 | intoPIX |
T. Richter | |
IIS | |
A. Willeme | |
UCL/ICTEAM | |
April 10, 2019 |
RTP Payload Format for ISO/IEC 21122 (JPEG XS)
draft-ietf-payload-rtp-jpegxs-01
This document specifies a Real-Time Transport Protocol (RTP) payload format to be used for transporting JPEG XS (ISO/IEC 21122) encoded video. JPEG XS is a low-latency, lightweight image coding system. Compared to an uncompressed video use case, it allows higher resolutions and frame rates, while offering visually lossless quality, reduced power consumption, and end-to-end latency confined to a fraction of a frame.
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."
This Internet-Draft will expire on October 12, 2019.
Copyright (c) 2019 IETF Trust and the persons identified as the document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.
This document specifies a payload format for packetization of JPEG XS encoded video signals into the Real-time Transport Protocol (RTP).
The JPEG XS coding system offers compression and recompression of image sequences with very moderate computational resources while remaining robust under multiple compression and decompression cycles and mixing of content sources, e.g. embedding of subtitles, overlays or logos. Typical target compression ratios ensuring visually lossless quality are in the range of 2:1 to 10:1, depending on the nature of the source material. The end-to-end latency can be confined to a fraction of a frame, typically between a small number of lines down to below a single line.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
JPEG XS is a low-latency lightweight image coding system for coding continuous-tone grayscale or continuous-tone colour digital images.
This coding system provides an efficient representation of image signals through the mathematical tool of wavelet analysis. The wavelet filter process separates each component into multiple bands, where each band consists of multiple coefficients describing the image signal of a given component within a frequency domain specific to the wavelet filter type, i.e. the particular filter corresponding to the band.
Wavelet coefficients are grouped into precincts, where each precinct includes all coefficients over all bands that contribute to a spatial region of the image.
One or multiple precincts are furthermore combined into slices consisting of an integral number of precincts. Precincts do not cross slice boundaries, and wavelet coefficients in precincts that are part of different slices can be decoded independently from each other. Note, however, that the wavelet transformation runs across slice boundaries. A slice always extends over the full width of the image, but may only cover parts of its height.
Data that is not part of any slice is metadata. It consists of either the JPEG XS header segment preceeding any slice data, or the EOC marker which follows the last slice.
The overall codestream format, including the definition of all markers, is further defined in ISO/IEC 21122-1. It represents sample values of a single frame, bare any interpretation relative to a colour space.
While the information defined in the codestream is sufficient to reconstruct the sample values of one video frame, the interpretation of the samples remains undefined by the codestream itself. This interpretation is given by the video support box and the colour specification box which contain significant information to correctly play the JPEG XS stream. The layout and syntax of these boxes, together with their content, are defined in ISO/IEC 21122-3. The video support box provides information on the maximum bitrate, the frame rate, the subsampling image format, the timecode of the current JPEG XS frame, the profile, level and sublevel used (as defined in ISO/IEC 21122-2), and optionally on the buffer model and the mastering display metadata. The colour specification box indicates the colour primaries, transfer characteristics, matrix coefficients and video full range flag needed to specify the colour space of the video stream.
This section specifies the payload format for JPEG XS streams over the Real-time Transport Protocol (RTP).
In order to be transported over RTP, each JPEG XS stream is transported in a distinct RTP stream, identified by a distinct SSRC.
A JPEG XS stream is divided into Application Data Units (ADUs), each ADU corresponding to a single JPEG XS frame.
An ADU is split into multiple RTP packet payloads. Figure 1 shows an example of how slices and metadata fit into the payload of RTP packets ("Hdr" denotes a RTP packet header). As seen there, each packet contains metadata or data from a single slice, but a slice or metadata may extend over multiple packets. The payload of every packet shall have the same size (based e.g. on the Maximum Transfer Unit of the network), except (possibly) the last packet of a slice or metadata. The boundaries of a slice or metadata shall coincide with the boundaries of the payload of a packet, i.e. the first (resp. last) byte of a slice or metadata shall be the first (resp. last) byte of the payload. In particular, this implies that the EOC marker is sent in a packet of its own.
RTP +-----+------------------------+ Packet #1 | Hdr | JPEG XS header segment | +-----+------------------------+ RTP +-----+---------------------------+ Packet #2 | Hdr | Slice 0 | +-----+---------------------------+ RTP +-----+---------------------------------------------+ Packet #3 | Hdr | Slice 1 (part 1/3) | +-----+---------------------------------------------+ RTP +-----+---------------------------------------------+ Packet #4 | Hdr | Slice 1 (part 2/3) | +-----+---------------------------------------------+ RTP +-----+---------------------+ Packet #5 | Hdr | Slice 1 (part 3/3) | +-----+---------------------+ ... RTP +-----+-----+ Packet #N | Hdr | EOC | +-----+-----+
Figure 1: Example of slices and metadata of an ADU
Figure 2 illustrates the RTP payload header used in order to transport a JPEG XS stream.
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 +---+-+-+-------+-+-------------+-------------------------------+ | V |P|X| CC |M| PT | Sequence number | +---+-+-+-------+-+-------------+-------------------------------+ | Timestamp | +---------------------------------------------------------------+ | Synchronization source (SSRC) identifier | +===============================================================+ | Contributing source (CSRC) identifiers | | .... | +-+-------------+-----------------------+-----------------------+ |L|Frame counter| Slice counter | Packet counter | +-+-------------+-----------------------+-----------------------+ | Data | +---------------------------------------------------------------+
Figure 2: RTP and payload headers
The version (V), padding (P), extension (X), CSRC count (CC), sequence number, synchronization source (SSRC) and contributing source (CSRC) fields follow their respective definitions in RFC 3550.
The timestamp SHOULD be based on a 90 kHz clock reference.
As per specified in RFC 3550 and RFC 4175, the RTP timestamp designates the sampling instant of the first octet of the frame to which the RTP packet belongs. Packets shall not include data from multiple frames, and all packets belonging to the same frame shall have the same timestamp. Several successive RTP packets will consequently have equal timestamps if they belong to the same frame (that is until the marker bit is set to 1, marking the last packet of the frame), and the timestamp is only increased when a new frame begins.
If the sampling instant does not correspond to an integer value of the clock, the value shall be truncated to the next lowest integer, with no ambiguity.
The remaining fields are defined as follows:
The payload data of a JPEG XS RTP stream consists of a concatenation of multiple JPEG XS frames.
Each JPEG XS frame is the concatenation of multiple slices and metadata. The first metadata of a frame contains the JPEG XS header segment and the last metadata contains the EOC marker. Figure 3 depicts this layout.
+--------[ JPEG XS header segment ]---------+ | Video support box | | +-------------------------------------+ | Slice counter = 0x0fff | | Sub boxes of the video support box | | | +-------------------------------------+ | | : additional sub-boxes of the vs-box : | | +-------------------------------------+ | | | +-------------------------------------------+ | Colour specification box | | +-------------------------------------+ | | | Specification method (METH = 5) | | | +-------------------------------------+ | | : additional fields of the cs-box : | | +-------------------------------------+ | | | +-------------------------------------------+ | JPEG XS codestream header | | +-------------------------------------+ | | | SOC marker | | | +-------------------------------------+ | | : Additional Marker segments : | | +-------------------------------------+ | | | M = 0, L = 1 +-------------------------------------------+ +----------------[ Slices ]-----------------+ | Slice #0 | | +-------------------------------------+ | | | SLH Marker | | | +-------------------------------------+ | | : Entropy Coded Data : | | | | | | +-------------------------------------+ | | | M = 0, L = 1 +-------------------------------------------+ | Slice #1 | : : M = 0, L = 1 +-------------------------------------------+ : : +-------------------------------------------+ | Slice #n-1 | : : +-------------------------------------------+ +----------[ End-of-codestream ]------------+ | EOC marker | Slice counter = 0x0fff +-------------------------------------------+ M = 1, L = 1
Figure 3: JPEG XS Payload Data
The traffic shaping and delivery timing shall be in accordance with the Network Compatibility Model compliance definitions specified in SMPTE ST 2110-21 for either Narrow Linear Senders (Type NL) or Wide Senders (Type W). The session description shall include a format-specific parameter of either TP=2110TPNL or TP=2110TPW to indicate compliance with Type NL or Type W respectively.
NOTE: The Virtual Receiver Buffer Model compliance definitions of ST 2110-21 do not apply.
Congestion control for RTP SHALL be used in accordance with RFC 3550, and with any applicable RTP profile: e.g., RFC 3551. An additional requirement if best-effort service is being used is users of this payload format MUST monitor packet loss to ensure that the packet loss rate is within acceptable parameters. Circuit Breakers is an update to RTP that defines criteria for when one is required to stop sending RTP Packet Streams and applications implementing this standard MUST comply with it. RFC 8085 provides additional information on the best practices for applying congestion control to UDP streams.
YCbCr-4:4:4 (4:4:4 sampling) YCbCr-4:2:2 (4:2:2 sampling) YCbCr-4:2:0 (4:2:0 sampling)
CLYCbCr-4:4:4 (4:4:4 sampling) CLYCbCr-4:2:2 (4:2:2 sampling) CLYCbCr-4:2:0 (4:2:0 sampling)
ICtCp-4:4:4 (4:4:4 sampling) ICtCp-4:2:2 (4:2:2 sampling) ICtCp-4:2:0 (4:2:0 sampling)
RGB RGB or R' G' B' samples
XYZ X' Y' Z' samples
KEY samples of the key signal
BT601-5 ITU Recommendation BT.601-5 BT709-2 ITU Recommendation BT.709-2 SMPTE240M SMPTE standard 240M BT601 as specified in Recommendation ITU-R BT.601-7 BT709 as specified in Recommendation ITU-R BT.709-6 BT2020 as specified in Recommendation ITU-R BT.2020-2 BT2100 as specified in Recommendation ITU-R BT.2100 Table 2 titled "System colorimetry" ST2065-1 as specified in SMPTE ST 2065-1 Academy Color Encoding Specification (ACES) ST2065-3 as specified for Academy Density Exchange Encoding (ADX) in SMPTE ST 2065-3 XYZ as specified in ISO 11664-1 section titled "1931 Observer"
SDR (Standard Dynamic Range) Video streams of standard dynamic range, that utilize the OETF of Recommendation ITU-R BT.709 or Recommendation ITU-R BT.2020. Such streams shall be assumed to target the EOTF specified in ITU-R BT.1886. PQ Video streams of high dynamic range video that utilize the Perceptual Quantization system of Recommendation ITU-R BT.2100 HLG Video streams of high dynamic range video that utilize the Hybrid Log-Gamma system of Recommendation ITU-R BT.2100
A Session Description Protocol (SDP) object shall be created for each RTP stream and it shall be in accordance with the provisions of SMPTE ST 2110-10.
The information carried in the media type specification has a specific mapping to fields in the Session Description Protocol (SDP), which is commonly used to describe RTP sessions.
The media type ("video") goes in SDP "m=" as the media name.
The media subtype ("jxsv") goes in SDP "a=rtpmap" as the encoding name, followed by a slash ("/") and the required parameter "rate" corresponding to the RTP timestamp clock rate (which for the payload format defined in this document MUST be 90000). The optional parameters go in the SDP "a=fmtp" attribute by copying them directly from the MIME media type string as a semicolon-separated list of parameter=value pairs.
m=video 30000 RTP/AVP 112 a=rtpmap:112 jxsv/90000 a=fmtp:112 sampling=YCbCr-4:2:2; width=1920; height=1080; depth=10; colorimetry=BT709; TCS=SDR; RANGE=FULL; TP=2110TPNL
A sample SDP mapping for JPEG XS video is as follows:
In this example, a JPEG XS RTP stream is being sent to UDP destination port 30000, with an RTP dynamic payload type of 112 and a media clock rate of 90000 Hz. Note that the "a=fmtp:" line has been wrapped to fit this page, and will be a single long line in the SDP file.
The SDP object shall include the TP parameter (either 2110TPNL or 2110TPW as specified in Section 4.3) and may include the CMAX parameter as specified in SMPTE ST 2110-21.
The following considerations apply when using SDP offer/answer procedures to negotiate the use of the JPEG XS payload in RTP:
This memo requests that IANA registers video/jxsv as specified in Section 6.1. The media type is also requested to be added to the IANA registry for "RTP Payload Format MIME types".
RTP packets using the payload format defined in this specification are subject to the security considerations discussed in the RTP specification and in any applicable RTP profile such as RTP/AVP, RTP/AVPF, RTP/SAVP, or RTP/SAVPF. This implies that confidentiality of the media streams is achieved by encryption.
However, as "Securing the RTP Framework: Why RTP Does Not Mandate a Single Media Security Solution" discusses, it is not an RTP payload format's responsibility to discuss or mandate what solutions are used to meet the basic security goals like confidentiality, integrity, and source authenticity for RTP in general. This responsibility lies on anyone using RTP in an application. They can find guidance on available security mechanisms and important considerations in "Options for Securing RTP Sessions". Applications SHOULD use one or more appropriate strong security mechanisms.
This payload format and the JPEG XS encoding do not exhibit any substantial non-uniformity, either in output or in complexity to perform the decoding operation and thus are unlikely to pose a denial-of-service threat due to the receipt of pathological datagrams.
It is important to note that HD or UHDTV JPEG XS-encoded video can have significant bandwidth requirements (typically more than 1 Gbps for ultra high-definition video, especially if using high framerate). This is sufficient to cause potential for denial-of-service if transmitted onto most currently available Internet paths.
Accordingly, if best-effort service is being used, users of this payload format MUST monitor packet loss to ensure that the packet loss rate is within acceptable parameters. Packet loss is considered acceptable if a TCP flow across the same network path, and experiencing the same network conditions, would achieve an average throughput, measured on a reasonable timescale, that is not less than the RTP flow is achieving. This condition can be satisfied by implementing congestion control mechanisms to adapt the transmission rate (or the number of layers subscribed for a layered multicast session), or by arranging for a receiver to leave the session if the loss rate is unacceptably high.
This payload format may also be used in networks that provide quality-of-service guarantees. If enhanced service is being used, receivers SHOULD monitor packet loss to ensure that the service that was requested is actually being delivered. If it is not, then they SHOULD assume that they are receiving best-effort service and behave accordingly.
Note to RFC Editor: This section may be removed after carrying out all the instructions of this section.
RFC XXXX is to be replaced by the RFC number this specification receives when published.
[RFC4175] | Gharai, L. and C. Perkins, "RTP Payload Format for Uncompressed Video", RFC 4175, DOI 10.17487/RFC4175, September 2005. |
[RFC4585] | Ott, J., Wenger, S., Sato, N., Burmeister, C. and J. Rey, "Extended RTP Profile for Real-time Transport Control Protocol (RTCP)-Based Feedback (RTP/AVPF)", RFC 4585, DOI 10.17487/RFC4585, July 2006. |
[RFC5124] | Ott, J. and E. Carrara, "Extended Secure RTP Profile for Real-time Transport Control Protocol (RTCP)-Based Feedback (RTP/SAVPF)", RFC 5124, DOI 10.17487/RFC5124, February 2008. |
[RFC7201] | Westerlund, M. and C. Perkins, "Options for Securing RTP Sessions", RFC 7201, DOI 10.17487/RFC7201, April 2014. |
[RFC7202] | Perkins, C. and M. Westerlund, "Securing the RTP Framework: Why RTP Does Not Mandate a Single Media Security Solution", RFC 7202, DOI 10.17487/RFC7202, April 2014. |