Kodi Community Forum

Full Version: Subtitle ttml support
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I wonder if Frodo supports ttml (Timed Text) subtitle format?

If so, what extension should the subtitle file have?

It looks something like this:

Code:
<?xml version="1.0" encoding="utf-8"?>
<tt xmlns="http://www.w3.org/2006/10/ttaf1" xmlns:tts="http://www.w3.org/2006/10/ttaf1#styling">
  <head>
    <styling>
      <style xml:id="default.left" tts:fontFamily="Arial" tts:fontSize="20px" tts:textAlign="left" tts:fontStyle="normal" tts:fontWeight="normal" tts:backgroundColor="transparent" tts:color="#FFFFFF" />
      <style xml:id="default.center" tts:textAlign="center" style="default.left" />
      <style xml:id="default.right" tts:textAlign="right" style="default.left" />
    </styling>
  </head>
  <body>
    <div>
      <p begin="00:00:08.56" end="00:00:13.32" duration="00:00:04.76" style="default.left" tts:direction="ltr">I början av 1800-talet,<br />i en källare i Mayfair-</p>
      <p begin="00:00:13.48" end="00:00:20.72" duration="00:00:07.24" style="default.left" tts:direction="ltr">-byggde vetenskapsmannen Humphry<br />Davy en fantastisk elektrisk apparat.</p>
      <p begin="00:00:20.88" end="00:00:27.32" duration="00:00:06.44" style="default.left" tts:direction="ltr">Den var 4x8 meter och bestod av<br />metallstaplar och stinkande syra.</p>
      <p begin="00:00:27.48" end="00:00:33.08" duration="00:00:05.60" style="default.left" tts:direction="ltr">Den skulle generera mer elektricitet<br />än nån maskin hade gjort tidigare.</p>


thanks in advance

Per