Re: [codec] I-D Action: draft-ietf-codec-oggopus-11.txt

Mark Harris <mark.hsj@gmail.com> Wed, 03 February 2016 11:27 UTC

Return-Path: <markh.sj@gmail.com>
X-Original-To: codec@ietfa.amsl.com
Delivered-To: codec@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C5CE81B3420 for <codec@ietfa.amsl.com>; Wed, 3 Feb 2016 03:27:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] 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 fMVakklQnbzK for <codec@ietfa.amsl.com>; Wed, 3 Feb 2016 03:27:53 -0800 (PST)
Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (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 4D6701B341D for <codec@ietf.org>; Wed, 3 Feb 2016 03:27:53 -0800 (PST)
Received: by mail-ig0-x232.google.com with SMTP id z14so83373617igp.1 for <codec@ietf.org>; Wed, 03 Feb 2016 03:27:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=88vKuA7fnISYlUzAJ3i8s3uhAvJkOsAxT70poWCOKuY=; b=C36ZpeCpKPACxgPmO1ZD52LLHB8xGHvLCWvstIZmJQDFszKGE3G64Nz/d+dOpNpZPL T4XlbYT9ZXImKdUYkpHOh+6+Ao54MPwenBBZYMRXxjDjE04nDtQigYPLivai/zGzAqLU cgNOS4eKMiL5TstNSSbOu2aMWqcemZ5ZPE4xRQMzBkWIprYfaAJuKeuQlk5m9uF9r6D2 3z1jDqoqOeM3uoFsfyPLEmuVsgiPWE9Ae4r94H5a3yTAHyNW7n4asZukPdcvUsUWYQvc U6F6QAgPCaud7mw9ZJKhXgylhvR1eH7LAjqYpl82pNLurKJY5GTXafTmKlRfonHy/5EP bzoQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=88vKuA7fnISYlUzAJ3i8s3uhAvJkOsAxT70poWCOKuY=; b=JmsYJe5Vyibg6QjiGoTQpdlMVlfzTZV5fBqAN4a5rbUxlWUQRJjDCSChfYfCIayUuM Hjdp7OzN0Y4LZM97uV6UfMrdkUTlVOlBMA/S5qXvJlu1rALK3rg7qnAHcz4490YVU58Y EQEaT//MDUSVsaVwbsg/FuxQPS+1F25kOlxdewLfUwT2P3ECqRzX4Nv/+kH8HT7Y8xP1 fNGcsu8nr3kos7LiwuEtNZiQFmSXm8GDtB/bH7X81/gcFlqQbFI5FZqAZwk7D90VnFf3 yJ44TXeGo4MbryCyRH2D2uFL4N2yiNk787mq9/UhJHwzAmqJjzKCOUbbpW5y01EyDFXr 76GQ==
X-Gm-Message-State: AG10YORmSBiTpmwsLAe+sWnJ6F56xUulFxhbukk3WuX7gVr2H2hj8dJIvV7Qx5g+VoBDvQOGvhwIKBpmiMgwsw==
MIME-Version: 1.0
X-Received: by 10.50.20.197 with SMTP id p5mr23619974ige.89.1454498872763; Wed, 03 Feb 2016 03:27:52 -0800 (PST)
Sender: markh.sj@gmail.com
Received: by 10.107.10.96 with HTTP; Wed, 3 Feb 2016 03:27:52 -0800 (PST)
In-Reply-To: <56B13E86.107@xiph.org>
References: <20160128183904.8076.80585.idtracker@ietfa.amsl.com> <CAMdZqKFApRv390i-J0=j5on2RA3Sn6__wX=VDqtux0ETtz4thw@mail.gmail.com> <56B13E86.107@xiph.org>
Date: Wed, 03 Feb 2016 03:27:52 -0800
X-Google-Sender-Auth: cgIZUzgDHHWvvU9c6S8hlkKWWEI
Message-ID: <CAMdZqKFW9ksafBKTYUExqfP+oT8WRRXMscpH-DzSAhrNaEbrgA@mail.gmail.com>
From: Mark Harris <mark.hsj@gmail.com>
To: "Timothy B. Terriberry" <tterribe@xiph.org>, "codec@ietf.org" <codec@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <http://mailarchive.ietf.org/arch/msg/codec/2EJ6qxWbYUUgb0e3Ul7vWaxN-Sk>
Subject: Re: [codec] I-D Action: draft-ietf-codec-oggopus-11.txt
X-BeenThere: codec@ietf.org
X-Mailman-Version: 2.1.15
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: <https://mailarchive.ietf.org/arch/browse/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: Wed, 03 Feb 2016 11:27:54 -0000

>>      It is possible to run an Opus decoder at other sampling rates, but
>> a sampling rate of 48 kHz is sufficient to capture the full audio
>> bandwidth of any Opus packet.  Therefore, the value in the granule
>> position field always counts samples assuming a 48 kHz decoding rate
>> ...
>
>
> I think this loses the important property that the other sample rates evenly
> divide 48 kHz. That property implies that a 48 kHz rate is sufficient to
> capture sample-accurate timing information without having to introduce
> specific rules around propagation of rounding errors, etc., regardless of
> the sample rate used at either endpoint. That is why we chose 48 kHz instead
> of say, 40 kHz (which would also have been sufficient to capture the full
> audio bandwidth, but would have made sample-accurate operations quite
> cumbersome).
>
> Would you be satisfied with saying, "It is possible to run the decoder in
> the Opus reference implementation at other sampling rates..." instead?
>

The request that led to the additional text was a request to clarify
that a fixed 48 kHz rate for the granule position is sufficiently
broad to cover all needed cases.  I'm not sure that an explanation
based solely on the decoding rates supported by a particular
implementation addresses that.  If anything it actually draws
attention to the question (without answering it) of whether the chosen
fixed rate is sufficiently broad, or is tailored to the needs of that
particular implementation.

How about this:

"It is possible to run an Opus decoder at other sampling rates, but
all Opus packets encode samples at a sampling rate that evenly divides
48 kHz.  Therefore, the value in the granule position field always
counts samples assuming a 48 kHz decoding rate..."

 - Mark