Re: [MMUSIC] Wisdom sought: Prioritization of codecs

Paul Kyzivat <pkyzivat@alum.mit.edu> Thu, 15 November 2012 21:32 UTC

Return-Path: <pkyzivat@alum.mit.edu>
X-Original-To: mmusic@ietfa.amsl.com
Delivered-To: mmusic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 89AD421F8AFA for <mmusic@ietfa.amsl.com>; Thu, 15 Nov 2012 13:32:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.393
X-Spam-Level:
X-Spam-Status: No, score=-0.393 tagged_above=-999 required=5 tests=[AWL=0.044, BAYES_00=-2.599, FH_RELAY_NODNS=1.451, HELO_MISMATCH_NET=0.611, RDNS_NONE=0.1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YiJZHeTWp6A1 for <mmusic@ietfa.amsl.com>; Thu, 15 Nov 2012 13:32:54 -0800 (PST)
Received: from qmta05.westchester.pa.mail.comcast.net (qmta05.westchester.pa.mail.comcast.net [IPv6:2001:558:fe14:43:76:96:62:48]) by ietfa.amsl.com (Postfix) with ESMTP id 9D7B021F89AA for <mmusic@ietf.org>; Thu, 15 Nov 2012 13:32:41 -0800 (PST)
Received: from omta08.westchester.pa.mail.comcast.net ([76.96.62.12]) by qmta05.westchester.pa.mail.comcast.net with comcast id Po0B1k0040Fqzac55xYhsA; Thu, 15 Nov 2012 21:32:41 +0000
Received: from Paul-Kyzivats-MacBook-Pro.local ([50.138.229.164]) by omta08.westchester.pa.mail.comcast.net with comcast id PxYg1k00K3ZTu2S3UxYg6H; Thu, 15 Nov 2012 21:32:41 +0000
Message-ID: <50A55F78.4010603@alum.mit.edu>
Date: Thu, 15 Nov 2012 16:32:40 -0500
From: Paul Kyzivat <pkyzivat@alum.mit.edu>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0) Gecko/20121010 Thunderbird/16.0.1
MIME-Version: 1.0
To: Adam Roach <adam@nostrum.com>
References: <50A4AC20.5030306@alvestrand.no> <50A4AE7F.4040403@alvestrand.no> <50A51F04.5090502@alum.mit.edu> <50A54895.7030006@nostrum.com>
In-Reply-To: <50A54895.7030006@nostrum.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: mmusic@ietf.org
Subject: Re: [MMUSIC] Wisdom sought: Prioritization of codecs
X-BeenThere: mmusic@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Multiparty Multimedia Session Control Working Group <mmusic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mmusic>, <mailto:mmusic-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/mmusic>
List-Post: <mailto:mmusic@ietf.org>
List-Help: <mailto:mmusic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mmusic>, <mailto:mmusic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 15 Nov 2012 21:32:55 -0000

On 11/15/12 2:55 PM, Adam Roach wrote:
> On 11/15/12 10:57, Paul Kyzivat wrote:
>> The whole notion of codec preference breaks down even more for
>> multiplexed streams. You may very explicitly prefer/require different
>> streams to use different codecs.
>>
>> So I don't think we can rely too much on parsing the existing text for
>> guidance on how to use SDP to represent multiplexed sessions. (Unless
>> of course we use bundle, with a separate m-line for each stream.)
>> AFAIK we are breaking new ground here.
>
> This kind of "we fixed this problem once and get to fix it all over
> again" issue is exactly the kind of thing I was speaking to at the
> microphone in MMUSIC in Atlanta. The further we drift from the
> established semantics of SDP, the less applicable previously developed
> mechanisms become. Bundle and similar approaches that maintain one m=
> line per stream allow us to leverage 14 years of extensions and
> clarifications. If we decide to split from that (rather fundamental,
> IMHO) characteristic of SDP, we are effectively forking the protocol,
> and throwing away years of prior work.

I would like to agree with you. But when multiplexing RTP streams it is 
problematic to prearrange every stream in SDP. That requires knowing in 
advance how many there will be, what their SSRCs will be, and what the 
mapping from SSRC to codec will be.

We are still thrashing that out for CLUE. We have some use cases where 
it seems we can't do all of that in advance, and doing an O/A after we 
get packets is too late. Maybe we will find a way around that. Too early 
to tell.

And AFAIK RTCWEB has only been planning to use bundle to give a separate 
m-line for audio and one for video, not necessarily a separate one for 
every media stream. I think there is still an implication that a given 
m-line might be multiplexed, and might use different codecs (among those 
that are negotiated) for the different multiplexed streams.

And even our 14 years of experience on this haven't resulted in a spec 
that fully lines up with what is deployed in the wild. There is an 
assumption in the specs that if you offer multiple codecs and the answer 
accepts multiple codecs, then you can accept packets in any of the 
negotiated codecs, and switch among them, even though we know 
implementations that depend on only one codec being used. (With a 
special case for telephone-events.)

We are now encountering applications that have more complex needs than 
were anticipated over those 14 years. It's nice if we can reuse what we 
have without change to meet those needs. But lets not constrain new 
applications to the sorts of things we had in mind 14 years ago.

	Thanks,
	Paul