Re: [Cellar] matroska and side data vs timecode

Jerome Martinez <jerome@mediaarea.net> Sun, 03 November 2019 10:59 UTC

Return-Path: <jerome@mediaarea.net>
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 C13C7120110 for <cellar@ietfa.amsl.com>; Sun, 3 Nov 2019 02:59:46 -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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=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 WSSqHXf-mXQv for <cellar@ietfa.amsl.com>; Sun, 3 Nov 2019 02:59:44 -0800 (PST)
Received: from 12.mo7.mail-out.ovh.net (12.mo7.mail-out.ovh.net [178.33.107.167]) (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 3E0191200E5 for <cellar@ietf.org>; Sun, 3 Nov 2019 02:59:43 -0800 (PST)
Received: from player693.ha.ovh.net (unknown [10.108.35.215]) by mo7.mail-out.ovh.net (Postfix) with ESMTP id 1256A136A63 for <cellar@ietf.org>; Sun, 3 Nov 2019 11:59:41 +0100 (CET)
Received: from mediaarea.net (p548F9A0D.dip0.t-ipconnect.de [84.143.154.13]) (Authenticated sender: jerome@mediaarea.net) by player693.ha.ovh.net (Postfix) with ESMTPSA id 22F3CBA5DAF5 for <cellar@ietf.org>; Sun, 3 Nov 2019 10:59:41 +0000 (UTC)
To: cellar@ietf.org
References: <00F6A0BF-2922-4BAC-AC73-EB888767886F@dericed.com> <CAOXsMF+_zZjKS9GRjBhpQMQ5dbQK04hph5x5o8UJjj5ngkaaMA@mail.gmail.com>
From: Jerome Martinez <jerome@mediaarea.net>
Message-ID: <3f63d94f-9507-ee67-ccfe-6b85d7a523fb@mediaarea.net>
Date: Sun, 03 Nov 2019 11:59:41 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <CAOXsMF+_zZjKS9GRjBhpQMQ5dbQK04hph5x5o8UJjj5ngkaaMA@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
X-Ovh-Tracer-Id: 12906472110578339985
X-VR-SPAMSTATE: OK
X-VR-SPAMSCORE: 0
X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrudduuddgvdefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenuc
Archived-At: <https://mailarchive.ietf.org/arch/msg/cellar/7KaV1TocGeBvMr2wHoVoai6LTpo>
Subject: Re: [Cellar] matroska and side data vs timecode
X-BeenThere: cellar@ietf.org
X-Mailman-Version: 2.1.29
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: Sun, 03 Nov 2019 10:59:47 -0000

On 03/11/2019 11:29, Steve Lhomme wrote:
> That seems like a big overhead. Is the 64 bits value necessary ? It
> seems 32 bits might be sufficient (saving 4 bytes). Maybe 40 if you
> need extra flags.

Advantage here is that we use a standardized and a lot used (in some 
domains) time code format, which can also be a direct dump from some 
sources, and it includes other data (color flag, binary group flags 
which can contain extra info etc), and could be exported to a SMPTE ST 
12 aware equipment without adaptation.

Other formats of time code, e.g. configuration (start time code, drop 
frame, frame rate...) in track header then a 32-bit number for each 
frame, could be implemented, but IMO it is just another format, 
independent. Both SMPTE ST 12 and a single number could be implemented, 
just different purposes/goals. Also sometimes the conversion from SMPTE 
ST 12 to other time code formats may be not lossless if you use just a 
number ("buggy" input with different drop frame info etc, differences 
would be lost).

In summary, both SMPTE ST 12 and just a number can work for time codes, 
but they have different goals, and one would not totally replace the 
other, just 2 "competing" formats.


> In general I'm not in favor of using tags for data that may be needed
> when remuxing, especially tied to a timestamp (yes, I mean timestamp).
> If the first frame is damaged, does the timecode apply to the second
> frame ? If the first frame timestamp wasn't 0, how do you know the
> difference you have to apply ?

Advantage here is the simplicity of the implementation, and also 
informing bout what is already done in tools e.g. FFmpeg.
Not bullet proof but often good enough.

[...]

Jérôme