词条 | SAMI | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
释义 |
| name = Synchronized Accessible Media Interchange | icon = | logo = | screenshot = | caption = | extension = .smi, .sami | mime = | type code = | uniform type = | magic = | owner = Microsoft | genre = Markup language | container for = | contained by = | extended from = HTML | extended to = | standard = | url = }} Synchronized Accessible Media Interchange (SAMI) is a Microsoft accessibility initiative released in 1998. The structured markup language is designed to simplify creating subtitles for media playback on a PC. OverviewA 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 Supported HTML tags and CSSSAMI format is similar to HTML and CSS; in fact, SAMI implements a subset of both. SAMI does not require strict tag matching.
ExampleHere'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 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. Association with mediaThe 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. Software supportThe following is a list of software that can play SAMI along with multimedia contents:
See also
References1. ^{{cite web|url=http://msdn.microsoft.com/en-us/library/ms971327.aspx|title=Understanding SAMI 1.0|date=February 2003|work=Microsoft Developer Network|publisher=Microsoft Corporation|accessdate=14 June 2011}} Further reading{{Refbegin}}
5 : Microsoft Windows multimedia technology|Subtitle file formats|Playlist file formats|Film and video technology|Playlist markup languages |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。