Introduction
SAMI, Synchronized Accessible Media Interchange, is Microsoft's format for closed captions. Captions live in a simple text file apart from the media, named .smi or .sami. Microsoft publishes it as an open specification with no licensing fees.
Windows Media Player and Microsoft Encarta support it. The .smi extension is also used for SMIL presentations.
Structure
A SAMI file is made of HTML-like tags. It begins with <SAMI> and ends with </SAMI>.
<Head>is required. It holds theSAMIParamsettings and aStyleblock based on CSS2. ATitleis optional.- Each caption point is a
<SYNC Start=…>tag giving a time in milliseconds. - The text follows in a
<P>tag whose class names a language style, such as<P Class=ENUSCC>. - A paragraph holding only a non-breaking space clears the caption.
Not described
This page is a short summary. The layout is not yet fully described here, and there is no viewer for SAMI files.
Known, not yet covered
- Reference: the style rules, the
SAMIParamsettings and theID=Sourcespeaker lines in Microsoft's document. - Viewer: reading and showing SAMI captions.
Also used for
- SMIL presentation – W3C XML language for timed multimedia presentations.
Links
Software
- Subtitle Edit – subtitle editor that reads and writes SAMI
- FFmpeg – media toolkit with a SAMI subtitle reader
- Windows Media Player – shows SAMI captions with media (Windows)
Reference
- Understanding SAMI 1.0 – Microsoft's description of the format
- samidec.c – FFmpeg's SAMI reader