IBM MPEG-4 XMT-O Tutorial IBM MPEG-4 Technologies
IBM MPEG-4 Technologies
Overview
Presentation
Images
Text
Definitions
Regions
Animation
Transition
Credits
Transition credits
Video

Replace Pictures with Videos

This exercise will demonstrate the simplicity of changing the presentation from using images to using videos.

Videos are media elements similar to images. Thus change the <image> element into a <video> element.

The duration is changed to get the duration from the video file instead of explicitly giving a duration. Images must have a duration that is specified because they are discrete elements. A video's duration can be matched to it's length by indicating its duration using the dur="media" attribute value..

The src attribute needs to be updated to point to the video file.

<xmt-o ...> 
  <head> ... </head>
  <body> 
    <par>
      ...
      <video ... src="../multimedia/Flamingos.mp4"          dur="media"/>
      <video ... src="../multimedia/Giraffe.mp4"            dur="media"/>
      <video ... src="../multimedia/Gorilla.mp4"            dur="media"/>
      <video ... src="../multimedia/TortoiseFlatTailed.mp4" dur="indefinite"/>
      ...
    </par>
  </body>
</xmt-o>

Modify the picture titles to match the new pictures.

<xmt-o ...> 
  <head> ... </head>
  <body> 
    <par>
      ...
      <string ... textLines="&quot;Flamingos&quot;"> ... </string>
      <string ... textLines="&quot;Giraffe&quot;"> ... </string>
      <string ... textLines="&quot;Gorilla&quot;"> ... </string>
      <string ... textLines="&quot;Flat Tailed Tortoise&quot;"> ... </string>
      ...
    </par>
  </body>
</xmt-o>

The following is the complete XMT-O file used for this exercise:

IBMSlideShow10.xml

Here is a snap shot of the exercise:

 

  IBM Home | Research Home | MPEG-4 Technologies | alphaWorks | © Copyright IBM Corp. 1998, 2005. All Rights Reserved.