Re: [Cellar] IANA considerations for EBML?

Steve Lhomme <slhomme@matroska.org> Tue, 12 July 2016 19:25 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 9326E12D0CD for <cellar@ietfa.amsl.com>; Tue, 12 Jul 2016 12:25:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, 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 SFWROO10zCIn for <cellar@ietfa.amsl.com>; Tue, 12 Jul 2016 12:25:06 -0700 (PDT)
Received: from mail-yw0-x22f.google.com (mail-yw0-x22f.google.com [IPv6:2607:f8b0:4002:c05::22f]) (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 59A7712B005 for <cellar@ietf.org>; Tue, 12 Jul 2016 12:25:06 -0700 (PDT)
Received: by mail-yw0-x22f.google.com with SMTP id l125so23110721ywb.2 for <cellar@ietf.org>; Tue, 12 Jul 2016 12:25:06 -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=sTm1AxxRUiwdIbduVub1OAiKz58Shhx+xuoeRLPIoEI=; b=exE6VI0+y1gih+2nSgRbKuau2sd5eTlqZpQwrMmv00ec3H3iIjq3UR/3S6NGAHkn1T QGIqaDZqitR0ewr9+TUSLt7gZZ1shkQOTxAWgSlL68ayIOHdSVWkhYwkuvsSnxH544DM GIadrgiJ6sSgR68TB2qum8vg4RMB45hz9qis8QwKRWtL0IucsetCyCemeqSe4KfHkmzK x6i8TA8NnyYJgOoVBB0ed1VNfLB0u93RDmvi2QeWfaNJlGZAO1EXNFD3w1dPdKQjZCbZ SOnKeG1Lxz7rTjJAbxbm3+sxFkmDMqWvAighIf8wbMKOtKsWB/eq6mGovFX5pbfONFmr JgHQ==
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=sTm1AxxRUiwdIbduVub1OAiKz58Shhx+xuoeRLPIoEI=; b=Jk4gJJMbEgrvMWv1/2qkuqnaMW92XyZMbqKWZEpoJLzTUrHUU6JyvnWhc/9FAnt0fE k4sGCj7F06Xtd7qavNvFOs9lxYjKI7c/kxuUa8q0MsbCnB9aFf4fyY0sbvKGXx/In2bV WE1GTU4W4GKYBxxy9SoYCFt8tgivV4ODG6LVvJwlYetnXN0tV3MdObc2fE3H3IQ1iOL/ RFwx6dzh3XuB5Z1EPpz1lT0zCM24obFIm0SurBAG2da8s5gE+67Zd1ui1XGw3OqQy4/U 5lccK8mLTqmAsHWKVzVUh2HLr5r6kiJw7ge4K3BcP7FBp5b/L+pUVB5zXR7vUtJmdTmx gJqw==
X-Gm-Message-State: ALyK8tJOyecZgDixej0/4DLWvHUsP5y12IbCJv/H3wTOUOeJor7RUlklbhT1ZWz24ySRlLu8N0ToBz1iThQQhw==
MIME-Version: 1.0
X-Received: by 10.129.135.5 with SMTP id x5mr3200003ywf.114.1468351505531; Tue, 12 Jul 2016 12:25:05 -0700 (PDT)
Received: by 10.83.53.198 with HTTP; Tue, 12 Jul 2016 12:25:05 -0700 (PDT)
Received: by 10.83.53.198 with HTTP; Tue, 12 Jul 2016 12:25:05 -0700 (PDT)
In-Reply-To: <7E6C6723-C1D7-498E-A110-4F34BB5C1393@dericed.com>
References: <40AB6601-0ED9-4998-BB29-EA313EC0D3AD@dericed.com> <20160707075013.ouhu67n5haj6bmy6@bunkus.org> <CAEk7qkE5Bs3CikWX1U-5B6fpSUk+v=sPviGUYaEviqHCo64OaA@mail.gmail.com> <CAOXsMFKQs387OkF45s2CHXiMZ=fLh2NmXOOxr9Hw8km-hKP7sw@mail.gmail.com> <F098FE27-06F5-4583-88E0-84A6DFD62250@dericed.com> <CAOXsMFKf=uegjN7UoNCnCrMzUi45k_FyY9xJcGLfj7RLFOOazA@mail.gmail.com> <7E6C6723-C1D7-498E-A110-4F34BB5C1393@dericed.com>
Date: Tue, 12 Jul 2016 21:25:05 +0200
Message-ID: <CAOXsMFJdMbQSeeeH3iA+LpEAVrmGV-vW6fiH_+1zHq5YHHqE3w@mail.gmail.com>
From: Steve Lhomme <slhomme@matroska.org>
To: Dave Rice <dave@dericed.com>
Content-Type: multipart/alternative; boundary="001a114f11c6e4c4fb05377539d0"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cellar/bdLfldsG7bK9A_DXaN9D1Mjkmkw>
Cc: Moritz Bunkus <moritz@bunkus.org>, cellar@ietf.org, Ashley Blewer <ashley.blewer@gmail.com>
Subject: Re: [Cellar] IANA considerations for EBML?
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: Tue, 12 Jul 2016 19:25:09 -0000

That's why I said "unless there's junk in it".

Anyway my real point is that MIME type should follow the semantic, not the
underlying format.
Le 12 juil. 2016 21:13, "Dave Rice" <dave@dericed.com> a écrit :

>
> > On Jul 12, 2016, at 2:52 PM, Steve Lhomme <slhomme@matroska.org> wrote:
> >
> > 2016-07-12 20:48 GMT+02:00 Dave Rice <dave@dericed.com>:
> >>
> >>> On Jul 12, 2016, at 2:42 PM, Steve Lhomme <slhomme@matroska.org>
> wrote:
> >>>
> >>> I agree too. Although an EBML document, unless there's junk in it, can
> >>> be fully parsed.
> >>
> >> But if you have an unknown sized Element, then how would you know when
> it ends. IIUC semantic-aware EBML parsing and non-semantic-aware EBML
> parsing differ at Elements with unknown sizes.
> >
> > You can still find the ID+Size of that element. You will never be able
> > to go back to an upper level Element after that, though.
>
> In the present EBML spec, after
> https://github.com/Matroska-Org/ebml-specification/pull/50/files#diff-01f3b0f2fbf3e44327e6072f64ddc8a0
> :
>
> "When EBML is used in transmission or streaming, data that is not part of
> an EBML Element is permitted to be present within a Master-element. In this
> case, the reader should skip data until a valid Element ID of the same
> level or the next greater level of the Master-element is found."
>
> You may have
> <masterelement size="unknown">
>         <junk/>
>         <childelement/>
> </masterelement>
>
> The <junk> may contain things that look like elements. If enough junk
> you'll even be likely to false-identify a Void Element. It isn't possible
> to know what is junk and what isn't within an unknown-sized element without
> the semantics.
>
> >>> IMO a MIME type would imply that it should be used
> >>> regardless of the EBML format. But that's not what we want. Each
> >>> DocType should have its own matching MIME type.
> >>
> >> +1
> >>
> >>> 2016-07-07 14:16 GMT+02:00 Ashley Blewer <ashley.blewer@gmail.com>:
> >>>> Agreeing with the above and adding "This document makes no requests of
> >>>> IANA." We can update later if necessary.
> >>>>
> >>>> Ashley Blewer
> >>>>
> >>>> On Thu, Jul 7, 2016 at 3:50 AM, Moritz Bunkus <moritz@bunkus.org>
> wrote:
> >>>>>
> >>>>> Hey,
> >>>>>
> >>>>> I'm not convinced that we need a MIME type for EBML. This is a bit
> >>>>> different than XML (there's a MIME type for XML). With XML it makes
> >>>>> sense to have tools that can deal with the general container format
> >>>>> (XML) even if they cannot deal with the specific XML application
> >>>>> (e.g. namespaces, XSD style sheets). This is possible as XML's
> structure
> >>>>> can be understood at a basic level without knowing anything about the
> >>>>> intended use as there are special characters at the container level
> (<,
> >>>>>> ) which must not occur in the content unless they're escaped.
> >>>>>
> >>>>> This does not apply to EBML. If you don't know the specific EBML
> >>>>> application (e.g. the Matroska schema) then you cannot determine the
> >>>>> EBML document's structure safe for the EBML header. Hence you cannot
> >>>>> write a general tool showing you an tree of all EBML elements for any
> >>>>> EBML file.
> >>>>>
> >>>>> This would be a vote for including a section stating that we don't
> >>>>> require anything from the IANA.
> >>>>>
> >>>>> Kind regards,
> >>>>> mosu
> >>>>>
> >>>>> _______________________________________________
> >>>>> Cellar mailing list
> >>>>> Cellar@ietf.org
> >>>>> https://www.ietf.org/mailman/listinfo/cellar
> >>>>
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> Cellar mailing list
> >>>> Cellar@ietf.org
> >>>> https://www.ietf.org/mailman/listinfo/cellar
> >>>>
> >>>
> >>>
> >>>
> >>> --
> >>> Steve Lhomme
> >>> Matroska association Chairman
> >>>
> >>> _______________________________________________
> >>> Cellar mailing list
> >>> Cellar@ietf.org
> >>> https://www.ietf.org/mailman/listinfo/cellar
> >>
> >
> >
> >
> > --
> > Steve Lhomme
> > Matroska association Chairman
>
>