Re: [Cellar] [Matroska-devel] Colour Format proposal

Dave Rice <dave@dericed.com> Fri, 19 February 2016 19:59 UTC

Return-Path: <dave@dericed.com>
X-Original-To: cellar@ietfa.amsl.com
Delivered-To: cellar@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B3A0D1B34B8 for <cellar@ietfa.amsl.com>; Fri, 19 Feb 2016 11:59:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.58
X-Spam-Level: *
X-Spam-Status: No, score=1.58 tagged_above=-999 required=5 tests=[BAYES_50=0.8, HTML_MESSAGE=0.001, SPF_NEUTRAL=0.779] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3emcq4cUzrFS for <cellar@ietfa.amsl.com>; Fri, 19 Feb 2016 11:59:49 -0800 (PST)
Received: from s172.web-hosting.com (s172.web-hosting.com [68.65.122.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BEF191B34B5 for <cellar@ietf.org>; Fri, 19 Feb 2016 11:59:49 -0800 (PST)
Received: from [146.96.19.240] (port=13636 helo=[10.10.202.53]) by server172.web-hosting.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.86) (envelope-from <dave@dericed.com>) id 1aWrDL-0034EL-K6; Fri, 19 Feb 2016 14:59:49 -0500
Content-Type: multipart/alternative; boundary="Apple-Mail=_937C5588-2630-44C5-A7B6-2E10CB8DC323"
Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\))
From: Dave Rice <dave@dericed.com>
In-Reply-To: <CAJGH+Uv6A1UciiQ1xUkVEFXH_7Mv2WkbowedLoLKDtphhshUMg@mail.gmail.com>
Date: Fri, 19 Feb 2016 14:59:41 -0500
Message-Id: <D4FE115C-1FCB-49C2-80BF-71759BB7DCC3@dericed.com>
References: <CAJGH+UuSn8O04HR1=L+b1=ouwgPd=n+xYFQZmTXqs8buZ-Wdrg@mail.gmail.com> <568C3CA0.8040300@mediaarea.net> <CAJGH+UveWG5_ngd+YxSqPOiPkEE7_uM288yJd=F8fPrThU4cRw@mail.gmail.com> <CAOXsMF+VYv5WXek_-vuQO1cgvrhLN7WRDNkHegYaQT0YwkhRbw@mail.gmail.com> <CAJGH+Ush3_X3SPgbGKYr5LcYLQAnO3w1-3MoF9CPeykqsYXhOw@mail.gmail.com> <56B8CD1A.20307@mediaarea.net> <CAJGH+Uv3cEtHG1US2r_4hwcybHcQX+RF0B1SQ9jFJcF2A6=oew@mail.gmail.com> <CAJGH+Uu=LwbHb_JaWmRxHbBWpg2=JVvxbA_aWR+GYeeK3ejYzA@mail.gmail.com> <6852A8C0-B1D1-40F9-BE5F-5A7E956C4C42@dericed.com> <CAJGH+UuK562q+qV=BCMS9KRFQh=4NCcyr1gRtJ40fqXfJk3LBg@mail.gmail.com> <9CE0170E-E63D-411D-AFAF-EE5CBB4B56D7@dericed.com> <CAJGH+UtxGnwmYXokmHoBjhuEerLZvs_dTAdqrhVFqDGJa7E+fw@mail.gmail.com> <CAJGH+Uv6A1UciiQ1xUkVEFXH_7Mv2WkbowedLoLKDtphhshUMg@mail.gmail.com>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>, libav development <libav-devel@libav.org>
X-Mailer: Apple Mail (2.3112)
X-OutGoing-Spam-Status: No, score=-1.0
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - server172.web-hosting.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - dericed.com
X-Get-Message-Sender-Via: server172.web-hosting.com: authenticated_id: dave@dericed.com
X-Authenticated-Sender: server172.web-hosting.com: dave@dericed.com
X-Source:
X-Source-Args:
X-Source-Dir:
X-From-Rewrite: unmodified, already matched
Archived-At: <http://mailarchive.ietf.org/arch/msg/cellar/GPFkVmoSmcHMhd5_VlzI-6v4PV4>
Cc: cellar@ietf.org, Frank Galligan <frankgalligan@gmail.com>
Subject: Re: [Cellar] [Matroska-devel] Colour Format proposal
X-BeenThere: cellar@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Codec Encoding for LossLess Archiving and Realtime transmission <cellar.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cellar>, <mailto:cellar-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cellar/>
List-Post: <mailto:cellar@ietf.org>
List-Help: <mailto:cellar-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cellar>, <mailto:cellar-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Feb 2016 19:59:53 -0000

Hi all,

Working with the IETF Cellar Working Group, https://datatracker.ietf.org/wg/cellar/charter/, Frank Galligan has drafted a proposal for the management of metadata in Matroska to accommodate information on color, full/broadcast range, HDR metadata, chroma subsampling patterns and other information. I'm forwarding it to ffmpeg-devel and libav-devel to encourage any additional comments. The background discussion thus far is visible at https://mailarchive.ietf.org/arch/search/?email_list=cellar&gbt=1&q=Colour+Format+proposal <https://mailarchive.ietf.org/arch/search/?email_list=cellar&gbt=1&q=Colour+Format+proposal>. For context, the structure for Matroska element definitions is currently in draft here: https://github.com/Matroska-Org/ebml-specification/blob/master/specification.markdown#ebml-schema-element-attributes <https://github.com/Matroska-Org/ebml-specification/blob/master/specification.markdown#ebml-schema-element-attributes>.

> Begin forwarded message:
> 
> From: Frank Galligan <frankgalligan@gmail.com>
> Subject: Re: [Cellar] [Matroska-devel] Colour Format proposal
> Date: February 18, 2016 at 2:50:27 PM EST
> To: Dave Rice <dave@dericed.com>
> Cc: Jerome Martinez <jerome@mediaarea.net>, Discussion about the current and future development of Matroska <matroska-devel@lists.matroska.org>, cellar@ietf.org
> 
> Here is the current proposal, minus the reference to the 265 doc.
> 
> The parent element would be Video [E0].
> 
> 
> Element Name: Colour
> Level:        4
> ID:           [55][B0]
> Mandatory:    -
> Multiple:     -
> Default:      -
> Type:         m
> Description:  Settings describing the colour format.
> 
> 
> Element Name: MatrixCoefficients
> Level:        5
> ID:           [55][B1]
> Mandatory:    -
> Multiple:     -
> Default:      2
> Type:         u
> Description:  The Matrix Coefficients of the video used to derive luma and
>               chroma values from reg, green, and blue color primaries. For
>               clarity, the value and meanings for MatrixCoefficients are adopted
>               from Table 4 of ISO/IEC 23001-8:2013/DCOR1. (0:GBR, 1: BT709,
>               2: Unspecified, 3: Reserved, 4: FCC, 5: BT470BG, 6: SMPTE 170M,
>               7: SMPTE 240M, 8: YCOCG, 9: BT2020 Non-constant Luminance,
>               10: BT2020 Constant Luminance) 
> 
> 
> Element Name: BitsPerChannel
> Level:        5
> ID:           [55][B2]
> Mandatory:    -
> Multiple:     -
> Default:      0
> Type:         u
> Description:  Number of decoded bits per channel. A value of 0 indicates that
>               the BitsPerChannel is unspecified.
> 
> 
> Element Name: ChromaSubsamplingHorz
> Level:        5
> ID:           [55][B3]
> Mandatory:    -
> Multiple:     -
> Default:      -
> Type:         u
> Description:  The amount of pixels to remove in the Cr and Cb channels for every
>               pixel not removed horizontally. Example: For video with 4:2:0
>               chroma subsampling, the ChromaSubsamplingHorz should be set to 1.
> 
> 
> Element Name: ChromaSubsamplingVert
> Level:        5
> ID:           [55][B4]
> Mandatory:    -
> Multiple:     -
> Default:      -
> Type:         u
> Description:  The amount of pixels to remove in the Cr and Cb channels for every
>               pixel not removed vertically. Example: For video with 4:2:0 chroma
>               subsampling, the ChromaSubsamplingVert should be set to 1.
> 
> Element Name: CbSubsamplingHorz
> Level:        5
> ID:           [55][B5]
> Mandatory:    -
> Multiple:     -
> Default:      -
> Type:         u
> Description:  The amount of pixels to remove in the Cb channel for every pixel
>               not removed horizontally. This is additive with
>               ChromaSubsamplingHorz. Example: For video with 4:2:1 chroma
>               subsampling, the ChromaSubsamplingHorz should be set to 1 and
>               CbSubsamplingHorz should be set to 1.
> 
> 
> Element Name: CbSubsamplingVert
> Level:        5
> ID:           [55][B6]
> Mandatory:    -
> Multiple:     -
> Default:      -
> Type:         u
> Description:  The amount of pixels to remove in the Cb channel for every pixel
>               not removed vertically. This is additive with
>               ChromaSubsamplingVert.
> 
> 
> Element Name: ChromaSitingHorz
> Level:        5
> ID:           [55][B7]
> Mandatory:    -
> Multiple:     -
> Default:      0
> Type:         u
> Description:  How Chroma is subsampled horizontally. (0: Unspecified, 1: Left 
>               collocated , 2: Half)
> 
> Element Name: ChromaSitingVert
> Level:        5
> ID:           [55][B8]
> Mandatory:    -
> Multiple:     -
> Default:      0
> Type:         u
> Description:  How Chroma is subsampled vertically. (0: Unspecified, 1: Top
>               collocated , 2: Half)
> 
> 
> Element Name: Range
> Level:        5
> ID:           [55][B9]
> Mandatory:    -
> Multiple:     -
> Default:      0
> Type:         u
> Description:  Clipping of the color ranges. (0: Unspecified, 1: Broadcast range,
>               2: Full range (no clipping), 3: Defined by
>               MatrixCoefficients/TransferCharacteristics)
> 
> 
> Element Name: TransferCharacteristics
> Level:        5
> ID:           [55][BA]
> Mandatory:    -
> Multiple:     -
> Default:      2
> Type:         u
> Description:  The transfer characteristics of the video. For clarity, the value
>               and meanings for TransferCharacteristics 1-15 are adopted from
>               Table 3 of ISO/IEC 23001-8:2013/DCOR1. TransferCharacteristics
>               16-17 are adopted from <265 doc> and 18 is the proposed value of
>               ARIB STD-B67. (0: Reserved, 1: ITU-R BT.709, 2: Unspecified,
>               3: Reserved, 4: Gamma 2.2 curve, 5: Gamma 2.8 curve,
>               6: SMPTE 170M, 7: SMPTE 240M, 8: Linear, 9: Log, 10: Log Sqrt,
>               11: IEC 61966-2-4, 12: ITU-R BT.1361 Extended Colour Gamut,
>               13: IEC 61966-2-1, 14: ITU-R BT.2020 10 bit,
>               15: ITU-R BT.2020 12 bit, 16: SMPTE ST 2084, 17: SMPTE ST 428-1
>               18: ARIB STD-B67 (HLG))
> 
> 
> Element Name: Primaries
> Level:        5
> Mandatory:    -
> Multiple:     -
> ID:           [55][BB]
> Default:      2
> Type:         u
> Description:  The colour primaries of the video. For clarity, the value and
>               meanings for Primaries are adopted from Table 2 of
>               ISO/IEC 23001-8:2013/DCOR1. (0: Reserved, 1: ITU-R BT.709,
>               2: Unspecified, 3: Reserved, 4: ITU-R BT.470M, 5: ITU-R BT.470BG,
>               6: SMPTE 170M, 7: SMPTE 240M, 8: FILM, 9: ITU-R BT.2020,
>               10: SMPTE ST 428-1, 22: JEDEC P22 phosphors)
> 
> 
> Element Name: MaxCLL
> Level:        5
> ID:           [55][BC]
> Mandatory:    -
> Multiple:     -
> Default:      -
> Type:         u
> Description:  Maximum brightness of a single pixel (Maximum Content Light Level)
>               in candelas per square meter (cd/m²).
> 
> 
> Element Name: MaxFALL
> Level:        5
> ID:           [55][BD]
> Mandatory:    -
> Multiple:     -
> Default:      -
> Type:         u
> Description:  Maximum brightness of a single full frame (Maximum Frame-Average
>               Light Level) in candelas per square meter (cd/m²).
> 
> 
> Element Name: MasteringMetadata
> Level:        5
> ID:           [55][D0]
> Mandatory:    -
> Multiple:     -
> Default:      -
> Type:         m
> Description:  SMPTE 2086 mastering data.
> 
> 
> Element Name: PrimaryRChromaticityX
> Level:        6
> ID:           [55][D1]
> Mandatory:    -
> Multiple:     -
> Range:        0.0 <= f <= 1.0
> Default:      -
> Type:         f
> Description:  Red X chromaticity coordinate as defined by CIE 1931.
> 
> 
> Element Name: PrimaryRChromaticityY
> Level:        6
> ID:           [55][D2]
> Mandatory:    -
> Multiple:     -
> Range:        0.0 <= f <= 1.0
> Default:      -
> Type:         f
> Description:  Red Y chromaticity coordinate as defined by CIE 1931.
> 
> 
> Element Name: PrimaryGChromaticityX
> Level:        6
> ID:           [55][D3]
> Mandatory:    -
> Multiple:     -
> Range:        0.0 <= f <= 1.0
> Default:      -
> f
> Description:  Green X chromaticity coordinate as defined by CIE 1931.
> 
> 
> Element Name: PrimaryGChromaticityY
> Level:        6
> ID:           [55][D4]
> Mandatory:    -
> Multiple:     -
> Range:        0.0 <= f <= 1.0
> Default:      -
> Type:         f
> Description:  Green Y chromaticity coordinate as defined by CIE 1931.
> 
> 
> Element Name: PrimaryBChromaticityX
> Level:        6
> ID:           [55][D5]
> Mandatory:    -
> Multiple:     -
> Range:        0.0 <= f <= 1.0
> Default:      -
> Type:         f
> Description:  Blue X chromaticity coordinate as defined by CIE 1931.
> 
> 
> Element Name: PrimaryBChromaticityY
> Level:        6
> ID:           [55][D6]
> Mandatory:    -
> Multiple:     -
> Range:        0.0 <= f <= 1.0
> Default:      -
> Type:         f
> Description:  Blue Y chromaticity coordinate as defined by CIE 1931.
> 
> 
> Element Name: WhitePointChromaticityX
> Level:        6
> ID:           [55][D7]
> Mandatory:    -
> Multiple:     -
> Range:        0.0 <= f <= 1.0
> Default:      -
> Type:         f
> Description:  White point X chromaticity coordinate as defined by CIE 1931.
> 
> 
> Element Name: WhitePointChromaticityY
> Level:        6
> ID:           [55][D8]
> Mandatory:    -
> Multiple:     -
> Range:        0.0 <= f <= 1.0
> Default:      -
> Type:         f
> Description:  White point Y chromaticity coordinate as defined by CIE 1931.
> 
> 
> Element Name: LuminanceMax
> Level:        6
> ID:           [55][D9]
> Mandatory:    -
> Multiple:     -
> Range:        0.0 <= f <= 9999.99
> Default:      -
> Type:         f
> Description:  Maximum luminance. Shall be represented in candelas per square
>               meter (cd/m²).
> 
> 
> Element Name: LuminanceMin
> Level:        6
> ID:           [55][DA]
> Mandatory:    -
> Multiple:     -
> Range:        0.0 <= f <= 999.9999
> Default:      -
> Type:         f
> Description:  Minimum luminance. Shall be represented in candelas per square
>               meter (cd/m²).
> 
>  
> [IEC23001-8] ISO/IEC 23001-8:2013/DCOR1, "Coding independent media description code points", 2013, <http://standards.iso.org/ittf/PubliclyAvailableStandards/c062088_ISO_IEC_23001-8_2013.zip <http://standards.iso.org/ittf/PubliclyAvailableStandards/c062088_ISO_IEC_23001-8_2013.zip>>.
> 
> <reference to h265 doc)


[...]

Those interested in standardization efforts for EBML, Matroska, and FFV1 are encouraged to join the CELLAR Working Group. https://datatracker.ietf.org/wg/cellar/charter/ <https://datatracker.ietf.org/wg/cellar/charter/>.

Best Regards,
Dave Rice