Re: [rtcweb] Followup to discussion of O/A and codecs from Friday session
Harald Alvestrand <harald@alvestrand.no> Fri, 08 April 2016 22:01 UTC
Return-Path: <harald@alvestrand.no>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4CE1C12D916 for <rtcweb@ietfa.amsl.com>; Fri, 8 Apr 2016 15:01:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.14
X-Spam-Level:
X-Spam-Status: No, score=-1.14 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_SORBS_WEB=0.77, T_RP_MATCHES_RCVD=-0.01] autolearn=no autolearn_force=no
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 cer5PzO4Ucoo for <rtcweb@ietfa.amsl.com>; Fri, 8 Apr 2016 15:01:13 -0700 (PDT)
Received: from mork.alvestrand.no (mork.alvestrand.no [IPv6:2001:700:1:2::117]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 986B812D658 for <rtcweb@ietf.org>; Fri, 8 Apr 2016 15:01:12 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mork.alvestrand.no (Postfix) with ESMTP id D254C7C7C8E for <rtcweb@ietf.org>; Sat, 9 Apr 2016 00:01:10 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at alvestrand.no
Received: from mork.alvestrand.no ([127.0.0.1]) by localhost (mork.alvestrand.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tBuNkxUdQFJR for <rtcweb@ietf.org>; Sat, 9 Apr 2016 00:01:10 +0200 (CEST)
Received: from [172.20.14.172] (200-127-148-163.net.prima.net.ar [200.127.148.163]) by mork.alvestrand.no (Postfix) with ESMTPSA id 5BBCA7C7C8D for <rtcweb@ietf.org>; Sat, 9 Apr 2016 00:01:09 +0200 (CEST)
To: rtcweb@ietf.org
References: <5708256F.5080205@alum.mit.edu>
From: Harald Alvestrand <harald@alvestrand.no>
Message-ID: <57082A21.7010005@alvestrand.no>
Date: Sat, 09 Apr 2016 00:01:05 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0
MIME-Version: 1.0
In-Reply-To: <5708256F.5080205@alum.mit.edu>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/rtcweb/lDhRAwitaI4oc87ByFPlEJnTztM>
Subject: Re: [rtcweb] Followup to discussion of O/A and codecs from Friday session
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <rtcweb.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rtcweb/>
List-Post: <mailto:rtcweb@ietf.org>
List-Help: <mailto:rtcweb-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 08 Apr 2016 22:01:16 -0000
This indicates that the answer's omission of a codec does not allow the offerer to deallocate resources that it has reserved for decoding that type of stream (such as hardware). Under this interpretation, if I reserve hardware for decoding VP8 and H.264, and I get back an answer that indicates VP8 only, I cannot deallocate my H.264 resources, since the answerer may choose to send me H.264 anyway. This contradicts something I think I've heard Cullen claim multiple times, but I may have misunderstood Cullen. On 04/08/2016 11:41 PM, Paul Kyzivat wrote: > During the rtcweb session today, while discussing (I think) JSEP issue > #247 (Document what should happen when there are no matching codecs in > answer), there was a question about happens in a particular case. I > think it was: > > - X offers codecs A and B (sendrecv) > - Y answers codec B (sendrecv) > > The question was whether Y may use codec A when sending to X. Jonathan > gave an answer I disagreed with and we had a chat about it. He got an > action item to follow up afterwords, then he asked if I would do it. > > As I read RFC3264, the answer is: > > Yes, in the above case Y may send A to X. > > Then a subsequent scenario came up: what would happen if Y has a need > to send a (re)offer? Wouldn't this result in an inability to send > using A? (Let's assume that Y is unable/unwilling to *receive* A but > can send it, even though this is a weird case.) > > - Y offers codec B (sendrecv) > - X answers codec B and A (sendrecv) > > This *is* permitted by 3264. And in this case Y will be allowed to > continue sending using codec A. > > Relevant pieces of 3264 supporting this interpretation: > > - section 5.1 (Generating the Initial Offer/Unicast Streams): > > ... If multiple formats are listed, it > means that the offerer is capable of making use of any of those > formats during the session. In other words, the answerer MAY change > formats in the middle of the session, making use of any of the > formats listed, without sending a new offer. > > - section 6.1 (Generating the Answer/Unicast Streams): > > ... For streams marked as sendrecv in the answer, > the "m=" line MUST contain at least one codec the answerer is willing > to both send and receive, from amongst those listed in the offer. > The stream MAY indicate additional media formats, not listed in the > corresponding stream in the offer, that the answerer is willing to > send or receive (of course, it [the answerer] will not be able to > send them at this time, since it was not listed in the offer). > > - section 8.3.2 (Changing the Set of Media Formats): > > The list of media formats used in the session MAY be changed. To do > this, the offerer creates a new media description, with the list of > media formats in the "m=" line different from the corresponding media > stream in the previous SDP. This list MAY include new formats, and > MAY remove formats present from the previous SDP. ... > > The corresponding media stream in the answer is formulated as > described in Section 6, and may result in a change in media formats > as well. Similarly, as described in Section 6, as soon as it sends > its answer, the answerer MUST begin sending media using any formats > in the offer that were also present in the answer, and SHOULD use the > most preferred format in the offer that was also listed in the answer > (assuming the stream allows for sending), and MUST NOT send using any > formats that are not in the offer, even if they were present in a > previous SDP from the peer. Similarly, when the offerer receives the > answer, it MUST begin sending media using any formats in the answer, > and SHOULD use the most preferred one (assuming the stream allows for > sending), and MUST NOT send using any formats that are not in the > answer, even if they were present in a previous SDP from the peer. > > I'm not too clear on how this relates to issue #247, but at least I > hope we can agree on what 3264 says. > > Thanks, > Paul > > _______________________________________________ > rtcweb mailing list > rtcweb@ietf.org > https://www.ietf.org/mailman/listinfo/rtcweb -- Surveillance is pervasive. Go Dark.
- [rtcweb] Followup to discussion of O/A and codecs… Paul Kyzivat
- Re: [rtcweb] Followup to discussion of O/A and co… Harald Alvestrand
- Re: [rtcweb] Followup to discussion of O/A and co… Taylor Brandstetter
- Re: [rtcweb] Followup to discussion of O/A and co… Roman Shpount
- Re: [rtcweb] Followup to discussion of O/A and co… Roman Shpount
- Re: [rtcweb] Followup to discussion of O/A and co… Taylor Brandstetter
- Re: [rtcweb] Followup to discussion of O/A and co… Taylor Brandstetter
- Re: [rtcweb] Followup to discussion of O/A and co… Roman Shpount
- Re: [rtcweb] Followup to discussion of O/A and co… Paul Kyzivat