Re: [Cellar] [Matroska-devel] Colour Format proposal
Steve Lhomme <slhomme@matroska.org> Mon, 28 March 2016 12:05 UTC
Return-Path: <slhomme@matroska.org>
X-Original-To: cellar@ietfa.amsl.com
Delivered-To: cellar@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 89F9D12D8A7 for <cellar@ietfa.amsl.com>; Mon, 28 Mar 2016 05:05:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=matroska-org.20150623.gappssmtp.com
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 dZ2-DINvkDeL for <cellar@ietfa.amsl.com>; Mon, 28 Mar 2016 05:05:40 -0700 (PDT)
Received: from mail-qk0-x236.google.com (mail-qk0-x236.google.com [IPv6:2607:f8b0:400d:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 522AB12D174 for <cellar@ietf.org>; Mon, 28 Mar 2016 05:05:40 -0700 (PDT)
Received: by mail-qk0-x236.google.com with SMTP id s5so107246598qkd.0 for <cellar@ietf.org>; Mon, 28 Mar 2016 05:05:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=matroska-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=ucpXbde3QYujpayRci053dFRyCxPTsCIxu5c94pgn5g=; b=HaGmquZhdjPGuuZSHxCmrOWzVo+3KnDF+el0hjYTBqHrS0gE2tV9Da9v2fxe3dCg0o 2MM9XPkTaPHZie3HkuCA3q7tEumrXFOTvIOW4Lp2SGKqH8oha/6jjtZ0RSjdA1FH6lde ctzMeh1x8CbRFiJPamcCGbR99ENLzaqDnlAID0L6OhoxVel+do9kcYQ+KliLjiIQ9GSU EE8/w/Ybg3p5+Eo1WfpM8i1sz4sGzdxiCmMqEUM5ASQANUuwUPVhZMoHXqpt/PWMopTD 6CUM/Y203wH1gwMp0doESk985x8h9MDJpYozFlE0d85cO8KoeEjvrPA2S5qz2q7xvkjC 3usA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=ucpXbde3QYujpayRci053dFRyCxPTsCIxu5c94pgn5g=; b=O+7/OgN//kgIq768aNCtA9aIrT/FJ/a9Kl5RkJPLDOuVmBWRht/yPkAGKMJs7x5CIY AJHPBMdYc28QibvgaHlmZKaC39S14oUq8hlMvlkbcB3s73r2l66tXjrv2SevNg30JR8e Qx86ZJBuV6Zq/NuDYTMzmlIKR2CqAUO38k+JbWA/3CRUSy07qCptUQFHYsRX5WJ9X6Ai g44O1m9MnDjmzpUfLZeVAuZw7A9r8kKuAXVx6sXYsy8E4zFHJxyDZM3oQZuchnSBzCO0 9d2Ekeq4bgFF939PWuol7fU3oHi3MSzJpRlATiRCM4miZVNW0ZocngoTS2DHVCCGuKcq ADcw==
X-Gm-Message-State: AD7BkJIgo2Bqic0xP20rvZns01EsLpRQ0mbPf2QS0VBZmhfjtg3xHTjBxhfF1h1Pd2dx1O2xPM49/oPSzLbWJg==
MIME-Version: 1.0
X-Received: by 10.37.71.130 with SMTP id u124mr2147533yba.93.1459166739326; Mon, 28 Mar 2016 05:05:39 -0700 (PDT)
Received: by 10.83.28.196 with HTTP; Mon, 28 Mar 2016 05:05:39 -0700 (PDT)
In-Reply-To: <CAJGH+Uv6KtJdQqG79xkDdR1pJZzjiSF3WZ1znvAPhuft-qFh_A@mail.gmail.com>
References: <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> <20160219214538.GL4557@nb4> <CAJGH+Uv6KtJdQqG79xkDdR1pJZzjiSF3WZ1znvAPhuft-qFh_A@mail.gmail.com>
Date: Mon, 28 Mar 2016 14:05:39 +0200
Message-ID: <CAOXsMFJCXQxbqKsfcGwjhZZnVS5-n6fcmo6cwsgnDUFZsOEdfA@mail.gmail.com>
From: Steve Lhomme <slhomme@matroska.org>
To: Frank Galligan <frankgalligan@gmail.com>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <http://mailarchive.ietf.org/arch/msg/cellar/Zrn6zOQpzqyNHaeAGDaH5LmsLfI>
Cc: Michael Niedermayer <michael@niedermayer.cc>, Jerome Martinez <jerome@mediaarea.net>, cellar@ietf.org, Discussion about the current and future development of Matroska <matroska-devel@lists.matroska.org>, Dave Rice <dave@dericed.com>
Subject: Re: [Cellar] [Matroska-devel] Colour Format proposal
X-BeenThere: cellar@ietf.org
X-Mailman-Version: 2.1.17
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: Mon, 28 Mar 2016 12:05:42 -0000
2016-03-17 5:46 GMT+01:00 Frank Galligan <frankgalligan@gmail.com>: > OK really no comments for a long time. > > On Fri, Feb 19, 2016 at 1:45 PM, Michael Niedermayer > <michael@niedermayer.cc> wrote: >> >> Hi >> >> On Thu, Feb 18, 2016 at 11:50:27AM -0800, Frank Galligan wrote: >> > 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. >> > >> >> what would this be set to for old 16bit rgb, that is 5 bit red >> 6 bit green, 5 bit blue rawvideo. >> This maybe does not matter and iam not strongly suggesting to add it, >> rather i want to point it out so its not unintentionally forgotten > > > I didn't get into RGB here. As you said 565, 551, there are a good amount of > combinations. I think DirectShow (or maybe it was DirectDraw) that had > R,G,B, and A masks to show which bits belonged to which channel. I also > worked with formats like RGBBGR repeating. >> >> >> >> [...] >> >> > 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. >> >> What if Cr is subsampled more than Cb ? >> That too is rather obscure, but theres code in FFmpeg to handle such >> jpegs, so i suspect this case while very rare is not entirely non >> existent ... > > > I guess we can add that as well if more people really want it. Actually I > didn't even have CbSubsampling* elements at first. I only added that to > support the 4:2:1 format that was defined in the first enum. >> >> >> >> > >> > >> > 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) >> > >> >> iam not sure this is enough to specify all variants >> for 4:2:0 alone there are a few different variants >> theres mpeg1 style >> mpeg2 progressive and interlaced >> the mpeg2/mpeg4 style also differs from itself if the image is fliped >> right-left >> cropping 1 or 2 lines of the top of mpeg2 yuv420 also results in >> different variants > > > > I also didn't get into interlaced. > > > > I don't think we should add enough elements to support every format that was > ever produced. Opinions? For archival (one of the main goal here) I think we should. > I think we should probably strive to support 99% of what is currently > produced today. Opinions? The problem is that when you leave 1% out, you need to be sure it's possible to integrate it later. Usually the best approach is to know beforehand how you're going to do it. So in the end it's just like covering it. That's just a general remark though. > Next what are we missing and what do you think we need to add to support the > formats? > > > Would adding interlaced and horizontal flip elements be enough to support > the 4:2:0 that people are using today? >> >> >> [...] >> >> -- >> Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB >> >> No snowflake in an avalanche ever feels responsible. -- Voltaire > > > > _______________________________________________ > Cellar mailing list > Cellar@ietf.org > https://www.ietf.org/mailman/listinfo/cellar > -- Steve Lhomme Matroska association Chairman
- [Cellar] Colour Format proposal Frank Galligan
- Re: [Cellar] Colour Format proposal Timothy B. Terriberry
- Re: [Cellar] [Matroska-devel] Colour Format propo… Michael Bradshaw
- Re: [Cellar] Colour Format proposal Dave Rice
- Re: [Cellar] Colour Format proposal Jerome Martinez
- Re: [Cellar] [Matroska-devel] Colour Format propo… Jerome Martinez
- Re: [Cellar] Colour Format proposal Michael Niedermayer
- Re: [Cellar] Colour Format proposal Frank Galligan
- Re: [Cellar] [Matroska-devel] Colour Format propo… Frank Galligan
- Re: [Cellar] Colour Format proposal Frank Galligan
- Re: [Cellar] Colour Format proposal Frank Galligan
- Re: [Cellar] Colour Format proposal Jerome Martinez
- Re: [Cellar] Colour Format proposal Peter B.
- Re: [Cellar] Colour Format proposal Jerome Martinez
- Re: [Cellar] Colour Format proposal Dave Rice
- Re: [Cellar] Colour Format proposal Steve Lhomme
- Re: [Cellar] Colour Format proposal Frank Galligan
- Re: [Cellar] [Matroska-devel] Colour Format propo… Dave Rice
- Re: [Cellar] [Matroska-devel] Colour Format propo… Steve Lhomme
- Re: [Cellar] [Matroska-devel] Colour Format propo… Frank Galligan
- Re: [Cellar] [Matroska-devel] Colour Format propo… Frank Galligan
- Re: [Cellar] Colour Format proposal Jerome Martinez
- Re: [Cellar] Colour Format proposal Frank Galligan
- Re: [Cellar] Colour Format proposal Frank Galligan
- Re: [Cellar] [Matroska-devel] Colour Format propo… Dave Rice
- Re: [Cellar] [Matroska-devel] Colour Format propo… Jerome Martinez
- Re: [Cellar] [Matroska-devel] Colour Format propo… Steve Lhomme
- Re: [Cellar] Colour Format proposal Peter B.
- Re: [Cellar] [Matroska-devel] Colour Format propo… Frank Galligan
- Re: [Cellar] [Matroska-devel] Colour Format propo… Dave Rice
- Re: [Cellar] [Matroska-devel] Colour Format propo… Frank Galligan
- Re: [Cellar] [Matroska-devel] Colour Format propo… Frank Galligan
- Re: [Cellar] Colour Format proposal Reto Kromer
- Re: [Cellar] [Matroska-devel] Colour Format propo… Frank Galligan
- Re: [Cellar] [Matroska-devel] Colour Format propo… Frank Galligan
- Re: [Cellar] [Matroska-devel] Colour Format propo… Dave Rice
- Re: [Cellar] [Matroska-devel] Colour Format propo… Michael Niedermayer
- Re: [Cellar] [Matroska-devel] Colour Format propo… Frank Galligan
- Re: [Cellar] [Matroska-devel] Colour Format propo… Steve Lhomme
- Re: [Cellar] [Matroska-devel] Colour Format propo… Frank Galligan
- Re: [Cellar] [Matroska-devel] Colour Format propo… Reto Kromer
- Re: [Cellar] [Matroska-devel] Colour Format propo… Steve Lhomme
- Re: [Cellar] [Matroska-devel] Colour Format propo… Dave Rice
- Re: [Cellar] [Matroska-devel] Colour Format propo… Steve Lhomme
- Re: [Cellar] Colour Format proposal Kieran O Leary
- Re: [Cellar] Colour Format proposal Kieran O Leary
- Re: [Cellar] Colour Format proposal Dave Rice
- Re: [Cellar] Colour Format proposal Dave Rice