Re: [codec] OggOpus: Rational for excluding replaygain tags?

Ralph Giles <> Wed, 07 November 2012 17:22 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 1271D21F8BF9 for <>; Wed, 7 Nov 2012 09:22:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id goKIjsPMY4Dq for <>; Wed, 7 Nov 2012 09:22:14 -0800 (PST)
Received: from ( []) by (Postfix) with ESMTP id 6511F21F8853 for <>; Wed, 7 Nov 2012 09:22:14 -0800 (PST)
Received: by with SMTP id 9so3086903iec.31 for <>; Wed, 07 Nov 2012 09:22:13 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=wNk02a6G2jfRx01BcPnNN3nYEdxuuYyJXGNNsv/mN/s=; b=NCLJ3Q3vT84PU+HZe3wpQoBbQeD5VrE1wxx7UEC5dWeW41trDPUbDs1HssxQxWxUUn UIPhOSiJhzeBSgQVyJckdtzlcl5q2N2+040iQDLaKe3vpaiqSJ+ZAFaJpqbAF9S11Nqa 8F33R5q1MUhHmaj7tkSWPdBG/CVBl1xVE9iWeaRAHbtU+huaXW7aDgk0Kv5pTYV/EyMP FSHZtmBV2a0AMVEJeYnIKcu2sLg2N0SJQV9BnutRlTMBBZYNUHQgrMR+kIQ+RFFOrAKQ muf0Zn4ksaGhncxMl5eTpYZ/TZjE3vyugjMyBSxcvfcPJHzClr1Ftu/3MkmFBa5g4Ez6 tJzw==
Received: by with SMTP id gh6mr5482930igb.13.1352308933447; Wed, 07 Nov 2012 09:22:13 -0800 (PST)
Received: from Glaucomys.local ([]) by with ESMTPS id l8sm2494062igo.13.2012. (version=SSLv3 cipher=OTHER); Wed, 07 Nov 2012 09:22:10 -0800 (PST)
Message-ID: <>
Date: Wed, 07 Nov 2012 09:22:02 -0800
From: Ralph Giles <>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
References: <1352307794.14547.30.camel@ayu>
In-Reply-To: <1352307794.14547.30.camel@ayu>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Gm-Message-State: ALoCoQl8igyaKSbtRLqaCpjZwX5JUIp9fPDik6JIBii3WEL7YPmuxrBO3RlfpBjHIQnGEjw+VH4I
Subject: Re: [codec] OggOpus: Rational for excluding replaygain tags?
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: Wed, 07 Nov 2012 17:22:15 -0000

On 12-11-07 9:03 AM, Calvin Walton wrote:

> I would suggest that instead of simply saying that the OggOpus file
> SHOULD NOT contain the replaygain tags, it should say that they MAY be
> present, and should specify how they are interpreted and applied (This
> mainly would concern their relation to the stream "output gain").

I think the idea was to encourage adoption of the R128 methods along
with Opus, since R128 is both technically superiour and more officially
standardized. I agree it would be useful to describe what to do if
multiple tags are present, even if it remains SHOULD NOT.

I would say, "The R128 tag overrides any REPLAYGAIN tag which is
present. Player MAY choose to apply REPLAYGAIN values, combined with the
output gain from the OpusHead packet, if no R128 tag is present."

> I would however recommend that the files still SHOULD NOT have the
> REPLAYGAIN_{TRACK,ALBUM}_PEAK tags, as Opus does not have a bit-accurate
> decoder specified, and the peak values will also vary based on the
> sample rate selected for decoding.

That's a useful distinction to maintain. I agree.

The other issue is what encoders are doing. Are any of the applications
you tested *setting* REPLAYGAIN tags on files they encode? Or is it just
that you want some level equalization and your player doesn't currently
support the R128 scheme during playback? The question is whether we have
some hope of acheiving compliance with the idea as opposed, or if it's
too late for that already.