Sample Code
 
 
 

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

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE subtitle>
<subtitle version="1">
  <name>SampleSubtitles</name>
  <!-- Rate should be one of : -->
  <!-- -->
  <!-- * '23.976'-->
  <!-- * '24'-->
  <!-- * '25'-->
  <!-- * '29.97 DF'-->
  <!-- * '29.97 NDF' -->
  <!-- * '30'-->
  <!-- * '59.94 DF'-->
  <!-- * '59.94 NDF' -->
  <rate>24</rate>
  <!-- Set width and height to default -->
  <!-- if you want project default res -->
  <!-- depth should be : -->
  <!-- -->
  <!-- * '8', '10' or '12'.-->
  <!-- * default : for project default depth --> 
  <!-- aspect should be : -->
  <!---->
  <!-- * '1.77777'-->
  <!-- * '1.333'-->
  <!-- * default-->
  <!-- scanformat should be : -->
  <!---->
  <!-- * 'f1' -->
  <!-- * 'f2' -->
  <!-- * default-->
  <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>/usr/discreet/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>/usr/discreet/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>/usr/discreet/project/test/text/paz.ttg</setup>
    </title>
  </video>
</subtitle>