Re: [AVTCORE] RFC4566 - understanding maxptime

Simon Perreault <sperreault@jive.com> Mon, 05 January 2015 15:05 UTC

Return-Path: <sperreault@jive.com>
X-Original-To: avt@ietfa.amsl.com
Delivered-To: avt@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2E60F1A8AC3 for <avt@ietfa.amsl.com>; Mon, 5 Jan 2015 07:05:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.378
X-Spam-Level:
X-Spam-Status: No, score=-1.378 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, J_CHICKENPOX_12=0.6, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=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 hB7huTefTKWu for <avt@ietfa.amsl.com>; Mon, 5 Jan 2015 07:05:57 -0800 (PST)
Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2FCC21A8A54 for <avt@ietf.org>; Mon, 5 Jan 2015 07:05:54 -0800 (PST)
Received: by mail-lb0-f171.google.com with SMTP id w7so17834234lbi.2 for <avt@ietf.org>; Mon, 05 Jan 2015 07:05:52 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=hKJLQI835mzM5EvX6W0+iM5bM1t0C7T1j1nh1+5dxxE=; b=VL8J8Oktb/0To9QAKNboZFE1LOiWcwN3b9yhKabsSD62eGBoYQAhg6wT+JJpVJ6Fo0 d+dv11oiGFVQ3muPfx2S2MMWWe1HmRMBqRNOuHL9K8YRF1FzpD7/KxoJzkKxVUnYuFJw 6aMykWV/kFRVOSpIlFPBDkwgVziU5/n5JEBnuEb/cq/U0s0RSzpCu12ho6UXrYZInADy ab55cB3NK7ZrDOdXardMiFfmo4zz+L0wm49Pv7/QOw2JWhyvV+rxa3NoC98lErzXa87a JXntFPQZVYiYtXO7chxuPM077QORaYixfx0PnF8qAEM+dkTTCBvC+0HF18vMBYUTzNNI yVVQ==
X-Gm-Message-State: ALoCoQltf5b9FIkA/1J7IKESAmr9lKt34CyaznR1013/Jy9W0rgcr+99bmNei8MLFKdb3GnwkDA7
MIME-Version: 1.0
X-Received: by 10.112.41.234 with SMTP id i10mr94283424lbl.25.1420470352580; Mon, 05 Jan 2015 07:05:52 -0800 (PST)
Received: by 10.25.84.145 with HTTP; Mon, 5 Jan 2015 07:05:52 -0800 (PST)
In-Reply-To: <trinity-db1651cc-9514-495d-b11b-281dc69b056c-1420467617692@3capp-gmx-bs11>
References: <trinity-db1651cc-9514-495d-b11b-281dc69b056c-1420467617692@3capp-gmx-bs11>
Date: Mon, 05 Jan 2015 10:05:52 -0500
Message-ID: <CANO7kWDKHxZyup=xW3w2H0FpA7TuL2706SeYXS7fSqZ1LP79QA@mail.gmail.com>
From: Simon Perreault <sperreault@jive.com>
To: Harald Radke <harryrat@gmx.de>
Content-Type: multipart/alternative; boundary="001a1134593cc7a9ff050be906ef"
Archived-At: http://mailarchive.ietf.org/arch/msg/avt/JP4O2CuNNJbMzXOd1IgJVtzEPW4
Cc: "avt@ietf.org" <avt@ietf.org>
Subject: Re: [AVTCORE] RFC4566 - understanding maxptime
X-BeenThere: avt@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Audio/Video Transport Core Maintenance <avt.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/avt>, <mailto:avt-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/avt/>
List-Post: <mailto:avt@ietf.org>
List-Help: <mailto:avt-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/avt>, <mailto:avt-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 05 Jan 2015 15:05:59 -0000

On Mon, Jan 5, 2015 at 9:20 AM, Harald Radke <harryrat@gmx.de> wrote:

> 2) Actually somebody already asked a similar question some time (actually
> years) ago, actually the difference between ptime and maxptime, the answer
> was:
>
> >The "a=ptime:" attribute is a hint to the encoder on the preferred
> packetisation interval for the media. The encoder may follow the hint, or
> it may vary the packetisation >interval up to the value indicated by
> "a=maxptime:". The receiver is expected to be able to decode any reasonable
> packetisation.
>
> a)is the receiver expected to decode ANY packetisation? (e.g. ptime=20,
> maxptime=40 -> incoming RTP packets of the stream might contain payloads
> worth of any length between 20 and 40ms, in case of sample based codecs
> with sample duration granularity?)
>
b) must the receiver be able to handle varying packetisation during a
> session? that is receiving RTP packets with different payload lengths and
> different interarrival times or does "vary" just mean  that the sender
> "selects" one packetisation interval between ptime and maxptime at the
> beginningbut keeps it constant during the session?
>

My own policy regarding this is:

- I will not spend any effort dealing with crazy ptime bullshit (e.g., 21).
If the codec implementation I use works on byte boundaries, you're lucky,
but if it works on e.g. 10ms blocks then just too bad.
- Other than that, I don't really care about ptime. It all just goes into
one big queue. So you can vary ptimes as much as you like, you can ignore
my SDP, etc. Just don't go crazy.

Simon