有谁知道如何将TTML-tick转换为秒?例如,如何将“1281697500”转换为~2min7sec?
答案 0 :(得分:2)
There should be a ttp:tickRate
parameter on the root tt
element, which defines the number of ticks per second. It's 1 if not specified. So if you have a TTML time expression with a tick metric like "1281697500t" then remove the t
from the end and divide the number by the value of ttp:tickRate
to get the value in seconds.
Note that use of ticks is only intended when working in a media timebase.
Link to ttp:tickRate
: https://www.w3.org/TR/ttml1/#parameter-attribute-tickRate
Link to TTML Time Expression syntax: https://www.w3.org/TR/ttml1/#timing-value-timeExpression