Adding Closed Captions to Digital Media Page 1 of 6

Total Page:16

File Type:pdf, Size:1020Kb

Adding Closed Captions to Digital Media Page 1 of 6 Adding Closed Captions to Digital Media Page 1 of 6 MSDN Home > MSDN Library > Graphics and Multimedia > Audio and Video > Adding Closed Captions to Digital Media Page Options Kim Vu Average rating: Digital Media Division 3 out of 9 Microsoft Corporation Rate this page August 2001 Print this page Summary: This article details what you need to know about adding closed captions E-mail this page to your digital media content and embedding the Microsoft Windows Media Player ActiveX control object model in a Web page. (8 printed pages) Add to Favorites Contents Introduction About SAMI Files Using SAMI with the Windows Media Player Control in a Browser About SAMI URLs For More Information Introduction It is increasingly important to create Web content that is accessible to everyone. By including closed captions with your audio or video content, you allow for a more diverse audience to experience your digital media presentations. From helping people with disabilities to translating for the international business partner, Synchronized Accessible Media Interchange (SAMI) and Microsoft® Windows Media™ Player can provide a closed-caption solution for your digital media content. This article details what you need to know about adding closed captions to your digital media content and embedding the Microsoft Windows Media Player ActiveX® control object model in a Web page. Synchronized Accessible Media Interchange (SAMI) is a file format designed to deliver synchronized text such as captions, subtitles, or audio descriptions with digital media content. Integrated in a Web browser using the Microsoft Windows Media Player 7 object model, SAMI is a powerful tool that promotes accessibility. By using SAMI, you can create rich media content that reaches a larger, more diverse audience. In addition to standard fonts, SAMI can support other text styles, such as different colors, sizes, or languages, to aid a variety of users. SAMI can be especially useful for individuals who have low vision or those who are deaf or hard-of-hearing. The SAMI format can also assist in educational purposes, such as teaching students a second language. This article focuses on the incorporation of SAMI with the Microsoft Windows Media Player 7 ActiveX control object model. SAMI files exist independently from digital media files and do not rely on a specific video or audio format to function. Since the files are separate, the Player control will fetch, parse, synchronize, and render each file on the client computer. This provides for added flexibility and functionality because it allows for the editing of individual SAMI files, the incorporation of the SAMI file with different digital media formats, and the storage of SAMI files on different server locations. About SAMI Files SAMI files are text files that have an .smi or .sami file name extension. They contain the text strings used for synchronized closed captions, subtitles, and audio descriptions. They also specify the timing parameters used by the Windows Media Player control to synchronize closed caption text with audio or video content. When a Windows Media file reaches a time designated in the SAMI file, the text changes accordingly in the closed caption display area of the Web page. Other than a simple text editor (such as Microsoft Notepad, Microsoft Word, or Apple SimpleText), special software is not required to create a SAMI file. Moreover, an extensive programming background is not needed to create SAMI files. In fact, if you are already familiar with Hypertext Markup Language (HTML), you will notice many similarities in flexibility, layout, and syntax. SAMI and HTML share common elements, and tags must always be used in pairs; for http://msdn.microsoft.com/library/en-us/dnwmt/html/wmp7_sami.asp?frame=true 9/20/2004 Adding Closed Captions to Digital Media Page 2 of 6 example, a <BODY> tag must always close with a </BODY> tag. A basic SAMI file requires three fundamental tags: <SAMI>, <HEAD>, and <BODY>. The <SAMI> tag identifies the document as a SAMI document, so other applications recognize its file format. Between the <HEAD> and </HEAD> tags, you define basic guidelines and other format information for the SAMI document, such as the document title, general information, and style properties for closed captions. Like HTML, content declared within the HEAD element does not display as output. Elements and attributes defined between the <BODY> tags display content seen by the user. In SAMI, the BODY element possesses the parameters for synchronization and the text strings used for closed captions. Defined within the HEAD element, the STYLE element provides for added functionality in SAMI. Between the <STYLE> tags, you can define several cascading style sheets classes for style and layout. Style properties such as fonts, sizes, and alignments can be customized to provide a rich user experience, while also promoting accessibility. For example, defining a large text font style class can improve the readability for users who have difficulty reading small text. In addition, by defining several different language classes, you can help international users better understand the digital media content. SAMI File Sample The following sample is a complete SAMI file with one set of closed caption text and several class declarations for text style and caption language. <SAMI> <HEAD> <STYLE TYPE = "text/css"><!-- <!--P defines the style class for closed caption text--> P {font-family:sans-serif; color:white;} <!--Source, Small, and Big defines additional style classes for closed caption text--> #Source {color:orange; font-family:arial; font-size:12pt;} #Small {Name:SmallTxt; font-size:8pt; color:yellow;} #Big {Name:BigTxt; font-size:12pt; color:magenta;} <!—ENUSCC and FRFRCC defines language classes for closed caption text--> .ENUSCC {Name:English Captions; lang: en-US; SAMIType:CC;} .FRFRCC {Name:French Captions; lang: fr-FR; SAMIType:CC;}--> </STYLE> </HEAD> <BODY> <!—First set of closed caption text starts to play at 1000 ms--> <SYNC Start = 1000> <--First set of English closed captions--> <P Class = ENUSCC ID = Source>Narrator <P Class = ENUSCC>Great reason to visit Seattle, brought to you by two out-of-staters. <--First set of French closed captions--> <P Class = FRFRCC ID = Source>Narrateur <P Class = FRFRCC>Deux personnes ne venant la r&eacute;gion vous donnent de bonnes raisons de visiter Seattle. </BODY> </SAMI> For detailed information about creating SAMI files, see the Microsoft Accessibility page on the Microsoft Web site. Using SAMI with the Windows Media Player Control in a Browser By embedding the Microsoft Windows Media Player ActiveX control in a Web page, you can customize the user experience. Incorporating closed captions by this method provides the user with convenience, flexibility, and ease of management. Instead of creating a SAMI file for each font style or language, you can declare different style classes in one file by using basic scripting and the Player control objects. With these methods and properties, you can create custom controls that enable the user to choose between the different style options. Furthermore, you have complete control over the design of the Player interface and the customization of each function. For detailed information about embedding the Windows Media Player control in a Web page, download the Windows http://msdn.microsoft.com/library/en-us/dnwmt/html/wmp7_sami.asp?frame=true 9/20/2004 Adding Closed Captions to Digital Media Page 3 of 6 Media Player Software Development Kit (SDK) from the Windows Media Technologies page on the Microsoft Web site. After embedding the Windows Media Player control in a Web page, the page needs to be configured to support closed captions. With Windows Media Player 7 or later, a special set of objects exists for SAMI captioning specification and file retrieval. The Player control objects for SAMI include the root Player object and the child closedCaption object. About the Closed Caption Object The Player.closedCaption object exposes four specific properties: SAMIFileName, SAMILang, SAMIStyle, and CaptioningID. The SAMIFileName Property The closedCaption.SAMIFileName property specifies or retrieves a string value that represents the full path name of the SAMI file that contains the closed captioning information. The following is an example of how to define the SAMIFileName property with a URL. Player.closedCaption.SAMIFileName = "http://MYserver/media/samiFile.smi"; The SAMILang Property The closedCaption.SAMILang property specifies or retrieves a string value indicating the language displayed for closed captioning. If a language is not specified, the first language defined in the SAMI file becomes the default closed captioning language. The following example is of how to define the SAMILang property with a language selection. Player.closedCaption.SAMILang = "languageName"; If you want to provide users with a selection of several different languages, the SAMILang value must be specified dynamically. For example, if the user selects a language that is different from the default language, you must write script in the HTML file of the Web page that changes the value of the SAMILang property to match the language the user selects. The following example specifies a new value for the SAMILang property, which causes the Player to display the captions in the language requested by the user. <SELECT id = "CaptionsStyle" language = "JScript" name = CCStyle onchange="Player1.closedCaption.SAMILang = CCLang.value"> <OPTION selected value = SmallTxt>Small Text <OPTION value = NormalTxt>Normal Text </SELECT> The SAMIStyle Property The closedCaption.SAMIStyle property specifies or retrieves a string value representing the closed captioning style for text and layout. If no style is specified, the first style defined in the SAMI file becomes the default. The following is an example of how to define the SAMIStyle property with a style class name. Player1.closedCaption.SAMIStyle = "styleClassName"; If you plan to provide several predefined text styles for the user to select, you must dynamically specify the SAMIStyle value. With some basic scripting, you can create a method that will assign the value of the user's selection to the SAMIStyle property.
Recommended publications
  • Accessible Technology On-Line Seminar Series
    Welcome to the Accessible Technology Webinar Series The content and materials of this training are property of the DBTAC - Great Lakes ADA Center and cannot be used and/or distributed without permission. This training is develop under NIDRR grant #H133A060097. For permission to use training content or obtain copies of materials used as part of this program please contact us by email at [email protected] or toll free (800)949-4232 (V/TTY) in IL, IN, MI, MN, OH and WI or 312-413- 1407 (V/TTY) other locations. 1 Accessible Technology On-line Seminar Series, a project of the National Network of ADA Centers, Coordinated by the DBTAC: Great Lakes ADA Center © 2009 All Rights Reserved Captioning Video for the Internet Marsha Schwanke Burton Blatt Institute (BBI) Syracuse University March 9, 2009 In This Session A. What and Why captions? B. Compliance Overview C. Guidelines for Transcripts & Captions D. Captioning Tools E. Steps & Tips for Captioning F. Captioning other Formats G. Resources 3 Accessible Technology On-line Seminar Series, a project of the National Network of ADA Centers, Coordinated by the DBTAC: Great Lakes ADA Center © 2009 All Rights Reserved Let’s Get Started … 4 Accessible Technology On-line Seminar Series, a project of the National Network of ADA Centers, Coordinated by the DBTAC: Great Lakes ADA Center © 2009 All Rights Reserved At a Loss for Words “My 13-year-old son and I have one or two TV shows we eagerly anticipate and watch with the ritual energy of sports fanatics – like Heroes. But this season … we kept missing the shows … [and go] to the website.” “But a key part of this experience went missing for me .
    [Show full text]
  • Get Started with Video Captioning a Beginner’S Guide to Making Video Accessible
    Get Started with Video Captioning A Beginner’s Guide to Making Video Accessible BY PATRICK BESONG Preface This book is dedicated to all those who are new to video captioning and need to get up to speed quickly on the how and why of video captioning. I got into video captioning when I was faced with the task of making a video accessible and found that the tools available to me were either too expensive, too hard to use, or simply did not work. The process for creating QuickTime Text caption tracks seemed awfully tedious to me and I wondered why there wasn’t an easier way to do it. My response was to write MovieCaptioner, an easy-to-use, inexpensive answer to this problem. The response has been great, and I have received many requests to add different caption formats for which I had to learn a great deal to provide. It is used by many well- known companies, universities, government agencies, and independent video producers. This book should help you get started with video captioning and hopefully make you somewhat of an expert at least in some aspects of the subject in short order. Special thanks to Chris Duke of Motorz TV for allowing me to include his process of creating closed captioned video for broadcast. - Patrick Besong CHAPTER 1 Captioning video not only makes video accessible to the deaf and hard-of-hearing, but there are other compelling rea- Why Caption sons for it as well. These are also good talking points to con- vince others of the need to caption video.
    [Show full text]
  • Windows Media Player 9 Series SDK
    Next Windows Media Player 9 Series SDK This documentation describes the Microsoft® Windows Media® Player 9 Series Software Development Kit (SDK). The Windows Media Player SDK is one of the main components of the Microsoft Windows Media SDK. Other components include the Microsoft Windows Media Format SDK, the Microsoft Windows Media Services SDK, the Microsoft Windows Media Encoder SDK, and the Microsoft Windows Media Rights Manager SDK. The Windows Media Player SDK documents programming technologies that can be used to extend the capabilities of Windows Media Player. These technologies are documented in the following sections: Section Description About the Windows Media Player This section provides details about how to find specific information in SDK the SDK. It includes a section about new features and information about how to use the samples included with the SDK. Windows Media Player Object The Microsoft Windows Media Player control is a Microsoft ActiveX® Model control used for adding multimedia playback capabilities to Web pages. It provides a programming interface for rendering a variety of network streaming and non-streaming multimedia formats. Windows Media Player Skins Skins are an XML-based technology used to customize the user interface of the stand-alone Windows Media Player. Windows Media Player Plug-ins Plug-ins are objects that extend Windows Media Player functionality in a variety of ways. Plug-in types include custom visualizations, user interface plug-ins, DSP plug-ins, and rendering plug-ins. Windows Media Metafiles Metafiles are XML documents that provide information about a media stream and its presentation. Metafiles can be used to organize media files into playlists that can include functionality for seamless stream switching, ad insertion, and other features.
    [Show full text]
  • Mplayer - the Movie Player for Linux
    SelfLinux-0.12.3 MPlayer - The Movie Player for Linux Autor: Moritz Bunkus ([email protected]) Formatierung: Matthias Hagedorn ([email protected]) Lizenz: GPL MPlayer - The Movie Player for Linux Seite 2 Inhaltsverzeichnis 1 Wie diese Dokumentation zu lesen ist 2 Einleitung 3 Geschichte 4 MPlayer Installation 4.1 Voraussetzungen an die Software 4.2 Codecs 4.3 Grafikkarten 4.3.1 YUV-Karten 4.3.2 Nicht-YUV-Karten 4.4 Soundkarten 5 Features von MPlayer 5.1 Was ist mit dem GUI? 5.2 Untertitel und das OSD 5.2.1 Andere Untertitelformate 5.2.2 Angleichung der Untertitel-Anzeigezeit und der Platzierung 5.3 MPlayers eigenes Untertitelformat (MPsub) 5.4 Installation des OSD und der Untertitel 5.5 Das OSD-Menü 5.5.1 Installation 5.6 RTC 6 Features 6.1 Unterstützte Formate 6.1.1 Videoformate 6.1.1.1 MPEG-Dateien 6.1.1.2 AVI-Dateien 6.1.1.3 ASF/WMV-Dateien 6.1.1.4 QuickTime/MOV-Dateien 6.1.1.5 VIVO-Dateien 6.1.1.6 FLI-Dateien 6.1.1.7 RealMedia-(RM)-Dateien 6.1.1.8 NuppelVideo-Dateien 6.1.1.9 yuv4mpeg-Dateien 6.1.1.10 FILM-Dateien 6.1.1.11 RoQ-Dateien 6.1.1.12 OGG/OGM-Dateien 6.1.1.13 SDP-Dateien 6.1.1.14 PVA-Dateien 6.1.1.15 GIF-Dateien 6.1.2 Audio Formate 6.1.2.1 MP3-Dateien 6.1.2.2 WAV-Dateien 6.1.2.3 OGG/OGM-Dateien (Vorbis) SelfLinux-0.12.3 MPlayer - The Movie Player for Linux Seite 3 6.1.2.4 WMA/ASF-Dateien 6.1.2.5 MP4-Dateien 6.1.2.6 CD-Audio 6.1.2.7 XMMS 6.2 Unterstützte Codecs 6.2.1 Video-Codecs 6.2.1.1 DivX4/DivX5 6.2.1.2 FFmpeg's DivX/libavcodec 6.2.1.3 XAnim-Codecs 6.2.1.4 VIVO-Video 6.2.1.5 MPEG 1/2-Video 6.2.1.6 MS Video
    [Show full text]
  • Staxrip Documentation
    StaxRip Documentation Revan654 Jun 27, 2019 Contents 1 Introduction 1 1.1 About...................................................1 1.2 Features..................................................1 1.3 Requirements...............................................1 1.4 License..................................................2 1.5 Download.................................................2 1.6 Setup...................................................2 2 Features 3 2.1 Preprocessing...............................................3 2.2 Video Processing.............................................3 2.3 Templates.................................................3 2.4 Command Engine............................................4 3 Screenshots 5 3.1 Main...................................................6 3.2 AnimatedPNG..............................................7 3.3 AnimationGIF..............................................8 3.4 AppForm.................................................9 3.5 AudioMenu................................................ 10 3.6 eac3to................................................... 11 3.7 Event Command Editor......................................... 12 3.8 Job Processing.............................................. 13 3.9 Log File Viewer............................................. 14 3.10 Media Info................................................ 15 3.11 Menus.................................................. 16 3.12 NVEnc.................................................. 17 3.13 Preprocessing..............................................
    [Show full text]
  • Creating Accessible Videos for Websites
    Creating Accessible Video for the Internet Marsha Schwanke Burton Blatt Institute (BBI) Syracuse University September 8, 2010 In This Session ¾ Why Accessible Video? ¾ Features of Accessible Online Video ¾ Tools for Accessible Video ¾ Tips to Plan & Develop Accessible Video ¾ Examples/Best Practices ¾ Resources ¾ Q&A 2 Accessible Technology On-line Seminar Series – A Project of the ADA National Network by DBTAC, Coordinated by the DBTAC: Great Lakes ADA Center © 2010 All Rights Reserved Video Demand Explosion z 82% – Internet users that view videos online. z 182 – Online videos avg. user watches in 1 month. z 10x longer - Websites with video hold attention. z 2 billion – Videos served by YouTube in 1 day. z 81.9% – Embedded YouTube videos on blogs. z 90% - Est. Internet content video-based by 2012 3 Accessible Technology On-line Seminar Series – A Project of the ADA National Network by DBTAC, Coordinated by the DBTAC: Great Lakes ADA Center © 2010 All Rights Reserved Why Accessible Video? z Universal Design to Maximize Use z Individuals who are Deaf/HOH z Language & literacy: communication, learning z Environment flexibility: noisy, quiet, shared z Multi-modes: cognitive disabilities, learning styles z Technology compatibility & access z Searchable Content z Right Thing to Do … Good Business z Compliance: Policy, Standards, Laws (State, Federal, International) 4 Accessible Technology On-line Seminar Series – A Project of the ADA National Network by DBTAC, Coordinated by the DBTAC: Great Lakes ADA Center © 2010 All Rights Reserved Accessible Video: Sample Compliance - 508, WCAG z Section 508(a)~WCAG 1 (1.1)~WCAG 2 (1.1,1.2,4.2) z Text alternatives for all non-text content z Section 508(b)~WCAG 1 (1.4)~WCAG 2 (1.2) z Synch alternatives for multimedia z Section 508(m)~WCAG 1 (6.3,6.4,8.1)~WCAG 2 (2.1,4.1,4.2) z Link to applet or required plug-in z Directly accessible or compatible with AT (i.e.
    [Show full text]
  • MULTIMEDIJALNE KOMUNIKACIJE 7-2 VLC Media Player
    Playeri MULTIMEDIJALNE KOMUNIKACIJE 7-2 VLC Media Player open source MPEG-1, MPEG-2, MPEG-4, DivX, MP3 i OGG, kao i za DVD, VCD i razne striming protokole. server za unicast ili multicast strimove u IPv4 ili IPv6 na mrežama sa visokim protokom. VLC ima sve potrebne kodeke, -nema Video formati potrebe za instaliranjem dodatnih. MPEG-1/2, DivX® (1/2/3/4/5/6), VLC ima punu podršku za subtitlove MPEG-4 ASP, XviD, 3ivX D4, H.261, H.263 / H.263i, H.264 / MPEG-4 AVC, Program podržava i skinove(šablonsko Cinepak, Theora, Dirac / VC-2, MJPEG menjanje izgleda), (A/B), WMV 1/2, WMV 3 / WMV-9 / Sve verzije Windows-a / Linux / Mac VC-1, Sorenson 1/3, DV, On2 OS X / Unix VP3/VP5/VP6, Indeo Video v3 (IV32), Real Video (1/2/3/4). Audio DVD, Text files MPEG Layer 1/2, MP3 - MPEG Layer 3, (MicroDVD, SubRIP, SubViewer, SSA1- AAC - MPEG-4 part3, Vorbis, AC3 - 5, SAMI, VPlayer), Closed captions, A/52, E-AC-3, MLP / TrueHD>3, DTS, Vobsub, Universal Subtitle Format WMA 1/2, WMA 3, FLAC, ALAC, Speex, (USF), SVCD / CVD, DVB, OGM, Musepack / MPC, ATRAC 3, Wavpack, CMML, Kate. Mod, TrueAudio, APE, Real Audio, Alaw/µlaw, AMR (3GPP), MIDI, LPCM, ADPCM, QCELP, DV Audio, QDM2/QDMC, MACE. Nudi tri funkcije koje su izuzetno interesantne naprednijim korisnicima: ◦ open-source projekat, nudi izvorni kôd koji može da se analizira i menjapo sopstvenom nahođenju. ◦ cross-platform plejer i za sada postoje binarne instalacije za 11 operativnih sistema, a moguće ga je kompajlirati na još sedam dodatnih OS-ova.
    [Show full text]
  • Veritas Information Map User Guide
    Veritas Information Map User Guide November 2017 Veritas Information Map User Guide Last updated: 2017-11-21 Legal Notice Copyright © 2017 Veritas Technologies LLC. All rights reserved. Veritas and the Veritas Logo are trademarks or registered trademarks of Veritas Technologies LLC or its affiliates in the U.S. and other countries. Other names may be trademarks of their respective owners. This product may contain third party software for which Veritas is required to provide attribution to the third party (“Third Party Programs”). Some of the Third Party Programs are available under open source or free software licenses. The License Agreement accompanying the Software does not alter any rights or obligations you may have under those open source or free software licenses. Refer to the third party legal notices document accompanying this Veritas product or available at: https://www.veritas.com/about/legal/license-agreements The product described in this document is distributed under licenses restricting its use, copying, distribution, and decompilation/reverse engineering. No part of this document may be reproduced in any form by any means without prior written authorization of Veritas Technologies LLC and its licensors, if any. THE DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. VERITAS TECHNOLOGIES LLC SHALL NOT BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES IN CONNECTION WITH THE FURNISHING, PERFORMANCE, OR USE OF THIS DOCUMENTATION. THE INFORMATION CONTAINED IN THIS DOCUMENTATION IS SUBJECT TO CHANGE WITHOUT NOTICE.
    [Show full text]