]> git.decadent.org.uk Git - lca-dvswitch.git/blob - index.html
Improve readability of the internals diagram
[lca-dvswitch.git] / index.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
2         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
4 <html xmlns="http://www.w3.org/1999/xhtml">
5
6 <head>
7 <title>DVswitch - Ben Hutchings - LCA2011</title>
8 <!-- metadata -->
9 <meta name="generator" content="S5" />
10 <meta name="version" content="S5 1.1" />
11 <meta name="author" content="Ben Hutchings" />
12 <!-- configuration parameters -->
13 <meta name="defaultView" content="slideshow" />
14 <meta name="controlVis" content="hidden" />
15 <!-- style sheet links -->
16 <link rel="stylesheet" href="s5-blank/ui/default/slides.css" type="text/css" media="projection" id="slideProj" />
17 <link rel="stylesheet" href="s5-blank/ui/default/outline.css" type="text/css" media="screen" id="outlineStyle" />
18 <link rel="stylesheet" href="s5-blank/ui/default/print.css" type="text/css" media="print" id="slidePrint" />
19 <link rel="stylesheet" href="s5-blank/ui/default/opera.css" type="text/css" media="projection" id="operaFix" />
20 <style type="text/css">
21   .logo { position: absolute; right: 0; top: 0; height: 100% }
22   table { border-collapse: collapse }
23   th { border-bottom: 2pt solid black }
24   th, td { padding: 0 6pt }
25 </style>
26 <!-- S5 JS -->
27 <script src="s5-blank/ui/default/slides.js" type="text/javascript"></script>
28 </head>
29 <body>
30
31 <div class="layout">
32 <div id="controls"><!-- DO NOT EDIT --></div>
33 <div id="currentSlide"><!-- DO NOT EDIT --></div>
34 <div id="header">
35   <object class="logo" data="lca2011.svg"></object>
36 </div>
37 <div id="footer">
38 <h1>LCA2011</h1>
39 <h2>DVswitch</h2>
40 </div>
41
42 </div>
43
44
45 <div class="presentation">
46
47 <div class="slide">
48 <h1>DVswitch</h1>
49 <h3>Ben Hutchings</h3>
50 </div>
51
52
53 <div class="slide">
54   <h1>The author</h1>
55   <ul class="incremental">
56     <li>
57       Professional software developer since 1998
58     </li>
59     <li>
60       Debian contributor since 2003
61     </li>
62     <li>
63       DebConf video team member since 2005
64     </li>
65     <li>
66       Started the VideoLink and DVswitch projects for use in DebConf
67       video production
68     </li>
69     <li>
70       Mostly working on kernel stuff
71     </li>
72   </ul>
73 </div>
74
75
76 <div class="slide">
77   <h1>What is DVswitch?</h1>
78   <ul class="incremental">
79     <li>
80       A software system that supports video mixing, recording and streaming
81     </li>
82     <li>
83       Primarily designed for free software conferences:
84       <ul class="incremental">
85         <li>
86           Record and stream for maximum community benefit
87         </li>
88         <li>
89           Budget is usually quite limited
90         </li>
91         <li>
92           We have eager volunteers but not much time to train them
93         </li>
94       </ul>
95     <li>
96       Now used more widely, often without streaming
97     </li>
98     <li>
99       Mixing is <em>live</em> - required for streaming, and avoids the
100       need for extensive editing after the event
101     </li>
102     <li>
103       Mixing is <em>interactive</em> - required for good coverage of
104       presenters, audience and slides; very limited in other
105       streaming software
106     </li>
107   </ul>
108 </div>
109
110 <div class="slide">
111   <h1>What is DVswitch <em>not</em>?</h1>
112   <p>
113     There are limited developer resources and limited goals for
114     DVswitch.  It is never intended to be:
115   </p>
116   <ul class="incremental">
117     <li>
118       A general video editor
119     </li>
120     <li>
121       An audio mixer - audio functionality is limited to dubbing and
122       level monitoring
123     </li>
124     <li>
125       A complete recording and publishing system
126     </li>
127   </ul>
128   <p class="incremental">
129     These are all better handled by other software and
130     hardware.
131   </p>
132 </div>
133
134 <div class="slide">
135   <h1>The 'DV' in DVswitch</h1>
136   <p>
137     The name refers to the DV format used by many video cameras:
138   </p>
139   <table>
140     <tr>
141       <th>Profile</th><th>Specification</th><th>Video codec</th><th>Supported</th>
142     </tr>
143     <tr>
144       <td>Basic DV</td><td>IEC 61834</td><td>DV 25</td><td>yes</td>
145     </tr>
146     <tr>
147       <td>DVCAM</td><td>Sony proprietary</td><td>DV 25</td><td>probably</td>
148     </tr>
149     <tr>
150       <td>DVCPRO</td><td>SMPTE 314M</td><td>DV 25</td><td>probably</td>
151     </tr>
152     <tr>
153       <td>DVCPRO50</td><td>SMPTE 314M</td><td>DV 50</td><td>not yet</td>
154     </tr>
155     <tr>
156       <td>DVCPRO HD</td><td>SMPTE 370M</td><td>DV 100</td><td>not yet</td>
157     </tr>
158     <tr>
159       <td>HDV</td><td>IEC 61834</td><td>MPEG-2</td><td>no</td>
160     </tr>
161   </table>
162   <p>
163     DV video codecs compress each frame separately (unlike MPEG)
164   </p>
165   <div class="handout">
166     <p>
167       The lack of interframe compression means there is relatively
168       little delay between camera and mixer and we can cut between
169       sources without having to decode all sources all the time.
170       In fact, DVswitch doesn't need to decode even a single source at
171       full frame rate if you just cut between sources without using
172       mixing effects.
173     </p>
174     <p>
175       Unfortunately, most of today's consumer cameras don't have DV
176       output and may not provide live video output at all.
177     </p>
178   </div>
179 </div>
180
181 <div class="slide">
182   <h1>Overview of the system</h1>
183   <p>
184     A simplified view of the typical components:
185   </p>
186   <object data="dvswitch-simple.dia.svg" width="60%" height="60%"></object>
187 </div>
188
189 <div class="slide">
190   <h1>Sources</h1>
191   <ul class="incremental">
192     <li>
193       Source types: firewire/USB DV device, ALSA capture device,
194       DIF file
195     </li>
196     <li>
197       Physical sources are spread around room and connected to the
198       mixer via TCP/IP networking
199     </li>
200     <li>
201       Original protocol: mixer runs a network server; sources run as
202       clients and send DIF over TCP
203       <ul class="incremental">
204         <li>
205           Requires a script to coordinate mixer and source startup -
206           an annoying complication
207         </li>
208       </ul>
209     <li>
210       Later enhancement: tally lights
211     </li>
212     <li>
213       Next release: sources run as RTP/RTSP servers and mixer
214       connects to them as a client
215       <ul class="incremental">
216         <li>
217           No custom scripts required; just configuration files
218         </li>
219       </ul>
220     </li>
221   </ul>
222   <div class="handout">
223     <p>
224       DIF is the DV Interchange Format, sometimes referred to as 'raw
225       DV' although it is a container format in its own right.
226     </p>
227   </div>
228 </div>
229
230 <div class="slide">
231   <h1>Sinks</h1>
232   <ul class="incremental">
233     <li>
234       Sink types: DIF files, pipe to arbitrary command
235     </li>
236     <li>
237       Also connected using TCP/IP networking, though this is not such
238       a good idea for recording
239     </li>
240     <li>
241       Original protocol: mixer runs a network server; sinks run
242       as clients and receive DIF over TCP
243     </li>
244     <li>
245       Later enhancement: sink reports whether it will record;
246       mixer can start, stop and cut recording
247     </li>
248     <li>
249       Next release: file and pipe sinks built into mixer along with an
250       RTP/RTSP server
251     </li>
252   </ul>
253 </div>
254
255 <div class="slide">
256   <h1>Mixer UI</h1>
257   <object data="screenshot-1.png" width="50%"></object>
258 </div>
259
260 <div class="slide">
261   <h1>Mixer UI, annotated</h1>
262   <object data="screenshot-1-annotated.xcf.png" width="50%"></object>
263 </div>
264
265 <div class="slide">
266   <h1>Mixer internals</h1>
267   <object data="dvswitch-internal.dia.svg" width="90%" height="90%"></object>
268   <div class="handout">
269     <p>
270       To simplify the diagram, I omitted connection setup, tally light
271       and recording control, and the internal sinks that haven't been
272       implemented yet.
273     </p>
274     <p>
275       All these interfaces have limited-length queues.  If a queue
276       fills up, frames have to be dropped - we must not block or use
277       unlimited memory!
278     </p>
279     <p>
280       The mixer clock thread maintains a frame clock at about 25 or
281       30&nbsp;Hz depending on the video system, constantly adjusted to
282       follow the audio source.
283     </p>
284   </div>
285 </div>
286
287 </body>
288 </html>