This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25132 - Update the "sourcing in-band text tracks" section for different types of text tracks
Summary: Update the "sourcing in-band text tracks" section for different types of text...
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on: 24997
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-24 06:00 UTC by Silvia Pfeiffer
Modified: 2014-09-15 22:30 UTC (History)
8 users (show)

See Also:


Attachments

Description Silvia Pfeiffer 2014-03-24 06:00:12 UTC
Expand on how to source TextTrack objects from types of inband text tracks typically used in UAs, given input from the Inband Text Track CG. This includes:

1. Determining what tracks in a media resource are actually identified as text tracks

2. The order in which the identified tracks are added to the TextTrackList

3. How to fill the .id, .kind, .label, and .language attributes on the created TextTrack object (these are actually applicable to AudioTrack and Video Track objects, too)

The proposed patch is here: https://github.com/w3c/html/commit/5fbd9199cc711d8ae9155da58be3d4368272e00d .

The Inband Text Track CG has collated information on their wiki here: https://www.w3.org/community/inbandtracks/wiki/Main_Page#Audio.2FVideo.2FText_Track_Creation
* "Track order" relates to point 2 above,
* "Track id, label, language" relate to point 3 above,
* "TextTrack Creation - kind" relates to point 1 & 3 above

The specifications that I based the patch on are as follows:

* Ogg (there were some bugs in Ogg and I completed the information): https://wiki.xiph.org/SkeletonHeaders and
https://www.xiph.org/ogg/doc/framing.html (for skeleton-free Ogg)

* WebM:
http://www.webmproject.org/docs/container/
http://matroska.org/technical/specs/index.html

* MPEG-2:
http://www.itu.int/rec/T-REC-H.222.0-201206-I

* ISOBMFF/MEG-4:
http://standards.iso.org/ittf/PubliclyAvailableStandards/c061988_ISO_IEC_14496-12_2012.zip

* DASH:
http://standards.iso.org/ittf/PubliclyAvailableStandards/c057623_ISO_IEC_23009-1_2012.zip

Where it was unclear, I used the input from the CG wiki.
The patch has been reviewed and ok-ed by the CG (see bug #24997).
I'm looking to have the patch adjusted and applied in a manner that suits the WHATWG style.
Comment 1 Ian 'Hixie' Hickson 2014-04-01 16:47:13 UTC
Shouldn't this just be in a wiki somewhere? It seems like it needs specific text per-format, and HTML itself seems like a poor place to put that.
Comment 2 Silvia Pfeiffer 2014-05-05 07:27:45 UTC
A first draft spec is now available at http://rawgit.com/silviapfeiffer/HTMLSourcingInbandTracks/master/index.html .

The following changes still need to be added to the HTML spec - these are about the sourcing of the inBandMetadataTrackDispatchType attribute:

1.) Typo for Ogg:

<dt>If the <span>media resource</span> is an Ogg file</dt>

The <span>text track in-band metadata track dispatch type</span> must be set to the value of the Name header field.

That should be the 'role' header field, and not the "Name" header field.


2.) Add for DASH:

<dt>If the <span>media resource</span> is a DASH media resource</dt>

<dd>The <span>text track in-band metadata track dispatch type</span> must be set to the concatenation of the "AdaptationSet" element attributes and all child Role descriptors. <a href="#refsDASH">[DASH]</a></dd>
Comment 3 Ian 'Hixie' Hickson 2014-05-05 21:55:02 UTC
I like it!

What URL should I use to reference that?
Comment 4 Bob Lund 2014-05-15 19:45:01 UTC
Bug 25733 [1] has been opened to add an HTML5 reference to the sourcing spec.

[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=25733
Comment 5 Silvia Pfeiffer 2014-06-06 05:28:15 UTC
Spec is now available at http://dev.w3.org/html5/html-sourcing-inband-tracks/ .

I've made use of it via

https://github.com/w3c/html/commit/c3a32873e10c45fc948541ca229914d4cf07cdee
Comment 6 Bob Lund 2014-08-18 14:52:43 UTC
The version at http://dev.w3.org/html5/html-sourcing-inband-tracks/ captures known (at least to me) use cases for MPEG-2 TS, ISOBMFF and DASH.
Comment 7 Ian 'Hixie' Hickson 2014-09-15 22:30:22 UTC
Looks like this got fixed at some point already.