<?xml version="1.0"?>
<Madeus Name="DocMadeus" Version="2.0" xmlns='http://www.inrialpes.fr/opera/dtd/madeus'
  xmlns:xlink='http://www.w3c.dom/1999/xlink'>
  <Content>
    <C-Group>
    <!--Description de AutoCitroen.mov video -->
      <VideoContent ID="WesternDS"
         FileName = "VideoStructured/western/westernV2.mov"
         Annotation = "..."> <!-- Videos/Videos/6j7n.mpeg"-->
         
         <MetaInfo ID="MetaAutoCitroen" />
         <MediaInfo ID="MediaAutoCitroen"
            System = "PAL"
            FileFormat = "MPEG"
            CompressionFormat = "CVID"
            FileSize = "15.108.000"
            FrameWidth = "352"
            FrameHeight = "288"
            Color = "color"
            Sound = "sterio"
            FrameRate = "25"
            Length = "00:01:33.45"
         />
            
         <VideoSegment ID="StrucWestern"
         Start_Time ="0" Stop_Time ="93.45"
         SegmentType="VideoComplete"
         KeyFrame = "0"
         Comment = "No Comment">
  
          <VideoSegment ID="Seq" Start_Time ="0" Stop_Time ="93.45"
          SegmentType="Sequence"
          KeyFrame = "0"
          Comment = "No Comment">
                  
             <VideoSegment ID="WesternDSStrucWesternSeqScene1" Start_Time ="4.81" Stop_Time ="29.87"
             SegmentType="Scene"
             KeyFrame = "0"
             Comment = "No Comment">
             
               <VideoSegment ID="Shot1" Start_Time ="4.81" Stop_Time ="19.84"
               SegmentType="Shot"
               KeyFrame = "0"
               Comment = "No Comment">
               
                <MovingRegion ID="Shot1Obj" Start_Time ="4.86" Stop_Time ="19.84"
              ListKeyPoint = "152,86 211,86 211,234 152,234;
                              151,83 205,83 205,232 151,231;
                              153,83 210,83 211,234 153,231;
                              154,90 201,90 200,233 152,233;
                              153,92 197,91 196,240 152,241;
                              135,86 199,86 198,240 134,241;
                              136,92 208,87 207,247 135,247;
                              134,82 202,82 201,247 134,247;
                              122,86 195,84 195,248 123,247;
                              106,77 182,76 183,248 106,248;
                              65,140 159,139 159,249 62,248;
                              74,92 167,91 168,247 74,248;
                              62,110 157,110 154,248 62,248;
                              58,105 153,105 151,249 57,248;
                              79,80 152,82 155,248 79,248;
                              74,81 147,80 148,250 74,249;
                              56,172 146,172 146,249 56,248;
                              57,183 144,183 144,248 57,248;
                              59,180 146,180 146,248 59,248;
                              62,171 144,170 144,249 61,249;
                              62,175 159,173 159,248 63,248"
  
                  ListKeyTime = "4.86;13.451;13.759;14.039;14.319;14.757;14.997;15.237;15.517;15.799;
                                 16.479;16.0478;16.527;16.807;17.287;17.567;18.327;19.055;19.255;19.575;19.84"
                  InterpolationFunction = "Linear"
                />
               </VideoSegment>
  
             <VideoSegment ID="Shot2" Start_Time ="19.85" Stop_Time ="22.21"
               SegmentType="Shot"
               KeyFrame = "0"
               Comment = "No Comment">
         
               <MovingRegion ID="Titre" Start_Time ="19.83" Stop_Time ="22.18"
             ListKeyPoint = "22,112 320,112 310,163 30,164;25,113 319,112 309,161 33,162"
                 ListKeyTime = "19.83;22.18"
                 InterpolationFunction = "Linear"
               />
               </VideoSegment>
  
            <VideoSegment ID="Shot3" Start_Time ="22.21" Stop_Time ="29.88" BackgroundDominantColor="RGB 84 84 44"
              SegmentType="Scene"
              KeyFrame = "0"
              Comment = "No Comment">
            
               <MovingRegion ID="Occ1" Start_Time ="22.21" Stop_Time ="29.88"
             ListKeyPoint = "160,126 163,183 214,182 211,128;163,143 165,191 206,189 205,144;159,141 161,179 191,177 189,141;157,148 158,184 187,181 186,152;162,148 161,176 189,175 187,150"
                 ListKeyTime = "22.211784122;24.211784122;27.211596622;29.211471622;29.88"
                 InterpolationFunction = "Linear"/>
            
               </VideoSegment>
            </VideoSegment>
          </VideoSegment>
        </VideoSegment>
  
        <Summary ID="SummaryWestern" />
        <Semantics ID="SemanticWestern" />
        <Thesaurus ID="ThesaurusWestern" />
  
      </VideoContent>
      <!-- Control text -->
      <Text ID="C_ControlOperaInfo"> [Project OPERA INFO demo] </Text>
      <Text ID="C_ControlAutoCitroen"> [Introduce INRIA demo]</Text>
      <Text ID="C_ControlSpatioTemp"> [Western Des. TRACKING demo]</Text>
  
    <!-- Les Textes synchronises avec video structurees "InriaInfocoSeq1" -->
  
      <Text ID="C_TxtOperaIntro">Western Des. Tracking Demo</Text>
      <Text ID="C_TxtMotion">Txt follow VO</Text>
          
      <Animate ID="C_TextValueAni" attributeName="TextValue"
        values="Tu vois;la ville;la bas;il y a;forcement;une femme;pour toi;surement"
          keyTimes="0;0.1;0.2;0.4;0.6;0.75;0.9;1" calcMode ="discrete" additive="sum"/>

    </C-Group>
  </Content>

  <Actors>
    <A-Group ID="AGroup">
      <!-- Control text -->
      <DefActor ID="ControlOperaInfo" Content="id('C_ControlOperaInfo')"
          FontFamily="times"  FontSize="16"  FontStyle="0" Player="singleline"
          HRef = "file:///D:/Users/ttran/Multimedia/Samples/Madeus/StructuredVideo/OperaInfoV3.madeus"
          LinePaint="color(blue)">
          
          <Link href="file:///C:/Users/ttran/Multimedia/Samples/Madeus/StructuredVideo/OperaInfoV3.madeus" />
      </DefActor>
          
      <DefActor ID="ControlAutoCitroen" Content="id('C_ControlAutoCitroen')"
          FontFamily="times"  FontSize="16"  FontStyle="0" Player="singleline"
          HRef = "file:///D:/Users/ttran/Multimedia/Samples/Madeus/StructuredVideo/IntroduceInriaV2.madeus"
          LinePaint="color(blue)">
          <Link href="file:///C:/Users/ttran/Multimedia/Samples/Madeus/StructuredVideo/IntroduceInriaV2.madeus" />
      </DefActor>
          
      <DefActor ID="ControlSpatioTemp" Content="id('C_ControlSpatioTemp')"
          FontFamily="times"  FontSize="16"  FontStyle="0" Player="singleline"
          HRef = "file:///D:/Users/ttran/Multimedia/Samples/Madeus/StructuredVideo/WesternDemo.madeus"
          LinePaint="color(blue)">
          <Link href="file:///C:/Users/ttran/Multimedia/Samples/Madeus/StructuredVideo/WesternDemo.madeus" />
      </DefActor>
          
  
      <!-- Citroen Auto --> <!-- Actions ="Follow_Up;HyperLink"-->
      <DefActor ID="AutoCitroen"
         Content="id('WesternDSStrucWesternSeqScene1')"
         TypeRenderer = "LightWeight"
         SynchronizationActivated = "true">

        <DefSubActor ID="FollowObjCitroen1" Content = "Shot1Obj"
          HRef = "file:///D:/Users/ttran/Multimedia/Samples/Madeus/StructuredVideo/ATestHtml.madeus"/>
      </DefActor>
  
    <!-- Les Textes synchronises avec video structurees "InriaInfocoSeq1" -->
  
      <DefActor ID="TxtOperaIntro" Content="id('C_TxtOperaIntro')"
          FontFamily="times"  FontSize="30"  FontStyle="0" Player="singleline"
          LinePaint="color(rgb(255,128,64))" />
      <DefActor ID="TxtMotion" Content="id('C_TxtMotion')"
          FontFamily="times"  FontSize="14"  FontStyle="0" Player="singleline"
          LinePaint="color(rgb(255,0,0))" />
          
    </A-Group>
  </Actors>

  <Temporal>
    <T-Group Duration="pref:50s">
  <!-- -->
      <Interval ID="TxtsInterval"
            Actor="ControlOperaInfo;ControlAutoCitroen;ControlSpatioTemp;TxtOperaIntro"
            Duration="pref:50s min:50s max:50s"/>

      <Interval ID="txtMotionI" Actor="TxtMotion"
          Duration="pref:14980ms" >

        <SubInterval ID="AniTxtValueInt" Animate="C_TextValueAni"
          Duration="pref:14980ms" Begin="pref:0s"/>

      </Interval>

  <!-- Citroen Auto interval -->
      <Interval ID="AutoCitroenInterval" Fill="freeze"
            Duration="pref:50s min:50s max:50s"
            Actor="AutoCitroen">

        <SubInterval ID="FollowObjCitroen1Int" SubActor="FollowObjCitroen1"/>

      </Interval>
                  
      <Equals Interval1="FollowObjCitroen1Int" Interval2="txtMotionI" />
      
    </T-Group>
  </Temporal>

  <Spatial>
    <S-Group ID="TOTOSpatial" Width="800" Height="800">
  <!-- Citroen Auto -->
      <Region ID="AutoCitroenRegion" Actor="AutoCitroen"
            Left="206.0" Top="140.0" Height="288" Width="352" Depth="1.0">
        
        <SubRegion ID="ObjCitroen1Region" Actor="FollowObjCitroen1"/>
      
      </Region>
      
  <!-- Control text-->
      <Region ID="ControlOperaInfoRegion" Actor="ControlOperaInfo"
            Left="236.0" Top="492.0" Width="210.0"  Depth="2.0"/>
      <Region ID="ControlAutoCitroenRegion" Actor="ControlAutoCitroen"
            Left="36.0" Top="492.0" Width="210.0"  Depth="2.0"/>
      <Region ID="ControlSTRST" Actor="ControlSpatioTemp"
            Left="472.0" Top="492.0" Width="236.0"  Depth="2.0"/>

      <Region ID="Txt2" Actor="TxtOperaIntro"
            Left="168" Top="46.0" Height="42.0" Width="429"  Depth="2.0"/>
            
      <Region ID="TxtMotionR" Actor="TxtMotion"
            Height="16.0" Width="69"  Depth="2.0"/>

      <Top_align Region1="ObjCitroen1Region" Region2="TxtMotionR" />
      <Left_align Region1="ObjCitroen1Region" Region2="TxtMotionR" />
      
    </S-Group>
  </Spatial>
</Madeus>
