SAMI

Last updated
Synchronized Accessible Media Interchange
Filename extension
.smi, .sami
Developed by Microsoft
Initial release25 June 1998;25 years ago (1998-06-25)
Type of format Timed text
Extended from HTML
Open format?Yes
Free format?Proprietary

Synchronized Accessible Media Interchange (SAMI) is a Microsoft accessibility initiative released in the summer of 1998. [1] The structured markup language is designed to simplify creating subtitles for media playback on a PC.

Contents

Overview

A SAMI file provides closed caption support for multimedia formats. Generally, a multimedia file (such as a video or a sound file) is played by a media player such as Windows Media Player. Media players that support closed captioning and SAMI format may display the contents of the included SAMI file.

A SAMI file is a plain text file and therefore can be created or modified in any text editor. Its structure is very similar to HTML. The files may have either .smi or .sami filename extensions, although using .smi may cause a filename extension collision, since Synchronized Multimedia Integration Language (SMIL) files and Macintosh self mounting images also use this filename extension.

Supported HTML tags and CSS

SAMI format is similar to HTML and CSS; in fact, SAMI implements a subset of both. SAMI does not require strict tag matching.

Valid HTML tags in SAMI [2]
NameDescription
BBold text style
BASEFONTBase font size
BDOI18N BiDi override
BIGLarge text style
BLOCKQUOTELong quotation
BRForced line break
CAPTIONTable caption
CENTERShorthand for DIV align=center
COLTable column
COLGROUPTable column group
DDDefinition description
DIVGeneric language/style container
DLDefinition list
DTDefinition term
FONTLocal change to font
H1Heading
H2Heading
H3Heading
H4Heading
H5Heading
H6Heading
HRHorizontal rule
IItalic text style
IMGEmbedded image
LIList item
OLOrdered list
PParagraph
PREPreformatted text
QShort inline quotation
SStrike-through text style
SMALLSmall text style
SPANGeneric language/style container
STRIKEStrike-through text
SUBSubscript
SUPSuperscript
TABLEN/A
TBODYTable body
TDTable data cell
TFOOTTable footer
THTable header cell
THEADTable header
TRTable row
TTTeletype or monospaced text style
UUnderlined text style
ULUnordered list

Example

Here's an example SAMI file. It sets the time to milliseconds. It uses CSS for formatting both the source and text lines and it supports language selection. (English and faux-French shown). Each SYNC block sets the start time for the caption. A new caption is displayed every second (1000ms). The Class= identifies the language. The ID=Source (matching the #Source in the CSS identifier definition) indicates the source/speaker line; the default is the closed caption. The identifier name need not be "Source"; it may be any name.

The Microsoft parser is fragile. Formatting information can be added to the closed caption information, but adding format information to the source line can have unpredictable results. Defining more than one ID can have unpredictable results.

<SAMI><HEAD><TITLE>SAMIExample</TITLE><SAMIParam>Media{cheap44.wav} Metrics{time:ms;} Spec{MSFT:1.0;} </SAMIParam><STYLETYPE="text/css"><!--  P { font-family: Arial; font-weight: normal; color: white; background-color: black; text-align: center; }  #Source {color: red; background-color: blue; font-family: Courier; font-size: 12pt; font-weight: normal; text-align: left; }  .ENUSCC { name: English; lang: en-US ; SAMIType: CC ; }  .FRFRCC { name: French;  lang: fr-FR ; SAMIType: CC ; }--></STYLE></HEAD><BODY><!-- Open play menu, choose Captions and Subtiles, On if available --><!-- Open tools menu, Security, Show local captions when present --><SYNCStart=0><PClass=ENUSCCID=Source>TheSpeaker</P><PClass=ENUSCC>SAMI0000text</P><PClass=FRFRCCID=Source>Lenarrateur</P><PClass=FRFRCC>TexteSAMI0000</P></SYNC><SYNCStart=1000><PClass=ENUSCC>SAMI1000text</P><PClass=FRFRCC>TexteSAMI1000</P></SYNC><SYNCStart=2000><PClass=ENUSCC>SAMI2000text</P><PClass=FRFRCC>TexteSAMI2000</P></SYNC><SYNCStart=3000><PClass=ENUSCC>SAMI3000text</P><PClass=FRFRCC>TexteSAMI3000</P></SYNC></BODY></SAMI>

Association with media

The player needs to know how to associate a particular media file to a SAMI file. Sometimes that is achieved by using the same filename as the underlying media file. For example, when Windows Media Player (WMP) opens the sound file cheap44.wav, it checks to see if the file cheap44.smi exists in the same folder. If it does, WMP uses that file to display closed captions.

Alternatively, the association can be made explicit using an entry in an Advanced Stream Redirector (ASX) file. The user opens the ASX file instead.

<asxversion="3.0"previewmode="No"><abstract>ASXHEADThisistheshowsabstract</abstract><title>ASXHEADTheshowtitlegoeshere</title><author>AuthorName</author><copyright>(c)2002-companyname</copyright><entry><refhref="cheap44.wav?sami=cheap44.smi"/><abstract>ASXThisistheclipsabstract</abstract><title>ASXThetitlefortheclipgoeshere</title><author>ASXYourName</author><copyright>ASX(c)2000-companyname</copyright></entry></asx>

Software support

The following is a list of software that can play SAMI along with multimedia content:

See also

Related Research Articles

Scalable Vector Graphics (SVG) is an XML-based vector image format for defining two-dimensional graphics, having support for interactivity and animation. The SVG specification is an open standard developed by the World Wide Web Consortium since 1999.

<span class="mw-page-title-main">Synchronized Multimedia Integration Language</span> XML-based markup language for multimedia presentations

Synchronized Multimedia Integration Language ) is a World Wide Web Consortium recommended Extensible Markup Language (XML) markup language to describe multimedia presentations. It defines markup for timing, layout, animations, visual transitions, and media embedding, among other things. SMIL allows presenting media items such as text, images, video, audio, links to other SMIL presentations, and files from multiple web servers. SMIL markup is written in XML, and has similarities to HTML.

Waveform Audio File Format is an audio file format standard, developed by IBM and Microsoft, for storing an audio bitstream on personal computers. It is the main format used on Microsoft Windows systems for uncompressed audio. The usual bitstream encoding is the linear pulse-code modulation (LPCM) format.

<span class="mw-page-title-main">Closed captioning</span> Process of displaying interpretive texts to screens

Closed captioning (CC) and subtitling are both processes of displaying text on a television, video screen, or other visual display to provide additional or interpretive information. Both are typically used as a transcription of the audio portion of a program as it occurs, sometimes including descriptions of non-speech elements. Other uses have included providing a textual alternative language translation of a presentation's primary audio language that is usually burned-in to the video and unselectable.

<span class="mw-page-title-main">Windows Media Player</span> Media player and media library application by Microsoft

Windows Media Player (WMP) is the first media player and media library application that Microsoft developed to play audio and video on personal computers. It has been a component of the Microsoft Windows operating system, including Windows 9x, Windows NT, Pocket PC, and Windows Mobile. Microsoft also released editions of Windows Media Player for classic Mac OS, Mac OS X, and Solaris, but has since discontinued them. Since 2022, it has been branded with the Legacy suffix to distinguish it from the new UWP-based Media Player introduced in Windows 11.

In economics, vendor lock-in, also known as proprietary lock-in or customer lock-in, makes a customer dependent on a vendor for products, unable to use another vendor without substantial switching costs.

A filename extension, file name extension or file extension is a suffix to the name of a computer file. The extension indicates a characteristic of the file contents or its intended use. A filename extension is typically delimited from the rest of the filename with a full stop (period), but in some systems it is separated with spaces. Other extension formats include dashes and/or underscores on early versions of Linux and some versions of IBM AIX.

<span class="mw-page-title-main">WinDVD</span>

WinDVD is a commercial video player and music player software for Microsoft Windows. It enables the viewing of DVD-Video movies on the user's PC. DVD-Video backups stored on hard disk can also be played. The player also can be used to play video and audio files in other formats encoded with different codecs, such as DivX, Xvid, Windows Media Video (video), MP3 and AAC (audio). WinDVD Pro 12 is the latest version with the most features and accommodations. However, competitors such as VLC have completely replaced WinDVD due to the lack of modern features WinDVD provides.

The Advanced Stream Redirector (ASX) format is a type of XML metafile designed to store a playlist of Windows Media files for a multimedia presentation.

<span class="mw-page-title-main">Playlist</span> Curated list of video or audio files

A playlist is a list of video or audio files that can be played back on a media player, either sequentially or in a shuffled order. In its most general form, an audio playlist is simply a list of songs that can be played once or in a loop. The term has several specialized meanings in the realms of television broadcasting, radio broadcasting and personal computers.

Windows Media is a discontinued multimedia framework for media creation and distribution for Microsoft Windows. It consists of a software development kit (SDK) with several application programming interfaces (API) and a number of prebuilt technologies, and is the replacement of NetShow technologies.

<span class="mw-page-title-main">VLC media player</span> Free and open-source media-player and streaming-media-server

VLC media player is a free and open-source, portable, cross-platform media player software and streaming media server developed by the VideoLAN project. VLC is available for desktop operating systems and mobile platforms, such as Android, iOS and iPadOS. VLC is also available on digital distribution platforms such as Apple's App Store, Google Play, and Microsoft Store.

High Definition Compatible Digital (HDCD) is a proprietary audio encode-decode process that claims to provide increased dynamic range over that of standard Compact Disc Digital Audio, while retaining backward compatibility with existing compact disc players.

3GP is a multimedia container format defined by the Third Generation Partnership Project (3GPP) for 3G UMTS multimedia services. It is used on 3G mobile phones but can also be played on some 2G and 4G phones.

<span class="mw-page-title-main">Flip4Mac</span> Digital media software

Flip4Mac from Telestream, Inc. was a digital media software for the macOS operating system. It was known for being the only QuickTime component for macOS to support Windows Media Video, and was distributed by Microsoft as a substitute after they discontinued their media player for Macintosh computers.

<span class="mw-page-title-main">Tag editor</span> Software for editing the metadata of media files

A tag editor is an app that can add, edit, or remove embedded metadata on multimedia file formats. Content creators, such as musicians, photographers, podcasters, and video producers, may need to properly label and manage their creations, adding such details as title, creator, date of creation, and copyright notice.

<span class="mw-page-title-main">KMPlayer</span> Freeware media player for Microsoft Windows

K-Multimedia Player is an Adware-supported media player for Windows and iOS that can play most current audio and video formats, including VCD, HDML, DVD, AVI, MKV, Ogg, OGM, 3GP, MPEG-1/2/4, AAC, WMA 7, 8, WMV, RealMedia, FLV and QuickTime. KMPlayer shows many advertisements, including in the homepage, side panels, options panel, and as pop-up ads.

<span class="mw-page-title-main">GOM Player</span> Media player

GOM Player is a media player for Windows, developed by GOM & Company. With more than 100 million downloads, it is also known as the most used player in South Korea. Its main features include the ability to play some broken media files and find missing codecs using a codec finder service.

WPL is a computer file format that stores multimedia playlists. It is a proprietary file format used in Microsoft Windows Media Player versions 9–12. The elements of WPL files are represented in XML format. The top-level element, smil, specifies that the file's elements follow the SMIL structure.

References

  1. "Adding Closed Captioning to Your Multimedia Programs". Microsoft Developer News & Articles. Microsoft. September 1998. Archived from the original on 12 October 1999.
  2. "Understanding SAMI 1.0". Microsoft Developer Network . Microsoft Corporation. February 2003. Retrieved 14 June 2011.

Further reading

  1. Gunderson, Jon (14 March 2003). "SAMI and Quicktime Captioning". The Illinois Center for Information Technology Accessibility. University of Illinois at Urbana–Champaign . Retrieved 14 June 2011.
  2. "Creating a SAMI File". Captioning for Windows Media. WebAIM. Retrieved 14 June 2011.
  3. "Software for Creating Captions". WebAIM. Retrieved 14 June 2011.