Re: [codec] draft-ietf-codec-oggopus and "album" gain

Ralph Giles <giles@thaumas.net> Mon, 25 August 2014 23:12 UTC

Return-Path: <giles@thaumas.net>
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 F3C701A0350 for <codec@ietfa.amsl.com>; Mon, 25 Aug 2014 16:12:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.701
X-Spam-Level:
X-Spam-Status: No, score=-0.701 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 S4xh7G6Phj0V for <codec@ietfa.amsl.com>; Mon, 25 Aug 2014 16:12:26 -0700 (PDT)
Received: from mail-pd0-f173.google.com (mail-pd0-f173.google.com [209.85.192.173]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E52B01A046A for <codec@ietf.org>; Mon, 25 Aug 2014 16:11:22 -0700 (PDT)
Received: by mail-pd0-f173.google.com with SMTP id w10so21293692pde.4 for <codec@ietf.org>; Mon, 25 Aug 2014 16:11:22 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=mD3LGCLsVWpEqRf/oAVH/4a0RCuPwCSevN4jd5qGSsA=; b=Gdrf1glq+yAjQlcFZ5MCoL2etYXfi2lPWOwOClnwI/am4LX7XB76GByXUF4Dy52W2e RST9AYXuSJ+2tQk2+3UwPaBLiONZN4qCXa6COLS8F/s1WuSJzqHmtTE8Z+yQgXQclWrg /YbLDj5tQpvlr6nH2hS1fc6ZKOw2Vu/2mKwkj0zRUeEq2dWIz/eQ/S4DH4pxogDCU93z MPAdr1cMGawDn8PqFHp+Kd8qM/4QRYnhykXOtluS4Q7atopYxovsTp1daDtaD/NfWo8n jHf9TkU1H5gZK3409gG7IMgTcEmCG4Uw/6XLb2+pikzasY8EX/aHZYE+1Kjx7IH+vBui 9HUQ==
X-Gm-Message-State: ALoCoQnui9vuytRh9mbQMxZQIrQhAs5MAov8cHWw3F+7ayDKEQ9//cfP7gWvaaHl+ST1pKH+jJIn
X-Received: by 10.68.69.3 with SMTP id a3mr32742857pbu.94.1409008282636; Mon, 25 Aug 2014 16:11:22 -0700 (PDT)
Received: from tamias.local ([64.214.126.165]) by mx.google.com with ESMTPSA id g7sm1579708pdj.7.2014.08.25.16.11.21 for <codec@ietf.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Aug 2014 16:11:21 -0700 (PDT)
Message-ID: <53FBC299.1070008@thaumas.net>
Date: Mon, 25 Aug 2014 16:11:21 -0700
From: Ralph Giles <giles@thaumas.net>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: codec@ietf.org
References: <20140813222201.54fe7910@crunchbang> <53ECF0E0.9060308@xiph.org> <20140816040140.GA31682@hex.shelbyville.oz>
In-Reply-To: <20140816040140.GA31682@hex.shelbyville.oz>
X-Enigmail-Version: 1.6
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/codec/I4uMxbQ_3htOIhvPbF5R-gjUiIs
Subject: Re: [codec] draft-ietf-codec-oggopus and "album" gain
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: <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: Mon, 25 Aug 2014 23:12:28 -0000

On 2014-08-15 9:01 PM, Ron wrote:

> So the patch applied for this part is now:
> 
>> - If an encoder wishes to use R128 normalization, and the output gain is not
>> - otherwise constrained or specified, the encoder SHOULD write the R128 gain
>> - into the 'output gain' field and store a tag containing "R128_TRACK_GAIN=0".
>> - That is, it should assume that by default tools will respect the 'output gain'
>> - field, and not the comment tag.

I agree this part is confusing. I think it's too terse to offer good
guidance.

>>   If a tool modifies the ID header's 'output gain' field, it MUST also update or
>>   remove the R128_TRACK_GAIN and R128_ALBUM_GAIN comment tags if present.

This seems helpful in avoiding broken files.

>> + An encoder should assume that by default tools will respect the 'output gain'
>> + field, and not the comment tag.

I read this as a non-normative should. Would it be better:

"By default, implementations of this specification MUST respect the
'output gain' field, but MAY NOT respect the comments. Encoder authors
are advised to take this into account. For example, to produce R128
normalized files it's more reliable for post-processing application to
update the 'output gain' field and write a comment 'R128_TRACK_GAIN=0'
than to put the normalized value directly in the comment."

This removes the normative suggestion of 'should' while maintaining the
suggestion and rationale.

 -r