This article needs additional citations for verification .(July 2022) |
Filename extension | .smi, .sami |
---|---|
Developed by | Microsoft |
Initial release | 25 June 1998 |
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.
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.
SAMI format is similar to HTML and CSS; in fact, SAMI implements a subset of both. SAMI does not require strict tag matching.
Name | Description |
---|---|
B | Bold text style |
BASEFONT | Base font size |
BDO | I18N BiDi override |
BIG | Large text style |
BLOCKQUOTE | Long quotation |
BR | Forced line break |
CAPTION | Table caption |
CENTER | Shorthand for DIV align=center |
COL | Table column |
COLGROUP | Table column group |
DD | Definition description |
DIV | Generic language/style container |
DL | Definition list |
DT | Definition term |
FONT | Local change to font |
H1 | Heading |
H2 | Heading |
H3 | Heading |
H4 | Heading |
H5 | Heading |
H6 | Heading |
HR | Horizontal rule |
I | Italic text style |
IMG | Embedded image |
LI | List item |
OL | Ordered list |
P | Paragraph |
PRE | Preformatted text |
Q | Short inline quotation |
S | Strike-through text style |
SMALL | Small text style |
SPAN | Generic language/style container |
STRIKE | Strike-through text |
SUB | Subscript |
SUP | Superscript |
TABLE | N/A |
TBODY | Table body |
TD | Table data cell |
TFOOT | Table footer |
TH | Table header cell |
THEAD | Table header |
TR | Table row |
TT | Teletype or monospaced text style |
U | Underlined text style |
UL | Unordered list |
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>
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>
The following is a list of software that can play SAMI along with multimedia content:
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.