Re: [Cellar] FFV1 Version 4

Michael Niedermayer <michael@niedermayer.cc> Tue, 05 January 2016 17:45 UTC

Return-Path: <michael@niedermayer.cc>
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 CCCB81ACE6F for <cellar@ietfa.amsl.com>; Tue, 5 Jan 2016 09:45:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham
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 NcvrnplREIsi for <cellar@ietfa.amsl.com>; Tue, 5 Jan 2016 09:45:38 -0800 (PST)
Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [IPv6:2001:4b98:c:538::197]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DE1351AC7E8 for <cellar@ietf.org>; Tue, 5 Jan 2016 09:45:37 -0800 (PST)
Received: from mfilter28-d.gandi.net (mfilter28-d.gandi.net [217.70.178.159]) by relay5-d.mail.gandi.net (Postfix) with ESMTP id B630B41C0AB; Tue, 5 Jan 2016 18:45:36 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at mfilter28-d.gandi.net
Received: from relay5-d.mail.gandi.net ([IPv6:::ffff:217.70.183.197]) by mfilter28-d.gandi.net (mfilter28-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 14TMsPd5Dwei; Tue, 5 Jan 2016 18:45:35 +0100 (CET)
X-Originating-IP: 213.47.64.66
Received: from localhost (chello213047064066.6.14.vie.surfer.at [213.47.64.66]) (Authenticated sender: michael@niedermayer.cc) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id E2A7A41C097; Tue, 5 Jan 2016 18:45:34 +0100 (CET)
Date: Tue, 05 Jan 2016 18:44:45 +0100
From: Michael Niedermayer <michael@niedermayer.cc>
To: Jerome Martinez <jerome@mediaarea.net>
Message-ID: <20160105174445.GC13213@nb4>
References: <CAO7v-1TCNOcqhv=JR5dMWhibD=kLyQwLztk8RG3v-rtegn7s7Q@mail.gmail.com> <E89E5459-836A-4FD7-BA52-6F75AFD67083@dericed.com> <20160105163439.GA13213@nb4> <568BF59B.6050106@mediaarea.net>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="gkQsIeIyLzf1kMz9"
Content-Disposition: inline
In-Reply-To: <568BF59B.6050106@mediaarea.net>
User-Agent: Mutt/1.5.21 (2010-09-15)
Archived-At: <http://mailarchive.ietf.org/arch/msg/cellar/M707Ca5DAFHj9TcuI38mVbRBEyY>
Cc: cellar@ietf.org, Kieran O Leary <kieran.o.leary@gmail.com>
Subject: Re: [Cellar] FFV1 Version 4
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: Tue, 05 Jan 2016 17:45:40 -0000

On Tue, Jan 05, 2016 at 05:55:55PM +0100, Jerome Martinez wrote:
> Le 05/01/2016 17:34, Michael Niedermayer a écrit :
> >On Tue, Jan 05, 2016 at 11:08:16AM -0500, Dave Rice wrote:
> >[...]
> >
> >>Some Header Adjustments
> >>- currently some values such as bit depth, display aspect ratio, and chroma subsampling are set per slice rather than per frame. Perhaps there is a reason I am not considering, but possibly some adjustment could improve the logic of the frame and slice headers.
> >the reason behind these being in slices is that slices should be
> >independantly decodable
> >If these would be in a single frame header and that frame header
> >is lost then none of the slices would be decodable (unless the
> >information is not needed to decode them)
> 
> We have problem about resilience in:
> - the ConfigurationRecord(). Very important, and not duplicated. So

the global header / extradata / ConfigurationRecord can and should
be duplicated at the container level.
repeating it at the codec level would make finding a duplicate element
relativly hard as one probably would have to scan the whole file.
A container could contain something like an index to point to
redundant copies, while at codec level this would not work so easily


> if we want resilience, we should first focus in it.
> - if the slice_size of the last slice is corrupted, we lose all
> slices (ok, we could decode each slice, let say slice_sizeof last
> slice and first byte of first slice). So there is not a so good
> resilience anyway.

its not hard to scan for slices with valid CRCs without knowing their
start/end. for each assumed end the size is just stored in 3 bytes
there which gives the start, and the crc is there easy to check
(Checking all these potential slice crcs can be done efficiently if
 iam not missing something)


> So I am not sure it helps so much to have display aspect ratio, and
> picture_structure in a slice header, without more work on resilience
> (slice synchro? something else?).

> If keep them per slice, maybe we
> should say in spec that all slices must have the exact same display
> aspect ratio and picture_structure per frame

agree (per frame all must match)


> (does the decoder
> support different picture_structures in a frame?)

different picture_structures in 1 frame dont make sense or do i
misunderstand ?


> 
> Additionally, picture_structure, sar_num, sar_dem (and other?) do
> not use to change (or they change as often as  chroma_planes,
> h_chroma_subsample, alpha_plane...), so we may consider to put them
> in the ConfigurationRecord() too (and we may need to take care of
> duplicating it in the container?)

they could optionally be put in the global ConfigurationRecord
but it should stay possible for them to change if thats what the
source video we encode is doing

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Good people do not need laws to tell them to act responsibly, while bad
people will find a way around the laws. -- Plato