-
Notifications
You must be signed in to change notification settings - Fork 0
/
SM1.html
98 lines (94 loc) · 6.76 KB
/
SM1.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html><html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><head><title>Adding extended audio description in SMIL 1.0</title><link rel="stylesheet" type="text/css" href="../../css/sources.css" class="remove"></link></head><body><h1>Adding extended audio description in SMIL 1.0</h1><section class="meta"><p class="id">ID: SM1</p><p class="technology">Technology: smil</p><p class="type">Type: Technique</p></section><section id="applicability"><h2>When to Use</h2>
<p> Applies whenever SMIL 1.0 player is available </p>
</section><section id="description"><h2>Description</h2>
<p> The purpose of this technique is to allow there to be more audio description than will fit into the gaps in the dialogue of the audio-visual material.</p>
<p>With SMIL 1.0 there is no easy way to do this but it can be done by breaking the audio and video files up into a series of files that are played sequentially. Additional audio description is then played while the audio-visual program is frozen. The last frame of the video file is frozen so that it remains on screen while the audio file plays out.</p>
<p>The effect is that the video appears to play through from end to end but freezes in places while a longer audio description is provided. It then continues automatically when the audio description is complete.</p>
<p>To turn the extended audio description on and off one could use script to switch back and forth between two SMIL scripts, one with and one without the extended audio description lines. Or script could be used to add or remove the extended audio description lines from the SMIL file so that the film clips would just play sequentially.</p>
<p>If scripting is not available then two versions of the video could be provided, one with and one without extended audio descriptions.</p>
</section><section id="examples"><h2>Examples</h2>
<section class="example">
<h3>SMIL 1.0 Video with audio descriptions that pause the main media in 4 locations to allow extended audio description</h3>
<pre xml:space="preserve">
<?xml version="1.0" encoding="UTF-8"?>
<smil xmlns:qt="http://www.apple.com/quicktime/resources/smilextensions"
xmlns="https://www.w3.org/TR/REC-smil" qt:time-slider="true">
<head>
<layout>
<root-layout background-color="black" height="266" width="320"/>
<region id="videoregion" background-color="black" top="26" left="0"
height="144" width="320"/>
</layout>
</head>
<body>
<par>
<seq>
<par>
<video src="video.rm" region="videoregion" clip-begin="0s" clip-end="5.4"
dur="8.7" fill="freeze" alt="videoalt"/>
<audio src="no1.wav" begin="5.4" alt="audio alt"/>
</par>
<par>
<video src="video.rm" region="videoregion" clip-begin="5.4" clip-end="24.1"
dur="20.3" fill="freeze" alt="videoalt"/>
<audio src="no2.wav" begin="18.7" alt="audio alt"/>
</par>
<par>
<video src="video.rm" region="videoregion" clip-begin="24.1" clip-end="29.6"
dur="7.7" fill="freeze" alt="videoalt"/>
<audio src="no3.wav" begin="5.5" alt="audio alt"/>
</par>
<par>
<video src="video.rm" region="videoregion" clip-begin="29.6" clip-end="34.5"
dur="5.7" fill="freeze" alt="videoalt"/>
<audio src="no4.wav" begin="4.9" alt="audio alt"/>
</par>
<par>
<video src="video.rm" region="videoregion" clip-begin="77.4" alt="video alt"/>
</par>
</seq>
</par>
</body>
</smil>
</pre>
<p>The markup above is broken into five <par> segments. In each, there is a <video> and an <audio> tag (the last <par> has no <audio> tag intentionally). The convention with extended audio descriptions is that the main media pauses during the description. The way to make this happen in SMIL 1.0 is to set a "clip-begin" and "clip-end" which dictate the start and end of the video clip, and to set a duration for the clip that is longer than what is defined by the "clip-begin" and "clip-end". The fill="freeze" holds the last frame of the video during the extended description. The <audio> tag has a "<code class="att">begin</code>" attribute with a value that is equal to the "clip-end" value of the preceding <video> tag.</p>
<p>To determine the values for "clip-begin," "clip-end", and "dur", find the start and end time of the portion of the video being described, and find out the total length of the extended audio description. The "clip-begin" and "clip-end" define their own values, but the "<code class="att">dur</code>" value is the sum of the length of the extended description and the clip defined by the "clip-begin" and "clip-end". In the first <par>, the video clip starts at 0 seconds, ends at 5.4 seconds, and the description length is 3.3 seconds, so the "<code class="att">dur</code>" value is 5.4s + 3.3s = 8.7s.</p>
</section>
</section><section id="tests"><h2>Tests</h2>
<section class="procedure"><h3>Procedure</h3>
<ol>
<li> Play file with extended audio descriptions</li>
<li> Play file with audio description </li>
<li>Check whether video freezes in places and plays extended audio description</li>
</ol>
</section>
<section class="results"><h3>Expected Results</h3>
<ul>
<li> #3 is true </li>
</ul>
</section>
</section><section id="related"><h2>Related Techniques</h2><ul>
<li><a href="../smil/SM2">SM2</a></li>
<li><a href="../smil/SM6">SM6</a></li>
<li><a href="../general/G81">G81</a></li>
<li><a href="../smil/SM11">SM11</a></li>
</ul></section><section id="resources"><h2>Resources</h2>
<ul>
<li>
<a href="https://www.w3.org/TR/REC-smil/">Synchronized
Multimedia Integration Language (SMIL) 1.0</a>
</li>
<li>
<a href="https://www.w3.org/TR/SMIL/">Synchronized Multimedia
Integration Language (SMIL 2.0)</a>
</li>
<li>
<a href="https://www.w3.org/TR/SMIL-access/">Accessibility
Features of SMIL</a>
</li>
<li>
<a href="http://ncam.wgbh.org/invent_build/web_multimedia/accessible-digital-media-guide/guideline-h-multimedia#techH12">NCAM Rich Media Accessibility, Accessible SMIL
Templates</a>
</li>
</ul>
</section></body></html>