You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The spec Annex Example 7 specifies a dur on body but no begin or end, and a descendant content element (a p but it could be a div just the same) with a begin and end attribute.
<bodydur="5s">
<div>
<pxml:id="ID005"begin="5s"end="12s">
<span>Some example text...</span>
<br/>
<span>And another line</span>
</p>
</div>
</body>
Earliest Computed Begin Time: 5s
Latest Computed End Time: 12s
When I implement a test that duplicates this it fails because the code for calculating the computed end time of the body is not taking into account the document resolved begin time and applying the dur relative to that, but is instead applying it relative to the default begin time of the body, which is zero.
The text was updated successfully, but these errors were encountered:
Digging into this, there is code that is trying to make this work. ebu_tt_live/bindings/validation/timing.py line 373-375:
elifself._begin_timedeltaisNoneandself._end_timedeltaisNone:
# In this case the document end at availability time + durproposed_end=self._semantic_dataset['availability_time'] +self._dur_timedelta
The issue is that the availability_time is used as the basis rather than the resolved time. I'm not sure if resolved time is known at the time this calculation is done though.
The spec Annex Example 7 specifies a
dur
onbody
but nobegin
orend
, and a descendant content element (ap
but it could be adiv
just the same) with abegin
andend
attribute.When I implement a test that duplicates this it fails because the code for calculating the computed end time of the
body
is not taking into account the document resolved begin time and applying thedur
relative to that, but is instead applying it relative to the defaultbegin
time of thebody
, which is zero.The text was updated successfully, but these errors were encountered: