| Internet-Draft | WebVTT Packaging for MOQT Streaming Form | July 2026 |
| Law & Nandakumar | Expires 7 January 2027 | [Page] |
This document specifies the JSON packaging format for delivering WebVTT caption and subtitle content as event timeline tracks within the MOQT Streaming Format (MSF).¶
This note is to be removed before publishing as an RFC.¶
Status information for this document may be found at https://datatracker.ietf.org/doc/draft-wilaw-moq-webvtt-msf/.¶
Discussion of this document takes place on the Media Over QUIC Working Group mailing list (mailto:moq@ietf.org), which is archived at https://mailarchive.ietf.org/arch/browse/moq/. Subscribe at https://www.ietf.org/mailman/listinfo/moq/.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 7 January 2027.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
This document defines how WebVTT [WEBVTT] content is packaged for
delivery over MSF [MSF] event timelines using the urn:msf:captions:webvtt
event type.¶
WebVTT is a widely-used format for delivering captions and subtitles on the web. MSF event timeline tracks ([MSF], Section 11) provide a mechanism for delivering time-synchronized metadata alongside media content. This specification defines a JSON [JSON] packaging format that maps WebVTT cues to MSF event timeline records, preserving WebVTT semantics while enabling synchronized delivery over MOQT.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
Each WebVTT cue is mapped to an MSF event timeline record ([MSF], Section 11.1).
The record's m (media time) index indicates when the cue becomes active, and
the data field contains a JSON object with the following fields:¶
| Field | Type | Required | Description |
|---|---|---|---|
| start | Number | Yes | Cue start time in milliseconds |
| end | Number | Yes | Cue end time in milliseconds |
| id | String | No | Cue identifier |
| text | String | Yes | Cue payload (may contain tags) |
| settings | Object | No | Positioning settings |
| region | String | No | Region identifier |
The text field preserves WebVTT cue text tags. Times are in milliseconds,
consistent with MSF media time conventions ([MSF], Section 10.1). The m
index value MUST equal the start value in the corresponding data object.¶
WebVTT NOTE blocks and the file header description are discarded during packaging.¶
The optional settings object maps WebVTT cue settings to JSON properties,
preserving the WebVTT syntax verbatim:¶
| Field | Type | Description |
|---|---|---|
| vertical | String | Writing direction: "rl" or "lr" |
| line | String | Line position (e.g., "0", "-1", "50%,center") |
| position | String | Text position (e.g., "50%", "10%,line-left") |
| size | String | Cue box size percentage (e.g., "80%") |
| align | String | Text alignment: "start", "center", "end", "left", or "right" |
WebVTT region definitions and CSS style blocks are delivered as an initialization record at media time 0, analogous to codec initialization data ([MSF], Section 5.3.11). Receivers MUST process this record before rendering any cues.¶
An initialization record is distinguished from cue records by the presence
of regions and/or styles keys in the data object.¶
Each region object in the regions array maps WebVTT region settings:¶
| Field | Type | Required | Description |
|---|---|---|---|
| id | String | Yes | Region identifier |
| width | String | No | Width as percentage of video (default "100%") |
| lines | Number | No | Number of visible lines (default 3) |
| regionanchor | String | No | X,Y anchor within region (default "0%,100%") |
| viewportanchor | String | No | X,Y anchor on viewport (default "0%,100%") |
| scroll | String | No | Scroll mode; only valid value is "up" |
Example initialization record:¶
{
"m": 0,
"data": {
"regions": [
{"id": "bottom", "width": "100%", "lines": 2,
"regionanchor": "50%,100%", "viewportanchor": "50%,90%"}
],
"styles": "::cue { background: rgba(0,0,0,0.8); }"
}
}
¶
Following [MSF], Section 11.3, a WebVTT event timeline track uses independent and incremental objects within each MOQT Group:¶
A complete event timeline payload with two cues:¶
[
{
"m": 0,
"data": {
"start": 0,
"end": 2500,
"text": "Welcome to the show."
}
},
{
"m": 2500,
"data": {
"start": 2500,
"end": 5000,
"text": "<v Alice>Hello everyone!</v>",
"settings": {"align": "center"}
}
}
]
¶
The m index is required by MSF for timeline synchronization and subscriber
join; the start and end values within data make each cue self-contained
for rendering.¶
A WebVTT caption track is declared in the MSF catalog ([MSF], Section 5.3) with the following fields:¶
packaging: MUST be eventtimeline ([MSF], Section 5.3.3)¶
eventType: MUST be urn:msf:captions:webvtt ([MSF], Section 5.3.4)¶
depends: MUST list the video track(s) this caption track accompanies ([MSF], Section 5.3.14)¶
mimeType: MUST be application/json ([MSF], Section 5.3.17)¶
role: SHOULD be caption or subtitle as appropriate ([MSF], Section 5.3.6)¶
lang: SHOULD specify the caption language per RFC 5646 ([MSF], Section 5.3.24)¶
Example:¶
{
"name": "captions-en",
"packaging": "eventtimeline",
"eventType": "urn:msf:captions:webvtt",
"mimeType": "application/json",
"depends": ["video"],
"role": "caption",
"lang": "en",
"isLive": true
}
¶
This document requests registration of the urn:msf:captions:webvtt event type
in the "MSF Event Timeline Types" registry established by [MSF], Section 14.2:¶
| Event Type | Description | Specification |
|---|---|---|
| urn:msf:captions:webvtt | WebVTT caption cues | this document |
TODO¶