Re: [codec] it MUST NOT exceed 1275 bytes?

"Benjamin M. Schwartz" <> Mon, 25 July 2011 17:27 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 977B121F8B71 for <>; Mon, 25 Jul 2011 10:27:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2.999
X-Spam-Status: No, score=-2.999 tagged_above=-999 required=5 tests=[AWL=0.600, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id VwTKCL6SkiHd for <>; Mon, 25 Jul 2011 10:27:13 -0700 (PDT)
Received: from ( []) by (Postfix) with ESMTP id B4DAF21F8BC1 for <>; Mon, 25 Jul 2011 10:27:13 -0700 (PDT)
Received: from (localhost.localdomain []) by (Postfix) with ESMTP id 014AC46DE72; Mon, 25 Jul 2011 13:27:13 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed;; h= message-id:date:from:reply-to:mime-version:to:cc:subject :references:in-reply-to:content-type; s=mail; bh=3s/c4mFLSNYLMrR njMw0rCcGkwXZtzXXVyNNpp1vP9s=; b=snr5nwh4srtAc/Pryq73rYPIhtIMmol k3WyMlIzcYgH8DLzE1eOy9mtblae+wosWYhh0CC7XyQ+4BKgbrwnCiaN6if/1eOi P6UIUIBuBkF5H5QBDtyUKN8bFUfHxWVk0Jw1H3+kIu7qH3Z0T4WJa29p4wqJ1obc ac/rE4FjlzXs=
DomainKey-Signature: a=rsa-sha1; c=simple;; h= message-id:date:from:reply-to:mime-version:to:cc:subject :references:in-reply-to:content-type; q=dns; s=mail; b=PcPztGPib 7a2fbj2K8Qg1C1fIDQmLsEDT1E/7jqiYAU+xjrMKGi7C3qt3mpp/t4dVNXdo5CPD TxY0+zzcK/Z2/MCKpddUjJYm84BxEUjFe1OeCVQsqYDuXbj57vyCGHKqW8gpWK6g WKQ6Gx0tYdZblDTjvgnznADgupxcFY5DMc=
Received: from [] ( []) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: bmschwar@fas) by (Postfix) with ESMTPSA id EE0AD46DE6B; Mon, 25 Jul 2011 13:27:12 -0400 (EDT)
Message-ID: <>
Date: Mon, 25 Jul 2011 13:27:09 -0400
From: "Benjamin M. Schwartz" <>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20110617 Lightning/1.0b2 Thunderbird/3.1.11
MIME-Version: 1.0
To: Christian Hoene <>
References: <007101cc4aee$e622bd50$b26837f0$>
In-Reply-To: <007101cc4aee$e622bd50$b26837f0$>
X-Enigmail-Version: 1.1.2
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigB26CEBE89F58193874249D97"
Subject: Re: [codec] it MUST NOT exceed 1275 bytes?
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Codec WG <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Mon, 25 Jul 2011 17:27:14 -0000

On 07/25/2011 01:18 PM, Christian Hoene wrote:
> 1) What must not exceed 1275 bytes, the total length of the payload or the
> length of the last VBR frame?

The latter.  No Opus frame may ever exceed 1275 bytes.

> 2) What are the calculations behind 1275?

"The maximum representable size is 255*4+255=1275 bytes."

Because the first N-1 frames in a packet cannot have a size greater than
1275, it would be very strange if this were permitted for the final frame.
 An unbounded frame size would also unreasonably increase the minimum
computational performance required of a conformant decoder.

> 3) The requirement "Repacketization by gateways, conference bridges, or
> other software." is not listed in the requirements draft.

Indeed, but the codec has a great deal of useful functionality beyond what
is required in that draft.

> As I still believe
> in the end-to-end principle, I also do not see the need for this
> requirement.

Opus is intended for use beyond the internet.

 Why do you need an Opus-to-Opus gateway if have can have
> end-to-end or if you can use a TURN server? 

An Opus-to-Opus gateway is appropriate when an Opus stream is being moved
between different networks, including non-IP-based networks, with
different limits and overheads related to packet size and rate.