Share

Subtitle XML Sample

Use the following XML sample as a starting point for your own subtitle XML files.

The following is an example of Subtitle XML which creates three Text soft effects applied to gaps at these timecodes:

  • 01:00:01;00 until 01:00:02;00
  • 01:00:03;00 until 01:00:04;00
  • 01:00:05;00 until 01:00:06;02
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE subtitle>
<subtitle version="1">
  <name>SampleSubtitles</name>
                      <rate>24</rate>
                                <resolution>
    <width>1920</width>
    <height>1080</height>
    <depth>8</depth>
    <aspect>1.778</aspect>
    <scanformat>default</scanformat>
  </resolution>
  <timecode>
    <start>01:00:00;00</start>
    <end>01:00:08;00</end>
  </timecode>
  <video>
    <title>
      <start>01:00:01;00</start>
      <end>01:00:02;00</end>
      <text>This is a subtitle string</text>
      <font>Garamond</font>
      <size>20</size>
      <fontcolor>
        <alpha>255</alpha>
        <red>255</red>
        <green>255</green>
        <blue>255</blue>
      </fontcolor>
      <vertical>0</vertical>
      <horizontal>0</horizontal>
      <setup>/opt/Autodesk/project/test/text/paz.ttg</setup>
    </title>
    <title>
      <start>01:00:03;00</start>
      <end>01:00:04;00</end>
      <text>This is another subtitle string</text>
      <font>Garamond</font>
      <size>20</size>
      <fontcolor>
        <alpha>255</alpha>
        <red>255</red>
        <green>255</green>
        <blue>255</blue>
      </fontcolor>
      <vertical>100</vertical>
      <horizontal>100</horizontal>
      <setup>/opt/Autodesk/project/test/text/paz.ttg</setup>
    </title>
    <title>
      <start>01:00:05;00</start>
      <end>01:00:06;02</end>
      <text>This is a third subtitle string</text>
      <font>Garamond</font>
      <size>20</size>
      <fontcolor>
        <alpha>255</alpha>
        <red>255</red>
        <green>255</green>
        <blue>255</blue>
      </fontcolor>
      <vertical>-100</vertical>
      <horizontal>-200</horizontal>
      <setup>/opt/Autodesk/project/test/text/paz.ttg</setup>
    </title>
  </video>
</subtitle>

Was this information helpful?