Re: [codec] SDP mapping for > 2 channels in OPUS?

Jean-Marc Valin <jmvalin@mozilla.com> Wed, 13 February 2019 09:05 UTC

Return-Path: <jmvalin@mozilla.com>
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 E9C9F128CB7 for <codec@ietfa.amsl.com>; Wed, 13 Feb 2019 01:05:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=mozilla.com
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 Ok34TxMRdwLd for <codec@ietfa.amsl.com>; Wed, 13 Feb 2019 01:05:09 -0800 (PST)
Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8DBAA12D4E6 for <codec@ietf.org>; Wed, 13 Feb 2019 01:05:09 -0800 (PST)
Received: by mail-qt1-x82f.google.com with SMTP id p25so1435897qtb.3 for <codec@ietf.org>; Wed, 13 Feb 2019 01:05:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mozilla.com; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=s7UYfE90XWFc2O1uHV6Wi2Ot6huFc+gNmtKe++pY3jI=; b=Hd94ai9p6CFwioK1TVMCZBewmR4QQ8di8LmHPstKTdJj90tGpWkGMlVP+WF9LIp1zF fd5kpFrZ37NYttTxxS7bXLkae323rYLBQv7n3GDEcxNuRvZqD9OP1vf9n87hV9C+AyAy 2mZdWn2pJAca632WxNuFOq9FgjW9omrZi+RKM=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=s7UYfE90XWFc2O1uHV6Wi2Ot6huFc+gNmtKe++pY3jI=; b=ePrYZfBYw0eHX+eu0PiC+xAa6hX9bt2RFaw/eYqqdMnzmE2LditxZA0MD8cJD8rCVR fSE5Wa7swevaC8gKHxdqL6buS/mYQPahPF5d6HjYOfyyPw4qIYTF62l4+GE9Q0YYkwgF glCPUNHUA0LiVZxpIPm4OqAUGDZ6AimtDXB94e5HsW9RzBAELZuduTdVIxMhxG5HQOgj ABUaaR3VmuI5575UVPkZXl2jGp/czT6FzwV+y11Akf1NZWGnHQIa6O7/KYNCE75qu9jo tStGJx5z5814cyP3jqrWlgf9Vr1cjWpR+Aujz+Llh3gdD7gOkYuVkZz4wZCGtwThnQj3 bGFg==
X-Gm-Message-State: AHQUAubJ4ZSmHO+dpQ6qaQ01Lo4TaxIfj9MpOExM0gCpRD2RNB8gIguO yekCnpJE597qMMYN1dqTrTPFlVEZ3A4=
X-Google-Smtp-Source: AHgI3IYbaxkE5orTSx0axy1bCOwH0Uc+VignNtfwKSqxNcq0y7JPK1PWRyxQXZod62/0i2u3T6t/9w==
X-Received: by 2002:a0c:e707:: with SMTP id d7mr5769788qvn.175.1550048707121; Wed, 13 Feb 2019 01:05:07 -0800 (PST)
Received: from obelix.jmvalin.ca (modemcable231.101-131-66.mc.videotron.ca. [66.131.101.231]) by smtp.gmail.com with ESMTPSA id e129sm16932853qkf.85.2019.02.13.01.05.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 01:05:06 -0800 (PST)
To: Harald Alvestrand <harald@alvestrand.no>, Jean-Marc Valin <jmvalin@jmvalin.ca>, codec@ietf.org
References: <15e1a439-bdc1-cd5f-8c9b-ee02c0248a30@alvestrand.no> <cb4b10dc-f9d2-43af-eb78-5d27649ad849@jmvalin.ca> <181650d0-db82-dde6-6624-fdb27ee03917@alvestrand.no>
From: Jean-Marc Valin <jmvalin@mozilla.com>
Message-ID: <7c0b01f2-5ea3-666a-8976-d2d0603368ae@mozilla.com>
Date: Wed, 13 Feb 2019 04:05:05 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <181650d0-db82-dde6-6624-fdb27ee03917@alvestrand.no>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/codec/0EibJYBlcBNX7Sdt9bNh8_4vCiM>
Subject: Re: [codec] SDP mapping for > 2 channels in OPUS?
X-BeenThere: codec@ietf.org
X-Mailman-Version: 2.1.29
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: <https://mailarchive.ietf.org/arch/browse/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: Wed, 13 Feb 2019 09:05:12 -0000

On 02/13/2019 03:46 AM, Harald Alvestrand wrote:
> Thanks for confirming the absence of specs. The hackaround that Google
> folks are trying is to send 5.1 as 3 OPUS stereo channels, which doesn't
> make me particularly happy.

No, don't do that. I think the correct solution is to define a new
subtype (e.g. mc-opus) and then just specify an SDP version of the
multi-channel fields of the Ogg header.

For something like 5.1, that would basically mean transmitting the
channel order and coupling. That also means being able to use the
existing libopus surround encoder code, which will have *much* better
quality than explicitly breaking down 5.1 into 3 independent stereo
streams. Even ambisonics should work, though mapping family 3 may result
in a few kB of data in the SDP for the matrices when using 3rd order.

Cheers,

	Jean-Marc


>>
>> Cheers,
>>
>> 	Jean-Marc
>>
>>
>> On 02/12/2019 03:50 PM, Harald Alvestrand wrote:
>>> Hi,
>>>
>>> I wonder if there exists some specification for multichannel OPUS in SDP
>>> - I have searched for it and missed it.
>>>
>>> I note that RFC 8486 (ambisonics) doesn't say anything about SDP
>>> considerations.
>>>
>>> Harald
>>>
>>>
>>> _______________________________________________
>>> codec mailing list
>>> codec@ietf.org
>>> https://www.ietf.org/mailman/listinfo/codec
>>>
>> _______________________________________________
>> codec mailing list
>> codec@ietf.org
>> https://www.ietf.org/mailman/listinfo/codec
> 
> 
> _______________________________________________
> codec mailing list
> codec@ietf.org
> https://www.ietf.org/mailman/listinfo/codec
>