ebu-tt-live-toolkit icon indicating copy to clipboard operation
ebu-tt-live-toolkit copied to clipboard

Invalid timestamp format when converting XML

Open danielthepope opened this issue 6 years ago • 2 comments

When I use ebu_tt_live.documents.converters.ebutt3_to_ebuttd to convert a EBU-TT-Live document with ttp:timeBase="media" to an EBU-TT-D, the media timecodes remain unchanged.

An input line could look like

<tt:p xml:id="C2" region="R3" begin="2.0s" end="6.8s" style="S1">

Output timestamps remain unchanged: begin="2.0s" when it should be more like begin="00:00:02.000" (not sure about the milliseconds)

danielthepope avatar Jul 19 '19 12:07 danielthepope

Thanks @danielthepope you're right here. This is because Tech3380 v1.0.1 says ebuttdt:distributionMediaTimingType is

hours:minutes:seconds followed by an optional fraction.

But there's no distribution media timing type converter used in bindings/converters/ebutt3_ebuttd.py, class EBUTT3EBUTTDConverter, method _process_timing_type which should be making some kind of new type based on the input data even when converting from media timebase to media timebase.

We should try to tackle this in release/3.0

nigelmegitt avatar Jul 19 '19 12:07 nigelmegitt

I suspect the EBU-TT-D XSD needs updating here too.

nigelmegitt avatar Jul 19 '19 12:07 nigelmegitt