Required Configuration

72.7.4.4 777 Template example

Here is an example of 777.ml-cgc template used for subtitles broadcasting:

<?xml version="1.0" encoding="utf-16"?>
<ml-chargen>
      <video-props colorspace="ARGB32" interlace="top" extra-buffer="1" />
      <video-output background="black(0)" top-video="no">
            <input-rect left="0.000%" right="0.000%" top="0.000%" bottom="0.000%" />
            <output-rect left="0.000%" right="0.000%" top="0.000%" bottom="0.000%" />
      </video-output>
      <cg-items>
            <cg-item id="ticker-000" group-type="ticker" pos-x="0.025" pos-y="0.050" size-x="0.950" size-y="0.180">
                  <ticker type="ticker" align="center" lines="3" distance="-0.15" start-time="0.0" show-time="3000.0" intro-time="0.0" exit-time="0.0">
                        <content>
                              <content-item>
                                    <text color='white' font='arial' italic='false' bold='false' outline-color='black' outline='5'>Č,</text><text color='white' font='arial' italic='false' bold='false' outline-color='black' outline='5'>Š,</text><text color='white' font='arial' italic='false' bold='false' outline-color='black' outline='5'>Ž</text><text color='orange' font='arial underline' italic='true' bold='true' outline-color='black' outline='5'>OTROVNE</text><text color='white' font='arial underline' italic='false' bold='false' outline-color='black' outline='5'>VEZE</text><br/>
                                    <text color='white' font='arial underline' italic='false' bold='true' outline-color='black' outline='5'>OTROVNE</text><text color='white' font='arial underline' italic='false' bold='true' outline-color='black' outline='5'>Č,</text><text color='white' font='arial underline' italic='false' bold='true' outline-color='black' outline='5'>Š,</text><text color='white' font='arial underline' italic='false' bold='true' outline-color='black' outline='5'>Ž</text><text color='green' font='arial underline' italic='false' bold='true' outline-color='black' outline='5'>VEZE</text><br/>
                                    <text color='white' font='arial' italic='false' bold='false' outline-color='black' outline='5'>OTROVNE</text><text color='white' font='arial' italic='false' bold='false' outline-color='black' outline='5'>2</text><text color='brown' font='arial' italic='true' bold='false' outline-color='black' outline='5'>VEZE</text><text color='brown' font='arial' italic='true' bold='false' outline-color='black' outline='5'>Č,</text><text color='brown' font='arial' italic='true' bold='false' outline-color='black' outline='5'>Š,</text><text color='brown' font='arial' italic='true' bold='false' outline-color='black' outline='5'>Ž</text>
                              </content-item>
                        </content>
                  </ticker>
                  <cg-props show="yes" />
            </cg-item>
      </cg-items>
      <etere>
            <subtitles borderLeft="0.025" borderRight="0.025" borderTop="0.05" borderBottom="0.05" rowDistance="-0.0017" rowVAlign="1" ignoreNRows="1"/>
      </etere>
</ml-chargen>


Subtitles parameters

borderLeft: Used to define the left side of the area where the subtitle will be displayed. A value of 0.1 represents a 10% border.
borderRight: Used to define the right side of the area where the subtitle will be displayed. A value of 0.1 represents a 10% border.
borderTop: Used to define the top side of the area where the subtitle will be displayed. A value of 0.1 represents a 10% border.
borderBottomUsed to define the bottom side of the area where the subtitle will be displayed. A value of 0.1 represents a 10% border.
rowDistance: Used to adjust the distance between the rows of the subtitle.
rowVAlign: Used to handle the vertical alignment of the rows. If its value is '1' vertical alignment is toward the bottom of last row. In case of any other value or if the attribute is not defined, aligment is toward the top of 1st row.
ignoreNRows: If this attribute exists and is set to '1', the number of rows will be ignored. This means that, if a subtitle has multiple rows and vertical position is set in a way that one or more rows fall outside visible part of screen, the text is not shifted up to let all its rows to fit into visible part of screen. If this attribute is missing or set to any other value: in case the text falls outside the visible part of the screen, it will be shifted up to let it fit into visible screen.