<?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>26066</bug_id>
          
          <creation_ts>2014-06-12 06:46:20 +0000</creation_ts>
          <short_desc>Enhance language around edit list in BMFF bytestream spec</short_desc>
          <delta_ts>2014-06-20 17:17:29 +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>Media Source Extensions</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</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>CR</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Steven Robertson">strobe</reporter>
          <assigned_to name="Aaron Colwell">acolwell</assigned_to>
          <cc>acolwell</cc>
    
    <cc>cyril.concolato</cc>
    
    <cc>jer.noble</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-media</cc>
    
    <cc>watsonm</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>107694</commentid>
    <comment_count>0</comment_count>
    <who name="Steven Robertson">strobe</who>
    <bug_when>2014-06-12 06:46:20 +0000</bug_when>
    <thetext>In private correspondence, it was suggested that the language around edit lists in the BMFF spec for MSE is underspecified.

The full extent of edit lists are a pain to get right and difficult to test. I suggest that we narrow the language to support for the one case that&apos;s actually required for proper operation of most existing MSE-compatible media corpora.

From ISO 14496-12:2012:

&quot;&quot;&quot;
A non-empty edit may insert a portion of the media timeline that is not present in the initial movie, and is present only in subsequent movie fragments. Particularly in an empty initial movie of a fragmented movie file (when there are no media samples yet present), the segment_duration of this edit may be zero, whereupon the edit provides the offset from media composition time to movie presentation time, for the movie and subsequent movie fragments. It is recommended that such an edit be used to establish a presentation time of 0 for the first presented sample, when composition offsets are used. 
&quot;&quot;&quot;

From the current MSE BMFF spec:

&quot;&quot;&quot;
The user agent must handle Edit Boxes (edts), in initialization segment, which provide a mapping of composition times for each track to the global presentation time.
&quot;&quot;&quot;

Proposed revised text:

&quot;&quot;&quot;
The user agent must support setting the offset from media composition time to movie presentation time by handling an Edit Box (edts) with an Edit List (elst) element that contains an non-empty edit list with a duration of 0 (indicating that it spans all subsequent media).
&quot;&quot;&quot;

This does not preclude a UA from implementing more complete support, but clarifying the (pretty simple) minimum requirement makes it more likely for that minimum baseline to be implemented IMO.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107728</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-06-12 15:11:11 +0000</bug_when>
    <thetext>I agree with the proposal to restrict the requirement to the simple cases. It is also possible, though, that the segment_duration of the single edit is non-zero, if the total movie duration, including fragment, was known when the edit list was created.

So, I would suggest:

&quot;&quot;&quot;
The user agent must support setting the offset from media composition time to movie presentation time by handling an Edit Box (edts) containing a single Edit List Box (elst) that contains a single edit with media rate one. This edit may have a duration of 0 (indicating that it spans all subsequent media) or may have a non-zero duration (indicating the total duration of the movie including fragments).
&quot;&quot;&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108129</commentid>
    <comment_count>2</comment_count>
    <who name="Aaron Colwell">acolwell</who>
    <bug_when>2014-06-20 17:17:29 +0000</bug_when>
    <thetext>Change committed.
https://dvcs.w3.org/hg/html-media/rev/0505b9684488</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>