<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>26927</bug_id>
          
          <creation_ts>2014-09-29 12:23:22 +0000</creation_ts>
          <short_desc>[InbandTracks] MPEG-2 TS Mapping</short_desc>
          <delta_ts>2014-11-14 11:11:05 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>Sourcing In-band Media Resource Tracks</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Cyril Concolato">cyril.concolato</reporter>
          <assigned_to name="Silvia Pfeiffer">silviapfeiffer1</assigned_to>
          <cc>b.lund</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>112381</commentid>
    <comment_count>0</comment_count>
    <who name="Cyril Concolato">cyril.concolato</who>
    <bug_when>2014-09-29 12:23:22 +0000</bug_when>
    <thetext>The MPEG-2 TS section has some problems:

That sentence:
&quot;The order in which elementary streams are listed in the &quot;Program Map Table&quot; (PMT) of a MPEG-2 TS is maintained when sourcing multiple MPEG-2 tracks into HTML.&quot;
should be rewritten using normative statements and should indicate what happens when PMT changes occur, as follows:
&quot;UA shall expose elementary streams as HTML Tracks in the order of the &quot;Program Map Table&quot; (PMT) of a MPEG-2 TS. UA shall trigger addtrack or removetrack events when PMT changes are detected.&quot;

That other sentence:
&quot;A user agent recognises and supports data from a MPEG-2 TS resource as being equivalent to a HTML track based on the value of the &apos;stream_id&apos; field of an elementary stream as given in a Transport or Program Stream header and which maps to a &quot;stream type&quot;:&quot;
It refers to &apos;stream_id&apos; or &apos;stream type&apos;. It is unclear if those are the MPEG-2 TS &apos;PID&apos;, &apos;stream_type&apos;, &apos;PES stream_id&apos; ... or if they are new terms introduced in this text. I think we should also clearly indicate that Program Streams are out-of-scope. 

Note also that the stream_type 0x02 is mapped twice: as a TextTrack and as a VideoTrack.

The overall idea is also not very clear:
- Does a UA have to expose all tracks from a TS? all tracks that have characteristics described in the table? I agree it may be desirable from an application point of view but it may be too resource consuming. Maybe we should think of a mechanism to register tracks for which the application would like data to be exposed, a bit like addSourceBuffer
- Why would a UA expose data as a VideoTrack if it does not support it for rendering, e.g. ISO/IEC 14496-2 ? It should rather expose it as a TextTrack. So I think if we should if the data is supported, then it shall be exposed as VideoTrack otherwise it may be exposed as a TextTrack.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114285</commentid>
    <comment_count>1</comment_count>
    <who name="Bob Lund">b.lund</who>
    <bug_when>2014-10-30 22:55:50 +0000</bug_when>
    <thetext>(In reply to Cyril Concolato from comment #0)
&gt; The MPEG-2 TS section has some problems:
&gt; 
&gt; That sentence:
&gt; &quot;The order in which elementary streams are listed in the &quot;Program Map Table&quot;
&gt; (PMT) of a MPEG-2 TS is maintained when sourcing multiple MPEG-2 tracks into
&gt; HTML.&quot;
&gt; should be rewritten using normative statements

No, per agreement with [1]

&gt; and should indicate what
&gt; happens when PMT changes occur, as follows:
&gt; &quot;UA shall expose elementary streams as HTML Tracks in the order of the
&gt; &quot;Program Map Table&quot; (PMT) of a MPEG-2 TS. UA shall trigger addtrack or
&gt; removetrack events when PMT changes are detected.&quot;

Agreed.

&gt; 
&gt; That other sentence:
&gt; &quot;A user agent recognises and supports data from a MPEG-2 TS resource as
&gt; being equivalent to a HTML track based on the value of the &apos;stream_id&apos; field
&gt; of an elementary stream as given in a Transport or Program Stream header and
&gt; which maps to a &quot;stream type&quot;:&quot;
&gt; It refers to &apos;stream_id&apos; or &apos;stream type&apos;. It is unclear if those are the
&gt; MPEG-2 TS &apos;PID&apos;, &apos;stream_type&apos;, &apos;PES stream_id&apos; ... or if they are new terms
&gt; introduced in this text. I think we should also clearly indicate that
&gt; Program Streams are out-of-scope.

This wording was confusing and will be changed to &quot;A user agent recognizes and supports data in an MPEG-2 TS elementary stream identified by the &apos;elementary_PID&apos; field in the Program Map Table as being equivalent to an HTML track based on the value of the &apos;stream_type&apos; field associated with that &apos;elementary_PID&apos;&quot; 
&gt; 
&gt; Note also that the stream_type 0x02 is mapped twice: as a TextTrack and as a
&gt; VideoTrack.

Are you referring to the caption service in an stream_type 0x02? That is only mapping the caption in the video stream, if present, to a text track.

&gt; 
&gt; The overall idea is also not very clear:
&gt; - Does a UA have to expose all tracks from a TS? all tracks that have
&gt; characteristics described in the table? I agree it may be desirable from an
&gt; application point of view but it may be too resource consuming. Maybe we
&gt; should think of a mechanism to register tracks for which the application
&gt; would like data to be exposed, a bit like addSourceBuffer

Bug 26893 was submitted to address this. TextTracks are created with mode = &quot;disabled&quot;. No UA resources, beyond creating the track are consumed until the app changes the mode.

&gt; - Why would a UA expose data as a VideoTrack if it does not support it for
&gt; rendering, e.g. ISO/IEC 14496-2 ? It should rather expose it as a TextTrack.
&gt; So I think if we should if the data is supported, then it shall be exposed
&gt; as VideoTrack otherwise it may be exposed as a TextTrack.

It is unclear what the specific problem is.


[1] http://lists.w3.org/Archives/Public/public-html-admin/2014Jun/0050.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114560</commentid>
    <comment_count>2</comment_count>
    <who name="Bob Lund">b.lund</who>
    <bug_when>2014-11-05 15:54:31 +0000</bug_when>
    <thetext>(In reply to Bob Lund from comment #1)
&gt; (In reply to Cyril Concolato from comment #0)
&gt; &gt; The MPEG-2 TS section has some problems:
&gt; &gt; 
&gt; &gt; That sentence:
&gt; &gt; &quot;The order in which elementary streams are listed in the &quot;Program Map Table&quot;
&gt; &gt; (PMT) of a MPEG-2 TS is maintained when sourcing multiple MPEG-2 tracks into
&gt; &gt; HTML.&quot;
&gt; &gt; should be rewritten using normative statements
&gt; 
&gt; No, per agreement with [1]
&gt; 
&gt; &gt; and should indicate what
&gt; &gt; happens when PMT changes occur, as follows:
&gt; &gt; &quot;UA shall expose elementary streams as HTML Tracks in the order of the
&gt; &gt; &quot;Program Map Table&quot; (PMT) of a MPEG-2 TS. UA shall trigger addtrack or
&gt; &gt; removetrack events when PMT changes are detected.&quot;
&gt; 
&gt; Agreed.
&gt; 
&gt; &gt; 
&gt; &gt; That other sentence:
&gt; &gt; &quot;A user agent recognises and supports data from a MPEG-2 TS resource as
&gt; &gt; being equivalent to a HTML track based on the value of the &apos;stream_id&apos; field
&gt; &gt; of an elementary stream as given in a Transport or Program Stream header and
&gt; &gt; which maps to a &quot;stream type&quot;:&quot;
&gt; &gt; It refers to &apos;stream_id&apos; or &apos;stream type&apos;. It is unclear if those are the
&gt; &gt; MPEG-2 TS &apos;PID&apos;, &apos;stream_type&apos;, &apos;PES stream_id&apos; ... or if they are new terms
&gt; &gt; introduced in this text. I think we should also clearly indicate that
&gt; &gt; Program Streams are out-of-scope.
&gt; 
&gt; This wording was confusing and will be changed to &quot;A user agent recognizes
&gt; and supports data in an MPEG-2 TS elementary stream identified by the
&gt; &apos;elementary_PID&apos; field in the Program Map Table as being equivalent to an
&gt; HTML track based on the value of the &apos;stream_type&apos; field associated with
&gt; that &apos;elementary_PID&apos;&quot; 
&gt; &gt; 
&gt; &gt; Note also that the stream_type 0x02 is mapped twice: as a TextTrack and as a
&gt; &gt; VideoTrack.
&gt; 
&gt; Are you referring to the caption service in an stream_type 0x02? That is
&gt; only mapping the caption in the video stream, if present, to a text track.
&gt; 
&gt; &gt; 
&gt; &gt; The overall idea is also not very clear:
&gt; &gt; - Does a UA have to expose all tracks from a TS? all tracks that have
&gt; &gt; characteristics described in the table? I agree it may be desirable from an
&gt; &gt; application point of view but it may be too resource consuming. Maybe we
&gt; &gt; should think of a mechanism to register tracks for which the application
&gt; &gt; would like data to be exposed, a bit like addSourceBuffer
&gt; 
&gt; Bug 26893 was submitted to address this. TextTracks are created with mode =
&gt; &quot;disabled&quot;. No UA resources, beyond creating the track are consumed until
&gt; the app changes the mode.
&gt; 
&gt; &gt; - Why would a UA expose data as a VideoTrack if it does not support it for
&gt; &gt; rendering, e.g. ISO/IEC 14496-2 ? It should rather expose it as a TextTrack.
&gt; &gt; So I think if we should if the data is supported, then it shall be exposed
&gt; &gt; as VideoTrack otherwise it may be exposed as a TextTrack.
&gt; 
&gt; It is unclear what the specific problem is.
&gt; 
&gt; 
&gt; [1] http://lists.w3.org/Archives/Public/public-html-admin/2014Jun/0050.html

Fixed with PR #39 https://github.com/w3c/HTMLSourcingInbandTracks/pull/39</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114920</commentid>
    <comment_count>3</comment_count>
    <who name="Cyril Concolato">cyril.concolato</who>
    <bug_when>2014-11-14 08:44:30 +0000</bug_when>
    <thetext>Actually, my comment about &quot;should&quot; being &quot;must&quot; initially rejected is still valid now that the relationship with HTML5 regarding the normative/informative reference is clarified. 

Also, the wording &quot;A user agent recognizes and supports data in an MPEG-2 TS elementary [...] as being equivalent to an HTML track [...]&quot; is still very confusing to me. I&apos;d very much prefer: &quot;If a UA decides to expose an MPEG-2 TS elementary stream as an HTML Track, it shall expose tracks as follows [...]&quot;. This would make is clearer in terms of conformance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114926</commentid>
    <comment_count>4</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2014-11-14 11:11:05 +0000</bug_when>
    <thetext>Open a new bug?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>