MediaArea / MediaInfoLib

Convenient unified display of the most relevant technical and tag data for video and audio files.
https://mediaarea.net/MediaInfo
BSD 2-Clause "Simplified" License
636 stars 175 forks source link

TTML Calculation Return Text Start / Text End #2136

Open joe-sciame-wm opened 2 weeks ago

joe-sciame-wm commented 2 weeks ago

Hi Jerome,

We have some text files we are trying to validate and the validation is capturing subtitle lines that do not have text.

<div xml:id="e_0" region="R0" begin="00:57:34.120" end="00:57:35.440" style="d_default"/>
<div xml:id="e_1" region="R1" begin="01:00:01.440" end="01:00:04.320" style="d_default">
    <p style="p_font2"><span>CAPTIONING MADE POSSIBLE BY</span></p>
    <p style="p_font2"><span>WARNER BROS. ANIMATION</span></p>
</div>
Start time (commands)                    : 3454120
Start time (commands)                    : 57 min 34 s
Start time (commands)                    : 57 min 34 s 120 ms
Start time (commands)                    : 57 min 34 s
Start time (commands)                    : 00:57:34.120
Start time (commands)                    : 00:57:34:03
Start time (commands)                    : 00:57:34.120 (00:57:34:03)

Similar to our SCC request are we able to split out the check between first and last tags and first and last text?

JeromeMartinez commented 2 weeks ago

Do we agree that the expected result is:

Start time (commands)                    : 00:57:34.120
Start time                               : 01:00:01.440
End time                                 : 01:00:04.320
End time (commands)                      : 01:00:04.320

("Start time" excludes "e_0" as it has no content, but we keep "e_0" for "Start time (commands)", same for end)

joe-sciame-wm commented 1 week ago

Hi Jerome, Yes, it would make sense to denote the start time (commands) versus start time (Content). Same for end.