Accueil  Tutoriels  Outils Karaoké  Téléchargements  Forum  Multimedia  Contact

SweetKaraoké

Sous-titrage de karaokés


Exemple d'un fichier au format USF



Accédez directement à :

Exemple d'un fichier au format USF

Ouvrez votre éditeur de texte préféré et copiez les lignes suivantes :

<?xml version="1.0" encoding="UTF-8"?>
<!-- DOCTYPE USFSubtitles SYSTEM "USFV100.dtd" -->
<?xml-stylesheet type="text/xsl" href="USFV100.xsl"?>

<USFSubtitles version="1.0">

  <metadata>
    <title>The Core Media Player subtitle format sample</title>
      <author>
        <name>[Toff]</name>
        <email>christophe.paris@free.fr</email>
        <url>http://christophe.paris.free.fr</url>
      </author>
      <language code="eng">English</language>
      <date>2002-08-15</date>
      <comment>This sample show you available features in The Core Media Player subtitle format</comment>
  </metadata>

  <styles>
    <!-- Here we redefine the default style -->
    <style name="Default" >
      <fontstyle face="Arial" size="24" color="#EEEEFF" outline-color="#5555FF"/>
      <position alignment="BottomCenter" vertical-margin="10%" relative-to="Window" />
    </style>
       
    <!-- All others styles herite from the default style -->
    <style name="MusicLyrics">
      <fontstyle back-color="#992299" color="#FFAAFF" bold="yes" outline-color="#CC55CC"/>
    </style>

    <style name="NarratorSpeaking">
      <fontstyle italic="yes" color="#FFEEEE" outline-color="#FF4444"/>
    </style>
       
    <style name="AlignWindowTest">
      <fontstyle size="-4" />
      <position vertical-margin="0" relative-to="Window" />
    </style>

    <style name="AlignVideoTest">
      <fontstyle size="-4" />
      <position vertical-margin="0" relative-to="Video" />
    </style>
  </styles>

  <subtitles>
    <subtitle start="0" stop="5">        
      <text alignment="MiddleCenter" effect="ZoomOut"><font shadow-level="4">Welcome to <b>The Core Media Player</b></font></text>
      <image alignment="TopRight" vertical-margin="20" horizontal-margin="20" colorkey="#ffffff">core_na.bmp</image>
      <image alignment="TopLeft" vertical-margin="20" horizontal-margin="20" colorkey="#ffffff">core_na_fb.bmp</image>           
    </subtitle>

    <subtitle start="6.100" duration="4.900">
      <text style="NarratorSpeaking">This is a demo of<br/>The Core Media Player<br/>subtitle format</text>
    </subtitle>
               
    <subtitle start="00:00:11.000" stop="00:00:15.000">
      <text style="NarratorSpeaking">What can be done ?</text>
    </subtitle>

    <subtitle start="00:00:15.500" stop="00:00:17.000">
      <text style="AlignWindowTest" alignment="TopLeft">TopLeft</text>
      <text style="AlignWindowTest" alignment="TopCenter">TopCenter</text>
      <text style="AlignWindowTest" alignment="TopRight">TopRight</text>
      <text style="AlignWindowTest" alignment="MiddleLeft">MiddleLeft</text>
      <text style="AlignWindowTest" alignment="MiddleCenter">MiddleCenter</text>
      <text style="AlignWindowTest" alignment="MiddleRight">MiddleRight</text>
      <text style="AlignWindowTest" alignment="BottomLeft">BottomLeft</text>
      <text style="AlignWindowTest" alignment="BottomCenter">BottomCenter</text>
      <text style="AlignWindowTest" alignment="BottomRight">BottomRight</text>                       
    </subtitle>
       
    <subtitle start="00:00:17.500" stop="00:00:20.000">
      <text style="AlignVideoTest" alignment="TopLeft">TopLeft</text>
      <text style="AlignVideoTest" alignment="TopCenter">TopCenter</text>
      <text style="AlignVideoTest" alignment="TopRight">TopRight</text>
      <text style="AlignVideoTest" alignment="MiddleLeft">MiddleLeft</text>
      <text style="AlignVideoTest" alignment="MiddleCenter">MiddleCenter</text>
      <text style="AlignVideoTest" alignment="MiddleRight">MiddleRight</text>
      <text style="AlignVideoTest" alignment="BottomLeft">BottomLeft</text>
      <text style="AlignVideoTest" alignment="BottomCenter">BottomCenter</text>
      <text style="AlignVideoTest" alignment="BottomRight">BottomRight</text>
    </subtitle>       

    <subtitle start="00:00:20.500" stop="00:00:22.000">
      <text>Muti-colors text : <font color="#FF0000" outline-color="#7F0000">Red</font>,
                               <font color="#00FF00" outline-color="#007F00">Green</font>,
                               <font color="#0000FF" outline-color="#00007F">Blue</font>,<br/>
                               <font color="#7FFF0000" outline-color="#7F7F0000">Translucide red</font>
      </text>
    </subtitle>
       
    <subtitle start="00:00:23.000" stop="00:00:25.500">
      <text style="NarratorSpeaking">And it can do a lot more...</text>
    </subtitle>
       
    <subtitle start="00:00:26.000" stop="00:00:30.000">
      <text>Size : <font size="14">14</font>-<font size="16">16</font>-<font size="20">20</font>-<font size="26">26</font>-<font size="40">40</font>...</text>
    </subtitle>
       
    <subtitle start="00:00:31.000" stop="00:00:35.000">
      <text>Line break :<br/>- Line 1<br/>- Line 2<br/>- Line 3</text>
    </subtitle>
   
    <subtitle start="00:00:36.000" stop="00:00:40.000">
      <text>Styles : <i>Italic</i>, <b>Bold</b>, <u>Underline</u></text>
    </subtitle>
   
    <subtitle start="00:00:38.000" stop="00:00:42.000">
      <text alignment="TopCenter">Overlapped text</text>
    </subtitle>       
   
    <subtitle start="00:00:41.000" stop="00:00:45.000">
      <text>Fonts : <font face="Arial">Arial</font>, <font face="Courier">Courier</font>, <font face="Times New Roman">Times New Roman</font></text>
    </subtitle>
   
    <subtitle start="00:00:46.000" stop="00:00:50.000">
      <text style="NarratorSpeaking">Let's sing a song !</text>
    </subtitle>
   
    <subtitle start="00:00:51.000" stop="00:00:54.000">
      <karaoke style="MusicLyrics"><k t="500"/>La ! La ! La ! <k t="2500"/>The Core Media Player</karaoke>
    </subtitle>
   
    <subtitle start="00:00:55.000" stop="00:00:57.000">
      <karaoke style="MusicLyrics"><k t="2000"/>La ! La ! La ! ;-)</karaoke>
    </subtitle>
   
    <subtitle start="00:00:58.000" stop="00:01:01.000">
      <karaoke style="MusicLyrics"><k t="500"/><font color="#00AAFF">Multi-colors</font><k t="500"/> and <k t="500"/><font color="#00FFAA">Multi-lines</font><br/><k t="1500"/>Karaokeeeee!!!</karaoke>
    </subtitle>
                         
    <subtitle start="00:01:02.000" stop="00:01:05.000">
      <text alignment="MiddleCenter"><font size="26">The End</font></text>
    </subtitle>
   
    <subtitle start="00:01:06.000" stop="00:01:10.000">
      <text effect="VerticalScrolling"><b>Credits :</b><br/>The Core Media Player<br/>Blah, Blah, Blah ...</text>
    </subtitle>
         
    <subtitle start="00:01:11.000" stop="00:01:30.000">
      <text alignment="BottomCenter"><font size="12"><b>Copyright © 2002 - The Core Media Player</b></font></text>
    </subtitle>
   
    <subtitle start="00:01:31.000" stop="00:01:35.000">
      <text style="NarratorSpeaking" alignment="TopCenter">Unicode is great :</text>
      <text alignment="BottomCenter">
        <font face="Bitstream Cyberbit" size="-2">
          English : Why can't they just speak <b>English</b>?<br/>
          French : Pourquoi, tout simplement, ne parlent-ils pas <b>français</b>?<br/>
          Spanish : ¿Por qué no pueden simplemente hablar en <b>Español</b>?<br/>
          Dutch : Waarom spreken ze niet gewoon <b>Nederlands</b>?<br/>
          Japanese : なぜ、みんな<b>日本語</b>を話してくれないのか?< /font></text>
    </subtitle>
       
    <subtitle start="00:01:36.000" stop="00:01:40.000">
      <text alignment="TopCenter">
        <font face="Bitstream Cyberbit" size="-2">
          Russian : Почему же они не говорят <b>по-русски</b>?<br/>
          Chinese : 他們爲什麽不說中文(<b>台灣</b>)?<br/>
          Arabic : لماذا لا يتكلمون اللّغة <b>العربية</b> فحسب؟</font></text>
      <text style="NarratorSpeaking">
        from <i>The "anyone can be provincial!" page</i> :<br/>
        http://www.trigeminal.com/samples/provincial.html
      </text>
    </subtitle>
       
    <subtitle start="00:01:41.000" stop="00:01:48.000">
      <text>Arabic<br/>
      Without tag:<br/>
      لماذا لا يتكلمون اللّغة العربية فحسب؟<br/>
      With tag:<br/>
      لماذا لا يتكلمون اللّغة <font color="#FFEEEE" outline-color="#FF4444">العربية</font> فحسب؟</text>
    </subtitle>
       
  </subtitles>

</USFSubtitles>

Les moins courageux peuvent directement télécharger ce fichier ou la vidéo correspondante.

Résultat :


Attention, pour lire correctement le fichier sous-titre au format USF, il est nécessaire de télécharger une police de caractères supportant l'unicode (ex : Arial Unicode MS) et de choisir cette police dans l'onglet "Default Style" de la fenêtre des propriétés du filtre PixiShow (voir le tutoriel "Lire un fichier au format USF (Installation et configuration de PixiShow)").


Nombre total de visiteurs :