Re: [codec] draft-ietf-codec-oggopus-01

Calvin Walton <calvin.walton@kepstin.ca> Tue, 04 June 2013 19:56 UTC

Return-Path: <calvin.walton@kepstin.ca>
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 9C37021F93D2 for <codec@ietfa.amsl.com>; Tue, 4 Jun 2013 12:56:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
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 N1Jw2QbnMrIP for <codec@ietfa.amsl.com>; Tue, 4 Jun 2013 12:56:49 -0700 (PDT)
Received: from mail-ob0-x232.google.com (mail-ob0-x232.google.com [IPv6:2607:f8b0:4003:c01::232]) by ietfa.amsl.com (Postfix) with ESMTP id 0816B21F9A5C for <codec@ietf.org>; Tue, 4 Jun 2013 11:57:04 -0700 (PDT)
Received: by mail-ob0-f178.google.com with SMTP id fb19so1046653obc.37 for <codec@ietf.org>; Tue, 04 Jun 2013 11:56:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kepstin.ca; s=google; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-type:x-mailer:mime-version:content-transfer-encoding; bh=p1eYULuSn57WPTnJJB5Z8iw5JNJO4IZG/NYmGWHPvek=; b=xP/lVdB20fvDl97mnouHCbPQD4HOEuJH3twR5LFYB+6s5BEfCbaZVspFcylO/Qcgka +lblkwkey2JaTMEp4CuxJs/3fN3eBSKoHB91j+tZpZtFnPYnjq/rBKaytvoRYQdDmgvQ 36/7PcZ++oXvCfHZL/+FgVjDOYVgDHSUHTuo0=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-type:x-mailer:mime-version:content-transfer-encoding :x-gm-message-state; bh=p1eYULuSn57WPTnJJB5Z8iw5JNJO4IZG/NYmGWHPvek=; b=JWAmOi21xyEWm26ijouQcq654D9GkMfQlkeUm+j86dOg4Ty4Lt/yqpoDfm9uTgOCSD QyjjPWdjQZIfa4yM/rkn9YT6rsqP89Lu0L7eMRonHj477Lx5gLFkh5A2iiwr3CkEUSCg 63yqPsgu9Tmghg/k7IlNU9wmCNsJcohBMGtCsYFYjmnIWtKho3R8rp1BNWDae8xvGNAJ hS5mrCu7u4xij+XdtI+VsOWBGrz2rpOxtTkfxXnSNRfKL8D9Z+P5B56ExKW4Q2ayxIqo 9oaAWdFuZAsYYTUcIwRyFSIdFN3hbcEPQrbzYweIhGX7AcVp2GSH45fPLFabG6Q5L89H ezVA==
X-Received: by 10.60.133.240 with SMTP id pf16mr12972428oeb.28.1370372217001; Tue, 04 Jun 2013 11:56:57 -0700 (PDT)
Received: from [192.168.0.188] (OTWAON23-1242490325.sdsl.bell.ca. [74.14.229.213]) by mx.google.com with ESMTPSA id d5sm3322100oex.0.2013.06.04.11.56.55 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Jun 2013 11:56:56 -0700 (PDT)
Message-ID: <1370372214.2931.20.camel@hp-a6734f>
From: Calvin Walton <calvin.walton@kepstin.ca>
To: Ralph Giles <giles@thaumas.net>
Date: Tue, 04 Jun 2013 14:56:54 -0400
In-Reply-To: <519F8B18.9020101@thaumas.net>
References: <519F8A40.3080105@mozilla.com> <519F8B18.9020101@thaumas.net>
Content-Type: text/plain; charset="UTF-8"
X-Mailer: Evolution 3.8.2-0ubuntu1~raring1
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Gm-Message-State: ALoCoQmtMyvn9qZbWMlJR/5GAqAAxpaQUssTKBjrV/GoJY3IlQ/Ve5DPYAvCv01EQJQpIlpbb2pB
Cc: "codec@ietf.org" <codec@ietf.org>
Subject: Re: [codec] draft-ietf-codec-oggopus-01
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: Tue, 04 Jun 2013 19:56:50 -0000

On Fri, 2013-05-24 at 23:45 +0800, Ralph Giles wrote:
> I've updated the Ogg Opus encapsulation draft.
> 
> https://tools.ietf.org/html/draft-ietf-codec-oggopus-01

Hi,

I note that the specification still has some wording regarding the gain
header fields that I hope could be clarified.

>    To avoid confusion with multiple normalization schemes, an Opus
>    comment header SHOULD NOT contain any of the REPLAYGAIN_TRACK_GAIN,
>    REPLAYGAIN_TRACK_PEAK, REPLAYGAIN_ALBUM_GAIN, or
>    REPLAYGAIN_ALBUM_PEAK tags.
> 
>    There is no Opus comment tag corresponding to REPLAYGAIN_ALBUM_GAIN.
>    That information should instead be stored in the ID header's 'output
>    gain' field.

My concern is regarding the note about the album gain.

>From previous discussion, my impression is that the ID header's "output
gain" is supposed to have no semantic meaning, other than that it is the
preferred playback volume offset as set by the last person to edit the
file metadata.

Unfortunately, existing players (some versions of foobar2000, although I
haven't tested the latest) have taken the wording of this section to
mean that the value in the ID header field can be interpreted as per the
EBU-R128 specification, and be used for volume normalization relative to
the R128 reference level.

This means that if I e.g. put a value such that a track will be the same
volume level as my (89 dB SPL-reference) ReplayGained vorbis files, then
foobar2000 will reinterpret it, and play the file at a different volume
than I desired! (Roughly ~3dB offset.)

Other players (e.g. rockbox and gstreamer-based players) will use the ID
header value as-is, and apply no other correction.

At this point, I'm not sure what my recommendation would be, but I hope
the wording in this section can be clarified somewhat to indicate that
the player cannot assume that the value in the ID header gain field
cannot be interpreted as having any particular semantic meaning - and
should be simply applied as-is.

-- 
Calvin Walton <mailing-lists@kepstin.ca>