Re: [codec] Multi-mode frame concatenation

Ralph Giles <giles@thaumas.net> Fri, 29 July 2011 17:53 UTC

Return-Path: <giles@thaumas.net>
X-Original-To: codec@ietfa.amsl.com
Delivered-To: codec@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D1D2D21F8B13 for <codec@ietfa.amsl.com>; Fri, 29 Jul 2011 10:53:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.516
X-Spam-Level:
X-Spam-Status: No, score=-2.516 tagged_above=-999 required=5 tests=[AWL=0.461, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rs6PVNrJXFED for <codec@ietfa.amsl.com>; Fri, 29 Jul 2011 10:53:03 -0700 (PDT)
Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by ietfa.amsl.com (Postfix) with ESMTP id 426FF21F8AE1 for <codec@ietf.org>; Fri, 29 Jul 2011 10:53:03 -0700 (PDT)
Received: by vws12 with SMTP id 12so3625144vws.31 for <codec@ietf.org>; Fri, 29 Jul 2011 10:53:02 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.220.213.195 with SMTP id gx3mr467718vcb.23.1311961982511; Fri, 29 Jul 2011 10:53:02 -0700 (PDT)
Received: by 10.220.184.6 with HTTP; Fri, 29 Jul 2011 10:53:02 -0700 (PDT)
X-Originating-IP: [66.119.183.150]
In-Reply-To: <4E32EE61.1040304@fas.harvard.edu>
References: <4E320353.5050505@fas.harvard.edu> <CAEW_Rkva4BmyXqVYzVHmuq3FX8yxRBp876P8pRRt_k2VeMGqXQ@mail.gmail.com> <4E32EE61.1040304@fas.harvard.edu>
Date: Fri, 29 Jul 2011 10:53:02 -0700
Message-ID: <CAEW_RksrWp+Jx2pbd=RN4mFxje=GXY0BfCNt2YLG4Y24YUj3bg@mail.gmail.com>
From: Ralph Giles <giles@thaumas.net>
To: bens@alum.mit.edu
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Cc: "codec@ietf.org" <codec@ietf.org>
Subject: Re: [codec] Multi-mode frame concatenation
X-BeenThere: codec@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Codec WG <codec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/codec>, <mailto:codec-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/codec>
List-Post: <mailto:codec@ietf.org>
List-Help: <mailto:codec-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/codec>, <mailto:codec-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 29 Jul 2011 17:53:03 -0000

On 29 July 2011 10:31, Benjamin M. Schwartz wrote:

> For some definitions of backwards compatibility, yes.  The draft's text
> indicates that this extensibility is deliberate.  I'm not sure where you
> get 14; I get (64-49)*4 = 60, at a minimum.

I was doing 63 - 48, or using the lower four bits of M when the upper two
bits are set, with b110000 taken for the maximum value of 48, which I
overcounted in the previous email. I now get 15 extension options.

Do you mean using lower values of M when the config field indicates
the frame has a longer duration?

> This is all extremely accurate.  I had originally intended (following the
> language in your diagram) for Compressed frame 1 to consist of N1-1 bytes,
> so that its entirety (including the TOC byte) had size N1.  However, I now
> see that your version is superior, as otherwise it would be impossible to
> represent the max-size frame (1275 bytes, or 1276 with the TOC byte).

Ok, good.

>> It's also possible to just discard the initial stereo flag and config
>> if the extra bandwidth is judged worth the complexity savings.
>
> This was my intent.  Without code, I think complexity is hard to judge, so
>  don't yet have a strong opinion.

The Opus framing tries hard to save bytes elsewhere, so it seems
reasonable to me. I look forward to your implementation experience. :)

Cheers,
 -r