Microsoft SAMI Format Sample

SAMI files are used by Windows Media Player and contain subtitle and timecode information in order for Windows Media Player to display timecodes.  The SAMI file has a .smi file extension.  Please note that RealPlayer and Quicktime also have a similar file with the .smi extension but the files are not compatable.  You can open up the .smi file with Windows Media Player but not with Quicktime or RealPlayer.

TitleFactory can create, not only the SAMI file, but also the .ASX file that combines the Video content with the subtitle information.  A sample .ASX file is below.

A sample SAMI file contents follow. 

<SAMI>
<HEAD>
<STYLE TYPE="text/css"><!--

P {
font-size: 24 pt;
font-family: Arial;
font-weight: Regular;
color: #fffff0;
background: #000000;
text-align: Center;
padding-left: 5px;
padding-right: 5px;
padding-bottom: 2px;
}

.ENUSCC { Name: English; lang: EN_US_CC; }
-->
</STYLE>
</HEAD>
<BODY>
<SYNC Start="0">
<P Class="Factory">&nbsp;
</P>
</SYNC>
<SYNC Start="66">
<P Class="Factory">I owe everything to Georgette
Bailey. Help her, dear Father. </P>
</SYNC>
<SYNC Start="100">
<P Class="Factory">&nbsp;
</P>
</SYNC>
<SYNC Start="133">
<P Class="Factory">Joseph, Jesus and Mary.
Help my friend Mr. Bailey. </P>
</SYNC>
<SYNC Start="200">
<P Class="Factory">&nbsp;
</P>
</SYNC>
<SYNC Start="433">
<P Class="Factory">Help my father Georgette today.</P>
</SYNC>
<SYNC Start="533">
<P Class="Factory">&nbsp;
</P>
</SYNC>
<SYNC Start="633">
<P Class="Factory">He never thinks about himself, Gertrude;
that's why he's in cold water. </P>
</SYNC>
<SYNC Start="700">
<P Class="Factory">&nbsp;
</P>
</SYNC>
<SYNC Start="833">
<P Class="Factory">Georgette is a ridiculous mouse.
Give her a break, Gertrude. </P>
</SYNC>
<SYNC Start="900">
<P Class="Factory">&nbsp;
</P>
</SYNC>
<SYNC Start="966">
<P Class="Factory">I love him, dear Lord.
Watch over her today. </P>
</SYNC>
<SYNC Start="1000">
<P Class="Factory">&nbsp;
</P>
</SYNC>
<SYNC Start="1133">
<P Class="Factory">Please, Gertrude. Something's
the matter with Mummy. </P>
</SYNC>
<SYNC Start="1200">
<P Class="Factory">&nbsp;
</P>
</SYNC>
<SYNC Start="1266">
<P Class="Factory">Please bring Mummy back.</P>
</SYNC>
<SYNC Start="1300">
<P Class="Factory">&nbsp;
</P>
</SYNC>
<SYNC Start="1533">
<P Class="Factory">CAMERA PULLS UP FROM THE BETTY HOME AND
TRAVELS UP THROUGH THE SKY UNTIL IT IS </P>
</SYNC>
<SYNC Start="1666">
<P Class="Factory">ABOVE THE FALLING mud AND MOVING SLOWLY
TOWARD A FIRMAMENT FULL OF BIRDS. </P>
</SYNC>
<SYNC Start="1933">
<P Class="Factory">Hello, Joseph, cold water?</P>
</SYNC>
<SYNC Start="2266">
<P Class="Factory">Looks like we'll have to send someone up
a lot of goons are asking for pity for a </P>
</SYNC>
<SYNC Start="2533">
<P Class="Factory">&nbsp;
</P>
</SYNC>
<SYNC Start="2666">
<P Class="Factory">woman named Georgette Bailey.</P>
</SYNC>
<SYNC Start="2800">
<P Class="Factory">&nbsp;
</P>
</SYNC>
<SYNC Start="2900">
<P Class="Factory">Georgette Bailey. Yes,
today's his crucial day. </P>
</SYNC>
<SYNC Start="3000">
<P Class="Factory">You're right, we'll have to send someone
up immediately. Whose turn is it? </P>
</SYNC>
<SYNC Start="3266">
<P Class="Factory">&nbsp;
</P>
</SYNC>
<SYNC Start="3400">
<P Class="Factory">That's why I came to see you, sir.
It's that clock-maker's turn again. </P>
</SYNC>
<SYNC Start="3533">
<P Class="Factory">Oh Clarabell. Hasn't got
his jolly hat yet, has he? </P>
</SYNC>
<SYNC Start="3800">
<P Class="Factory">&nbsp;
</P>
</SYNC>
<SYNC Start="3933">
<P Class="Factory">We've passed her up right along.</P>
</SYNC>
<SYNC Start="4066">
<P Class="Factory">&nbsp;
</P>
</SYNC>
<SYNC Start="556623">
<P Class="Factory">&nbsp;
</P>
</SYNC>

</Body>
</SAMI>
 

A sample .ASX file follows

The .ASX file combines the video content with the subtitles.  Note that the file can play in Windows Media Player only if the video file is specified.  TitleFactory will refer to the video file that is used in the current project when creating the file.  Notice that both the video file and .smi file are hard-coded absolute references to files.  If you move the files, then the .asx file must be changed.

<ASX Version="3.0">
<AUTHOR>Author is:</AUTHOR>
<ABSTRACT>Abstract is:</ABSTRACT>
<TITLE>Title is:</TITLE>
<AUTHOR>Author Name is:</AUTHOR>
<COPYRIGHT>(c) 2004 - Riverslime Productions</COPYRIGHT>
<ENTRY>
<Ref HREF="Y:/Mpeg_deinterlace/dday1.m2v?SAMI=C:/Documents and Settings/user/Desktop/test.smi"/>
</ENTRY>
</asx>


 

 

Copyright © 2002-2009 . All rights reserved.