Re: [codec] Conformance with unusual sample rates

"Benjamin M. Schwartz" <bmschwar@fas.harvard.edu> Fri, 18 November 2011 15:56 UTC

Return-Path: <bmschwar@fas.harvard.edu>
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 908D221F869E for <codec@ietfa.amsl.com>; Fri, 18 Nov 2011 07:56:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level:
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7hQ-3ZolxkGY for <codec@ietfa.amsl.com>; Fri, 18 Nov 2011 07:56:26 -0800 (PST)
Received: from us25.unix.fas.harvard.edu (us25.unix.fas.harvard.edu [140.247.35.201]) by ietfa.amsl.com (Postfix) with ESMTP id 9A41821F8678 for <codec@ietf.org>; Fri, 18 Nov 2011 07:56:26 -0800 (PST)
Received: from us25.unix.fas.harvard.edu (localhost.localdomain [127.0.0.1]) by us25.unix.fas.harvard.edu (Postfix) with ESMTP id 141B61D7DA2; Fri, 18 Nov 2011 10:56:24 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=fas.harvard.edu; h= message-id:date:from:reply-to:mime-version:to:cc:subject :references:in-reply-to:content-type; s=mail; bh=z/r40czn96I+2P9 gS/0t7v2R0Sun+izpQL+p+/zSZ6Y=; b=fu7+SXjkEqrc/wUrNF0U2KjFz1BSri1 gsqunb3Rx497v/t+F1KveeQnViLo41nEy6ym+XP1WZsw0X8w7eNg/oG7CgWNacvp tVqVAWoenuCSI4arCG40r6+aLJ1yV2OUWG6IedvVS+Ce0br9lNoxS03NtFPMSok/ 8pqzxR9Quzt8=
DomainKey-Signature: a=rsa-sha1; c=simple; d=fas.harvard.edu; h= message-id:date:from:reply-to:mime-version:to:cc:subject :references:in-reply-to:content-type; q=dns; s=mail; b=sJwnM4wbD lUJzxErsYtkYhH7NONYEniHUbdBjhREI6syVG/tN0kdt9xy8b3i8sSRdNHgZgY7t bV7PoY0ywTcjHgllVZn0ovQRJEga8Qjt3EfXxJW2XDqXWx10IQx7ILg552S0QxTE 7q4Lj/KurNqRUmpq4WWQSP4n5RpiIAZyiI=
Received: from [172.23.141.71] (bwhmaincampuspat25.partners.org [170.223.207.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: bmschwar@fas) by us25.unix.fas.harvard.edu (Postfix) with ESMTPSA id 0E5491D7D9F; Fri, 18 Nov 2011 10:56:24 -0500 (EST)
Message-ID: <4EC68024.8010308@fas.harvard.edu>
Date: Fri, 18 Nov 2011 10:56:20 -0500
From: "Benjamin M. Schwartz" <bmschwar@fas.harvard.edu>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110921 Lightning/1.0b2 Thunderbird/3.1.15
MIME-Version: 1.0
To: John Ridges <jridges@masque.com>
References: <4EC66BAE.9000600@masque.com>
In-Reply-To: <4EC66BAE.9000600@masque.com>
X-Enigmail-Version: 1.1.2
Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="------------enigD62933EA467C6ECE6E11BBE1"
Cc: codec@ietf.org
Subject: Re: [codec] Conformance with unusual sample rates
X-BeenThere: codec@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: bens@alum.mit.edu
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, 18 Nov 2011 15:56:30 -0000

On 11/18/2011 09:29 AM, John Ridges wrote:
> Is it possible to create a conforming (and
> thus unencumbered) Opus codec from the reference implementation that can
> use a sample rate of, say, 44100 Hz?

It depends what you mean.

One answer is "no".  Opus always operates at a fixed nominal samplerate of
48000 Hz.

Another answer is "yes", because you are of course always free to resample
your inputs before encoding, and to resample the outputs after decoding.
If you figure out a way to use less CPU by integrating your resampler into
the decoder then that's just a trivial implementation detail.

Another answer is "yes, in Opus-custom".  Opus-custom is a
non-interoperable Opus-derived codec development system, defined as part
of the Opus standard [1].  Opus-custom can be driven at different
samplerates, including 44100 Hz.

--Ben

P.S. I do agree that clarifying our text on this point might be helpful.

[1] http://tools.ietf.org/html/draft-ietf-codec-opus-10#section-6.2