Re: [payload] new draft - RTP Payload for TTML Timed Text

James Sandford <james.sandford@bbc.co.uk> Fri, 18 January 2019 09:40 UTC

Return-Path: <james.sandford@bbc.co.uk>
X-Original-To: payload@ietfa.amsl.com
Delivered-To: payload@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 76779131178 for <payload@ietfa.amsl.com>; Fri, 18 Jan 2019 01:40:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level:
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham 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 zIzGm0VsDXiB for <payload@ietfa.amsl.com>; Fri, 18 Jan 2019 01:40:41 -0800 (PST)
Received: from mailout0.telhc.bbc.co.uk (mailout0.telhc.bbc.co.uk [132.185.161.179]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id ACA9713117E for <payload@ietf.org>; Fri, 18 Jan 2019 01:40:40 -0800 (PST)
Received: from BGB01XI1007.national.core.bbc.co.uk (bgb01xi1007.national.core.bbc.co.uk [10.161.14.21]) by mailout0.telhc.bbc.co.uk (8.15.2/8.15.2) with ESMTP id x0I9eZQh015907; Fri, 18 Jan 2019 09:40:35 GMT
Received: from BGB01XI1004.national.core.bbc.co.uk (10.184.50.54) by BGB01XI1007.national.core.bbc.co.uk (10.161.14.21) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 18 Jan 2019 09:40:35 +0000
Received: from BGB01XUD1001.national.core.bbc.co.uk ([10.184.52.80]) by BGB01XI1004.national.core.bbc.co.uk ([10.184.50.54]) with mapi id 14.03.0408.000; Fri, 18 Jan 2019 09:40:35 +0000
From: James Sandford <james.sandford@bbc.co.uk>
To: Thomas Edwards <Thomas.Edwards@fox.com>, Kjetil Oftedal <oftedal@gmail.com>
CC: "payload@ietf.org" <payload@ietf.org>
Thread-Topic: [payload] new draft - RTP Payload for TTML Timed Text
Thread-Index: AdSuh6AYULm9HPIlScy9aWUDvmlrAAADljSA//9/BYCAAW9RvA==
Date: Fri, 18 Jan 2019 09:40:34 +0000
Message-ID: <734752AF0E88364D983373FE5CEFED5759414910@bgb01xud1001>
References: <734752AF0E88364D983373FE5CEFED575941480A@bgb01xud1001> <CALMQjD9zvmtuo_Dn1OzKVh8tVYfS2b2g2KvY2LmFa8AzaZXFpQ@mail.gmail.com>, <75009D9F-2CBC-4F25-BF91-147D9B34BD30@foxeg.com>
In-Reply-To: <75009D9F-2CBC-4F25-BF91-147D9B34BD30@foxeg.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [172.19.161.212]
x-exclaimer-md-config: 1cd3ac1c-62e5-43f2-8404-6b688271c769
X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.2.1013-24054.007
X-TM-AS-Result: No-15.003200-8.000000-10
X-TMASE-MatchedRID: CxmI61mtwh95X0FJZbmEppmug812qIbzDyaQjWMrQPL1gF7PCEF9brQn Y6ZuVLghqngwWXdiowsG6Gr/BTCb6y0kxsNYPyneHcQQBuf4ZFtAq6/y5AEOOino1HnhsdZKIrO HnBl44rLTkAnfFWix8nHQN+8cCmId/ukjti9z+aR/TWpwlAOFXkTrIRzbtv0Gnp9KgXcu34wKGe XHGeVjfK8x8ZgUfY74v40ZdMTQ+c3CM1PYiYN5Tbxk3OaETqHeJDAZBInjo2Y4I4JxdcDwOTtsj Ox63XuxehCPxJLdS+F2C9GksEU5sJ4JHdxqacCtFPCqKjnJ9sc0+5eZlOY+a1fXgfL55invdnla +4sEPup+OGe5C0vgwPJyaEyF2/fMwh/NUDq0MbriZjGZi5sMefcku775L1VGiet7oJTFh5syNVR cvIza9tSuMzgztSiKLE/JOseENbrwQ5J+kls6ii/YTQ49mwcHtmsMcVX5NwdrrPUg2m6nsvBNb+ zmzECbCDghscD5QNvqm8pfbvagoBW2F4lHP0VBlVHM/F6YkvTH+MxxvxD9o1AoBBK61Bhc0PVIV V4TQOyOwitqLXPra0P117fOHdLfdnjWTallNx+Ua50su1E7W5PFJV0Myxm8FL5h8MK+xpGmk3W5 FQ2UY3v5jyiyxXed45UGCXgyt9AsXJM82Uy2JqKa0xB73sAAaGBDjQ6POP+hEEjLknSXwOY86qN +YNgg7/unxD8jgikioTtOOz6HrWMNX/9K+Qfe8sFeWIHFjGeRRVVeGPlPX1c/CedjlcvkWnIQjE DPQDLuX/km0O1YYJbNfgtQUD+kzMi+2eSneQmeAiCmPx4NwMFrpUbb72MU1B0Hk1Q1KyL3PDiXO /tFSfcUt5lc1lLgNedi3nDhxyNVaBFytIQUtw==
X-TM-AS-User-Approved-Sender: Yes
X-TM-AS-User-Blocked-Sender: No
X-TMASE-Result: 10--15.003200-8.000000
X-TMASE-Version: SMEX-12.5.0.1300-8.2.1013-24054.007
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-EXCLAIMER-MD-CONFIG: c91d45b2-6e10-4209-9543-d9970fac71b7
Archived-At: <https://mailarchive.ietf.org/arch/msg/payload/pcGcst2YLd6rsAA8g3HBQOt7PWA>
Subject: Re: [payload] new draft - RTP Payload for TTML Timed Text
X-BeenThere: payload@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Audio/Video Transport Payloads working group discussion list <payload.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/payload>, <mailto:payload-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/payload/>
List-Post: <mailto:payload@ietf.org>
List-Help: <mailto:payload-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/payload>, <mailto:payload-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 18 Jan 2019 09:40:43 -0000

Hello,
Thank you for your replies.

Kjetil. TTML and its variants (e.g. EBU-TT) do define a number of possible timing methods where absolute times are specified within the document. This has a number of disadvantages in the streaming use case. *There is not necessarily a guarantee that the reference clock used within the document is identical to that in the RTP header. The document could have been originally generated on a different system and a naive implementation could persist the original timestamps/reference clock when packaging the document into an RTP stream.
*The timestamps in the document may end up contradicting that in the RTP header. The replication of data, i.e. timestamps in the RTP header and within the document, feels like poor design that leaves more room for bugs in implementations.
*Unrestricted, timestamps in a document may specify changes in the past. They shouldn't, but there would be nothing to stop them.
*A convention for converting each timing method within the document to each possible reference clock at the RTP level would be required to correctly align closed-captions/subtitles in a TTML stream with other media such as Video. This could potentially increase the complexity of specifications and implementations.
*Where absolute timings are used in the streamed documents, replaying a stream may require re-writing of the timestamps within the payload against the new playout time
*A broadcast center may implement devices such as buffers for aligning, for example, external contributions from different points around the world with vastly differing latencies. Allowing timing to be specified within the document would require TTML specific knowledge to correctly align multiple streams. As the draft currently stands, this alignment/buffering could be done at the RTP level.

Some of these potential issues could of course be solved by senders/receivers "doing the sensible thing". Others cannot. And it would be preferable to reduce the potential for bugs/poor implementations as much as possible. This draft aims to reduce the risk of all of these points by moving the timing to the RTP level while still allowing a level of internal timing that allows, for example, animation of text. We would also like to discourage the implementation of senders which send, for example, an entire program's worth of subtitles in a single document. This would obviously be poor use of RTP.

As the draft is currently written, it will require the sender/reader to have knowledge of the RTP time to correctly calculate the display time of subtitles. Though this would be a requirement wherever TTML is combined with RTP video/audio anyway. Section 4.2.1 specifies a TTML profile that restricts the time base within the TTML document to Media time and defines it as 0-based against the RTP time for each payload. So you are correct, Kjetil, an RTP Timestamp is considered the epoch of its respective TTML document.

I hope this helps.

Regards,
James

==========
James Sandford
R&D Engineer

BBC Research and Development
5th Floor
Dock House
MediaCityUK
Salford
M50 2LH

Tel: 030304 (09549)
Web: http://www.bbc.co.uk/rd

________________________________________
From: Thomas Edwards [Thomas.Edwards@fox.com]
Sent: 17 January 2019 19:12
To: Kjetil Oftedal; James Sandford
Cc: payload@ietf.org
Subject: Re: [payload] new draft - RTP Payload for TTML Timed Text

I'm not sure what the author was thinking, but I'd think that in many cases, a TTML RTP flow would be often associated with another RTP media flow (such as RFC 4175/SMPTE ST 2110-20, AES67, etc.) and hopefully the RTP timestamp time would line up...

In RFC 8331 (RTP for SMPTE Ancillary Data), it was suggested they were tightly locked together:
"When an ANC data RTP stream is to be associated with an RTP
         video stream, the RTP timestamp rates SHOULD be the same to
         ensure that ANC data packets can be associated with the
         appropriate frame or field.  Otherwise, a 90 kHz rate SHOULD be
         used."

But that might be less appropriate for TTML which is less directly associated with video fields/frames.

-Thomas

On 1/17/19, 10:53 AM, "payload on behalf of Kjetil Oftedal" <payload-bounces@ietf.org on behalf of oftedal@gmail.com> wrote:

    On 17/01/2019, James Sandford <james.sandford@bbc.co.uk> wrote:
    > I have uploaded a draft specifying an RTP payload format for TTML Timed Text
    > https://urldefense.proofpoint.com/v2/url?u=https-3A__datatracker.ietf.org_doc_draft-2Dsandford-2Dpayload-2Drtp-2Dttml_&d=DwICAg&c=uw6TLu4hwhHdiGJOgwcWD4AjKQx6zvFcGEsbfiY9-EI&r=lekNOOM5noV61zrPH3rwPyhtNnLLWoLEHgd0quQxly8&m=lcOWqoAOZng6eG5ibGyA-k5wqdyjNwxcOsa251X-eLg&s=eGgyZQYCqKg2ArgO0aFCaNFoX8fZTyL7cOP55goWDY4&e=
    >

    Hi,

    Can you please elaborate a bit on the RTP Timestamping requirements
    outlined here?
    As far as I can see TTML already specifies the timing of the text in
    relation to some epoch.
    Will the processing of the RTP packet require the receiver/sender to
    rewrite the timing data in TTML-information in relation to the RTP
    timestamp? Or written another way: Is the RTP Timestamp considered the
    epoch of the TTML document?

    Best regards,
    Kjetil Oftedal

    _______________________________________________
    payload mailing list
    payload@ietf.org
    https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ietf.org_mailman_listinfo_payload&d=DwICAg&c=uw6TLu4hwhHdiGJOgwcWD4AjKQx6zvFcGEsbfiY9-EI&r=lekNOOM5noV61zrPH3rwPyhtNnLLWoLEHgd0quQxly8&m=lcOWqoAOZng6eG5ibGyA-k5wqdyjNwxcOsa251X-eLg&s=tiBjx73Dw6-x1Yj7MlpvB_bNw67I5UVkduJQHa8xwDA&e=




-----------------------------
http://www.bbc.co.uk
This e-mail (and any attachments) is confidential and
may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in
error, please delete it from your system.
Do not use, copy or disclose the
information in any way nor act in reliance on it and notify the sender
immediately.
Please note that the BBC monitors e-mails
sent or received.
Further communication will signify your consent to
this.
-----------------------------