Incomplete work on DKDMs etc.
[dcpomatic.git] / doc / manual / dcpomatic.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE book [
3 <!ENTITY % sgml.features "IGNORE">
4 <!ENTITY % xml.features "INCLUDE">
5 <!ENTITY % dbcent PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.5//EN"
6    "/usr/share/xml/docbook/schema/dtd/4.5/dbcentx.mod">
7 %dbcent;
8 <!ENTITY % extensions SYSTEM "extensions.ent">
9 %extensions;
10 ]>
11 <book xmlns="http://docbook.org/ns/docbook" xmlns:mml="http://www.w3.org/1998/Math/MathML" version="5.0" xml:lang="en">
12
13 <bookinfo>
14 <title>DCP-o-matic users' manual</title>
15 <author><firstname>Carl</firstname><surname>Hetherington</surname></author>
16 </bookinfo>
17
18 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
19 <title>Introduction</title>
20
21 <para>
22 Hello, and welcome to DCP-o-matic!
23 </para>
24
25 <!-- ============================================================== -->
26 <section>
27 <title>What is DCP-o-matic?</title>
28
29 <para>
30 DCP-o-matic is a program to generate <ulink
31 url="http://en.wikipedia.org/wiki/Digital_Cinema_Package">Digital
32 Cinema Packages</ulink> (DCPs) from almost any video, audio and/or
33 subtitle source files.  The resulting DCPs will play on modern digital
34 cinema projectors.
35 </para>
36
37 </section>
38
39
40 <!-- ============================================================== -->
41 <section>
42 <title>Licence</title>
43
44 <para>
45 DCP-o-matic is free and open-source and is licensed under the <ulink
46 url="http://www.gnu.org/licenses/old-licenses/gpl-2.0.html">GNU
47 GPL</ulink>.
48 </para>
49
50 </section>
51
52
53 <!-- ============================================================== -->
54 <section>
55 <title>Acknowledgements</title>
56
57 <para>
58 This manual uses icons from the <ulink url="http://tango.freedesktop.org/">Tango Desktop Project</ulink>, with thanks.
59 </para>
60
61 </section>
62 </chapter>
63
64
65 <!-- ============================================================== -->
66 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
67 <title>Installation</title>
68
69
70 <!-- ============================================================== -->
71 <section>
72 <title>Windows</title>
73
74 <para>
75 To install DCP-o-matic on Windows, download the installer from
76 <ulink url="http://dcpomatic.com/">http://dcpomatic.com/</ulink>
77 and double-click it.  Click through the installer wizard, and
78 DCP-o-matic will be installed onto your machine.
79 </para>
80
81 <para>
82 If you are using a 32-bit version of Windows, you will need the 32-bit
83 installer.  For 64-bit Windows, either installer will work, but I
84 suggest you used the 64-bit version as it will allow DCP-o-matic to
85 use more memory.  You may find that DCP-o-matic crashes if you run
86 many parallel encoding threads (more than 4) on the 32-bit
87 version.
88 </para>
89
90 </section>
91
92
93 <!-- ============================================================== -->
94 <section>
95 <title>Mac OS X</title>
96
97 <para>
98 DCP-o-matic will run on Mac OS X version 10.6 (Snow Leopard) and
99 higher.  To install it, download the <code>.dmg</code> from <ulink
100 url="http://dcpomatic.com/">http://dcpomatic.com/</ulink> and double
101 click to open it.  Then drag the DCP-o-matic icon to your
102 <guilabel>Applications</guilabel> folder or wherever else you would
103 like to install it.
104 </para>
105
106 </section>
107
108 <!-- ============================================================== -->
109 <section>
110 <title>Debian or Ubuntu Linux</title>
111
112 <para>
113   You can install DCP-o-matic on:
114 </para>
115
116 <itemizedlist>
117   <listitem>Debian 7 (&lsquo;wheezy&rsquo;)</listitem>
118   <listitem>Debian 8 (&lsquo;jessie&rsquo;)</listitem>
119   <listitem>Debian unstable (&lsquo;sid&rsquo;)</listitem>
120   <listitem>Ubuntu 12.04 (&lsquo;Precise Pangolin&rsquo;)</listitem>
121   <listitem>Ubuntu 14.04 (&lsquo;Trusty Tahr&rsquo;)</listitem>
122   <listitem>Ubuntu 15.04 (&lsquo;Vivid Vervet&rsquo;)</listitem>
123   <listitem>Ubuntu 15.10 (&lsquo;Wily Werewolf&rsquo;)</listitem>
124 </itemizedlist>
125
126 <para>
127 using <code>.deb</code> packages: download the appropriate package
128 from <ulink url="http://dcpomatic.com/">http://dcpomatic.com/</ulink>
129 and double-click it.  Debian or Ubuntu will install the necessary bits and
130 pieces and set DCP-o-matic up for you.
131 </para>
132 </section>
133 <!-- ============================================================== -->
134
135
136 <!-- ============================================================== -->
137 <section>
138   <title>Fedora Linux</title>
139
140   <para>There are <code>.rpm</code> packages for Fedora 22 and 23 on
141   <ulink url="http://dcpomatic.com/">http://dcpomatic.com/</ulink>
142   </para>
143 </section>
144 <!-- ============================================================== -->
145
146
147 <!-- ============================================================== -->
148 <section>
149   <title>Centos Linux</title>
150   <para>There are <code>.rpm</code> packages for Centos 6.5 and 7 on
151   <ulink url="http://dcpomatic.com/">http://dcpomatic.com/</ulink>
152   </para>
153 </section>
154 <!-- ============================================================== -->
155
156
157 <!-- ============================================================== -->
158 <section>
159 <title>Arch Linux</title>
160 <para>
161 Packages for Arch Linux are available from <ulink
162 url="https://aur.archlinux.org/packages/dcpomatic/">https://aur.archlinux.org/packages/dcpomatic/</ulink>,
163 thanks to Stefan Karner.
164 </para>
165 </section>
166
167
168 <!-- ============================================================== -->
169 <section>
170 <title>Other Linux distributions</title>
171
172 <para>
173 Installation on other Linux systems (for which no packages are
174 available) is quite hard; you will have to compile it from source.  If
175 you are using distribution for which no packages are available, do let
176 me know by <ulink url="mailto:carl@dcpomatic.com">email</ulink> and I
177 will look into providing packages on the website.
178 </para>
179
180 <para>
181 The following dependencies are required:
182 <itemizedlist>
183 <listitem><ulink url="http://ffmpeg.org/">FFmpeg</ulink></listitem>
184 <listitem><ulink url="http://www.mega-nerd.com/libsndfile/">libsndfile</ulink></listitem>
185 <listitem><ulink url="http://www.mega-nerd.com/SRC/">libsamplerate</ulink></listitem>
186 <listitem><ulink url="http://www.openssl.org/">OpenSSL</ulink></listitem>
187 <listitem><ulink url="http://www.openjpeg.org/">libopenjpeg</ulink></listitem>
188 <listitem><ulink url="http://www.imagemagick.org/script/index.php">ImageMagick</ulink></listitem>
189 <listitem><ulink url="http://www.boost.org/">Boost</ulink></listitem>
190 <listitem><ulink url="http://www.libssh.org/">libssh</ulink></listitem>
191 <listitem><ulink url="http://www.gtk.org/">GTK (on Linux)</ulink></listitem>
192 <listitem><ulink url="http://www.wxwidgets.org/">wxWidgets</ulink></listitem>
193 <listitem><ulink url="http://libxmlplusplus.sourceforge.net/">libxml++</ulink></listitem>
194 <listitem><ulink url="http://www.aleksey.com/xmlsec/">xmlsec</ulink></listitem>
195 <listitem><ulink url="http://curl.haxx.se/">curl</ulink></listitem>
196 <listitem><ulink url="http://www.nih.at/libzip/">libzip</ulink></listitem>
197 <listitem><ulink url="http://carlh.net/libdcp/">libdcp</ulink></listitem>
198 <listitem><ulink url="http://carlh.net/libsub/">libsub</ulink></listitem>
199 <listitem><ulink url="http://carlh.net/libcxml/">libcxml</ulink></listitem>
200 <listitem><ulink url="http://site.icu-project.org">libicu</ulink></listitem>
201 </itemizedlist>
202 </para>
203
204 <para>
205 Once you have installed the development packages for the dependencies,
206 download the source code from <ulink
207 url="http://dcpomatic.com/">http://dcpomatic.com/</ulink>,
208 unpack it and run the following commands from inside the source
209 directory:
210 </para>
211
212 <programlisting>
213 ./waf configure
214 ./waf build
215 sudo ./waf install
216 </programlisting>
217
218 <para>
219 With any luck, this will build and install DCP-o-matic on your system.  To run it, enter:
220 </para>
221
222 <programlisting>
223 dcpomatic2
224 </programlisting>
225
226 <para>
227 in a shell.
228 </para>
229
230 </section>
231 </chapter>
232
233
234 <!-- ============================================================== -->
235 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
236 <title>Creating a video DCP</title>
237
238 <para>
239 In this chapter we will see how to create a video DCP using
240 DCP-o-matic.  We will gloss over the details and look at the basics.
241 </para>
242
243 <section>
244 <title>Creating a new film</title>
245
246 <para>
247 Let's make a very simple DCP to see how DCP-o-matic works.  First, we
248 need some content.  Download the low-resolution trailer for the open
249 movie <ulink url="http://sintel.org/">Sintel</ulink> from <ulink
250 url="http://ftp.nluug.nl/ftp/graphics/blender/apricot/trailer/Sintel_Trailer1.480p.DivX_Plus_HD.mkv">their
251 website</ulink>.  Generally, of course, one would want to use the
252 highest-resolution material available, but for this test we will use
253 the low-resolution version to save everyone's bandwidth bills.
254 </para>
255
256 <para>
257 Now, start DCP-o-matic and its window will open.  First, we will
258 create a new &lsquo;film&rsquo;.  A &lsquo;film&rsquo; is how DCP-o-matic refers to
259 some pieces of content, along with some settings, which we will make into
260 a DCP.  DCP-o-matic stores its data in a folder on your disk while it
261 creates the DCP.  You can create a new film by selecting
262 <guilabel>New</guilabel> from the <guilabel>File</guilabel> menu, as
263 shown in <xref linkend="fig-file-new"/>.
264 </para>
265
266 <figure id="fig-file-new">
267   <title>Creating a new film</title>
268   <mediaobject>
269     <imageobject>
270       <imagedata fileref="screenshots/file-new&scs;"/>
271     </imageobject>
272   </mediaobject>
273 </figure>
274
275 <para>
276 This will open a dialogue box for the new film, as shown in <xref
277 linkend="fig-video-new-film"/>.
278 </para>
279
280 <figure id="fig-video-new-film">
281   <title>Dialogue box for creating a new film</title>
282   <mediaobject>
283     <imageobject>
284       <imagedata fileref="screenshots/video-new-film&scs;"/>
285     </imageobject>
286   </mediaobject>
287 </figure>
288
289 <para>
290 In this dialogue box you can choose a name for the film.  This will be
291 used to name the folder to store its data in, and also as the initial
292 name for the DCP itself.  You can also choose whereabouts you want to create
293 the film.  In the example from the figure, DCP-o-matic will create a
294 folder called &lsquo;DCP Test&rsquo; inside my home folder (carl) into which it
295 will write its working files.
296 </para>
297
298 </section>
299
300
301 <!-- ============================================================== -->
302 <section>
303 <title>Adding content</title>
304
305 <para>
306 The next step is to add the content that you want to use.  DCP-o-matic
307 can make DCPs from multiple pieces of content, but in this simple
308 example we will just use a single piece.  Click the <guilabel>Add
309 file(s)...</guilabel> button, as shown in <xref
310 linkend="fig-add-file"/>, and a file chooser will open for you to
311 select the content file to use, as shown in <xref
312 linkend="fig-video-select-content-file"/>.
313 </para>
314
315 <figure id="fig-add-file">
316   <title>Adding content files</title>
317   <mediaobject>
318     <imageobject>
319       <imagedata fileref="screenshots/add-file&scs;"/>
320     </imageobject>
321   </mediaobject>
322 </figure>
323
324 <figure id="fig-video-select-content-file">
325   <title>Selecting a video content file</title>
326   <mediaobject>
327     <imageobject>
328       <imagedata fileref="screenshots/video-select-content-file&scs;"/>
329     </imageobject>
330   </mediaobject>
331 </figure>
332
333 <para>
334 Select your content file and click <guilabel>Open</guilabel>.  In this
335 case we are using the Sintel trailer that we downloaded earlier.
336 </para>
337
338 <para>
339 When you do this, DCP-o-matic will take a look at your file.  After a
340 short while (when the progress bar at the bottom right of the window
341 has finished), you can look through your content using the slider to
342 the right of the window, as shown in <xref linkend="fig-examine-content"/>.
343 </para>
344
345 <figure id="fig-examine-content">
346   <title>Examining the content</title>
347   <mediaobject>
348     <imageobject>
349       <imagedata fileref="screenshots/examine-content&scs;"/>
350     </imageobject>
351   </mediaobject>
352 </figure>
353
354 <para>
355 Dragging the slider will move through your video.  You can also click
356 the <guilabel>Play</guilabel> button to play the content back.  <emphasis>Note
357 that there will be no sound</emphasis>, and playback might not be entirely
358 accurate (it may be slightly slower or faster than it should be, for
359 example).  This player is really only intended for brief inspection of
360 content; if you need to check it more thoroughly, use another player
361 such as <ulink
362 url="http://projects.gnome.org/totem/index.html">Totem</ulink>, <ulink
363 url="http://www.mplayerhq.hu/design7/news.html">mplayer</ulink> or
364 <ulink url="http://www.videolan.org/vlc/index.html">VLC</ulink>.
365 </para>
366
367 </section>
368
369
370
371
372 <!-- ============================================================== -->
373 <section>
374 <title>Making the DCP</title>
375
376 <para>In most cases, some adjustments would be made to DCP-o-matic's
377 settings once the content has been added.  For our simple test,
378 however, the default values will suffice, so we can go straight onto
379 making the DCP.</para>
380
381 <para>
382 Choose <guilabel>Make DCP</guilabel> from the
383 <guilabel>Jobs</guilabel> menu.  DCP-o-matic will encode your DCP.
384 This may take some time (many hours in some cases).  While the job is
385 in progress, DCP-o-matic will update you on how it is getting on with
386 the progress bar in the bottom of its window, as shown in <xref
387 linkend="fig-making-dcp"/>.
388 </para>
389
390 <figure id="fig-making-dcp">
391   <title>Making the DCP</title>
392   <mediaobject>
393     <imageobject>
394       <imagedata scale="50" fileref="screenshots/making-dcp&scs;"/>
395     </imageobject>
396   </mediaobject>
397 </figure>
398
399 <para>
400 When it has finished, the DCP will end up on your disk inside the
401 film's folder.  You can then copy this to a projector via a USB
402 stick, hard-drive or network connection.  See <xref
403 linkend="ch-files"/> for details about the files that DCP-o-matic creates.
404 </para>
405
406 <para>
407 Alternatively, if  you have a  projector or Theatre  Management System
408 (TMS) that is accessible via SCP across your network, you can upload
409 the content directly from DCP-o-matic.  See the <xref
410 linkend="sec-prefs-tms" endterm="sec-prefs-tms-short"/> in <xref linkend="sec-prefs-tms"/>.
411 </para>
412
413 </section>
414 </chapter>
415
416
417 <!-- ============================================================== -->
418 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
419 <title>Creating a still-image DCP</title>
420
421 <para>
422 DCP-o-matic can also be used to create DCPs of one or more still images, perhaps
423 for an advertisement or an on-screen announcement.  This chapter shows you
424 how to do it.
425 </para>
426
427 <para>
428 As with video DCPs, the first step is to create a new
429 &lsquo;Film&rsquo;; select <guilabel>New</guilabel> from the
430 <guilabel>File</guilabel> menu and the new film dialogue will open as
431 shown in <xref linkend="fig-still-new-film"/>.
432 </para>
433
434 <figure id="fig-still-new-film">
435   <title>Dialogue box for creating a new film</title>
436   <mediaobject>
437     <imageobject>
438       <imagedata fileref="screenshots/still-new-film&scs;"/>
439     </imageobject>
440   </mediaobject>
441 </figure>
442
443 <para>
444 Enter a name and click <guilabel>OK</guilabel>.  Now we need to add
445 the content.  As before, click <guilabel>Add file(s)...</guilabel>.
446 For our example, we will add a single image file, as shown in <xref
447 linkend="fig-still-select-content-file"/>.
448 </para>
449
450 <figure id="fig-still-select-content-file">
451   <title>Selecting a still content file</title>
452   <mediaobject>
453     <imageobject>
454       <imagedata fileref="screenshots/still-select-content-file&scs;"/>
455     </imageobject>
456   </mediaobject>
457 </figure>
458
459 <para>
460 As with video DCPs, most of the default settings will be fine for a
461 simple test.  The one thing that you might wish to change is the
462 length of the still.  Select the <guilabel>Timing</guilabel> tab and
463 you will see a <guilabel>Play length</guilabel> setting, as shown in <xref
464 linkend="fig-timing-tab"/>.
465 </para>
466
467 <figure id="fig-timing-tab">
468   <title>The timing tab</title>
469   <mediaobject>
470     <imageobject>
471       <imagedata fileref="screenshots/timing-tab&scs;"/>
472     </imageobject>
473   </mediaobject>
474 </figure>
475
476 <para>
477 This length is a &lsquo;timecode&rsquo;: it consists of four numbers.
478 The first is hours, the second minutes, the third seconds, and the
479 fourth frames.  Enter the duration that you want and then click <guilabel>Set</guilabel>.
480 </para>
481
482 <para>
483 Finally, as with video, you can choose <guilabel>Make DCP</guilabel>
484 from the <guilabel>Jobs</guilabel> menu to create your DCP.  This will
485 be much quicker than creating a video DCP, as DCP-o-matic only needs
486 to encode a single frame which it can then repeat.
487 </para>
488
489 </chapter>
490
491
492 <!-- ============================================================== -->
493 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
494 <title>Manipulating existing DCPs</title>
495
496 <para>
497 Frequently DCP-o-matic is used to take content in formats such as MP4
498 and convert it to JPEG2000 for a DCP.  Alternatively, it can be used
499 to take existing DCPs and modify them in various ways.
500 </para>
501
502 <section>
503 <title>Importing a DCP into DCP-o-matic</title>
504
505 <para>
506 If you want to do something to an existing DCP the first step is to
507 import it.  Click <guilabel>Add folder...</guilabel> and select your
508 DCP's folder.  It will be added to the DCP-o-matic project.  If the
509 DCP is unencrypted you can preview it in the normal way, though
510 playback will be very slow as decoding of DCPs is almost as
511 computationally intensive as encoding them.
512 </para>
513
514 </section>
515
516
517 <section>
518 <title>Decrypting encrypted DCPs</title>
519
520 <para>
521 DCPs can be encrypted (see <xref linkend="ch-encryption"/> for
522 details).  If you import an encrypted DCP you will need a key, in the
523 form of a Key Delivery Message (KDM), to decrypt it.
524 </para>
525
526 <para>
527 KDMs must be prepared by the organisation which created the DCP.  They
528 contain the keys to decrypt the DCP wrapped up in such a way that only
529 the intended recipient can read them.  You will need to provide the
530 organisation with a certificate which identifies your copy of
531 DCP-o-matic and allows them to create a KDM for you.
532 </para>
533
534 <para>
535 To get DCP-o-matic's decryption certificate, open the Preferences
536 dialogue (see <xref linkend="ch-preferences"/>) and go to the
537 <guilabel>Keys</guilabel> tab.  Click the <guilabel>Export DCP
538 decryption certificate...</guilabel> button at the bottom of this tab
539 and save the certificate.  Send this certificate to the DCP creators
540 and they can create a KDM to allow DCP-o-matic to decrypt their DCP.
541 </para>
542
543 <para>
544 Once you have your KDM, right-click the DCP's name in DCP-o-matic and
545 choose <guilabel>Add KDM...</guilabel>.  Specify your KDM and (all
546 being well) the DCP will be decrypted and become available for preview.
547 </para>
548
549 </section>
550
551
552 <section>
553 <title>Making a DCP from a DCP</title>
554
555 <para>
556 In many ways, using DCPs as <emphasis>content</emphasis> in
557 DCP-o-matic is the same as using any other content.  There are a few
558 things to note, though.
559 </para>
560
561
562 <section>
563 <title>Re-use of existing data</title>
564
565 <para>
566 Where possible DCP-o-matic will re-use existing JPEG2000-compressed
567 data from DCP content without modification.  This has the advantage
568 that creation of the new DCP will be quick, as the time-consuming
569 JPEG2000 encoding is not necessary.
570 </para>
571
572 <para>
573 DCP-o-matic can do this if you avoid changes to the following content
574 settings:
575 </para>
576
577 <itemizedlist>
578 <listitem>Crop</listitem>
579 <listitem>Scaling</listitem>
580 <listitem>Subtitle burn-in</listitem>
581 <listitem>Fades</listitem>
582 <listitem>Colour conversion</listitem>
583 </itemizedlist>
584
585 <para>
586 If you do change any of these settings on a piece of DCP content
587 DCP-o-matic will decode and then re-encode the JPEG2000 data.
588 </para>
589
590 </section>
591
592
593 <section>
594 <title>Making overlay files</title>
595
596 <para>
597 With its default settings, DCP-o-matic will take any data from DCP
598 content and copy it into the DCP that it creates.  See <xref linkend="fig-dcp-copy"/>.
599 </para>
600
601 <figure id="fig-dcp-copy">
602 <title>Creating a new DCP by copying an existing one</title>
603 <mediaobject><imageobject><imagedata scale="100" fileref="diagrams/dcp-copy&dia;"/></imageobject></mediaobject>
604 </figure>
605
606 <para>
607 This can be inefficient in some cases.  Consider, for example, a film
608 which has ten different translations for which the subtitles are
609 different but video and audio are the same.  If the video and audio
610 content takes up, say, 100Gb this means that the set of DCPs for every
611 translation would be about 1Tb with a lot of duplicated data.
612 </para>
613
614 <para>
615 The DCP format has a solution to this problem.  One DCP can refer to
616 the &lsquo;assets&rsquo; (picture, sound or subtitle) of another DCP.
617 For our translation example this means that we could have a
618 &lsquo;base&rsquo; DCP (often called the OV or Original Version)
619 containing video, audio and one set of subtitles and then any number
620 of overlay DCPs (often called VF or Version Files) which refer to the
621 base version and replace the original subtitles with their own.  <xref
622 linkend="fig-dcp-refer"/> shows this principle for one of our
623 translations.  The DCP that we make refers to the original content
624 DCP's video and audio rather than containing a copy.
625 </para>
626
627 <figure id="fig-dcp-refer">
628 <title>Creating a new DCP by referring to an existing one</title>
629 <mediaobject><imageobject><imagedata scale="100" fileref="diagrams/dcp-refer&dia;"/></imageobject></mediaobject>
630 </figure>
631
632 <para>
633 To play back the subtitled DCP the projectionist ingests both the base
634 (OV) DCP and the overlay (VF) DCP, then plays the VF one.
635 </para>
636
637 <para>
638 To make a DCP like this:
639 </para>
640
641 <itemizedlist>
642 <listitem>Import your &lsquo;Content DCP&rsquo; to a DCP-o-matic project.</listitem>
643 <listitem>Add whatever replacement you want in your new DCP (replacement subtitles or audio files, for example).</listitem>
644 <listitem>Select the DCP in the content list</listitem>
645 <listitem>Tick the <guilabel>Refer to existing DCP</guilabel> checkbox
646 in the tabs for the parts of the DCP that you want to refer to in your
647 new DCP.  For example, to refer to the &lsquo;Content DCP&rsquo;'s video and audio you would select the <guilabel>Video</guilabel> tab, click <guilabel>Refer to existing DCP</guilabel> then select the <guilabel>Audio</guilabel> tab and do the same.</listitem>
648 <listitem>Do <guilabel>Make DCP</guilabel> as usual and your VF DCP will be created.</listitem>
649 </itemizedlist>
650
651 </section>
652
653 </section>
654
655
656
657 </chapter>
658 <!-- ============================================================== -->
659
660
661 <!-- ============================================================== -->
662 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
663 <title>Content settings</title>
664
665 <para>
666 The previous chapters showed DCP generation using the default
667 settings.  DCP-o-matic offers a range of features to adjust the
668 content that goes into your DCP, and this chapter describes those
669 features in detail.
670 </para>
671
672 <section>
673 <title>Adding and removing content</title>
674
675 <para>
676 At the top of the <guilabel>Content</guilabel> tab is a list of the
677 content that will go into our DCP.  There can be as many pieces of
678 content as you like, and they can be of the following types:
679 </para>
680
681 <itemizedlist>
682 <listitem>Movie &mdash; a file containing some video, probably some
683 audio and possibly some embedded subtitles; for example, a MOV, MP4 or VOB.
684 </listitem>
685
686 <listitem>Sound &mdash; a file containing one or more channels of
687 audio; for example, a WAV or AIFF file.
688 </listitem>
689
690 <listitem>Still image &mdash; a file containing a single still image; for
691 example, a JPEG, PNG or TIFF file.
692 </listitem>
693
694 <listitem>Moving image &mdash; a directory containing many still
695 images which should be treated as the frames of a video.
696 </listitem>
697
698 <listitem>Subtitle &mdash; a file containing subtitle which will be
699 superimposed on the image of the DCP.  These can be
700 <guilabel>.srt</guilabel> or <guilabel>.xml</guilabel>
701 files.</listitem>
702
703 <listitem>DCP &mdash; an existing DCP.</listitem>
704 </itemizedlist>
705
706 <para>
707 To add one or more movie, sound, still-image or subtitle files, select
708 <guilabel>Add file(s)...</guilabel> and choose them from the selector.
709 </para>
710
711 <para>
712 To add a directory (folder) of images or a DCP, choose <guilabel>Add
713 folder...</guilabel> and choose the directory from the selector.  If
714 you select a folder of images DCP-o-matic will open a small dialogue
715 box where you can enter the frame rate that the image sequence should
716 be run at.
717 </para>
718
719 <para>
720 You can remove a piece of content by clicking on its name and then
721 clicking the <guilabel>Remove</guilabel> button.
722 </para>
723
724 </section>
725
726 <!-- ============================================================== -->
727 <section>
728 <title>Adding existing DCPs</title>
729
730 <para>Adding existing DCPs to a DCP-o-matic film is a little different
731 to adding other types of content.  Most content has to be converted to
732 JPEG2000, the compression scheme used by DCPs, which is a very
733 time-consuming process.  Existing DCPs are already in JPEG2000 format
734 so do not require conversion.  This means that, provided no settings
735 such as crop are used on the DCP content, picture and sound data will
736 be passed from existing to new DCP unaltered.
737 </para>
738
739 <para>Encrypted DCPs that are added as content will require a KDM
740 targeted at DCP-o-matic so that DCP-o-matic can decrypt them.  You
741 should ask the creator of the imported DCP to provide a KDM for
742 DCP-o-matic's decryption certificate, which can be obtained by
743 clicking <guilabel>Export DCP decryption certificate...</guilabel>
744 from the <guilabel>Keys</guilabel> tab of the
745 <guilabel>Preferences</guilabel> dialog (see <xref
746 linkend="sec-prefs-keys"/>).
747 </para>
748
749 </section>
750
751 <!-- ============================================================== -->
752 <section>
753 <title>Content Properties</title>
754
755 <para>
756 Below the content list are the controls to set content properties.  To
757 adjust the properties for a piece of content, click its name in the
758 content list.  The content property controls will then become active
759 for that piece of content.
760 </para>
761
762 <para>
763 If you want to change the properties for multiple pieces of content at
764 the same time, select the content in the list by clicking the first
765 piece then clicking the other pieces with <keycap>shift</keycap> key
766 held down.  Note that not all settings can be changed in this way.
767 </para>
768
769 <para>
770 The content properties are split up into four sections:
771 <guilabel>Video</guilabel>, <guilabel>Audio</guilabel>,
772 <guilabel>Subtitles</guilabel> and <guilabel>Timing</guilabel>.  Not
773 all of these sections will be active for all content types.  The controls
774 in each section are described below.
775 </para>
776
777 </section>
778
779
780 <!-- ============================================================== -->
781 <section>
782 <title>Video</title>
783
784 <para>
785 The <guilabel>Video</guilabel> tab controls properties of the image, as shown in <xref linkend="fig-video-tab"/>.
786 </para>
787
788 <figure id="fig-video-tab">
789   <title>Video settings tab</title>
790   <mediaobject>
791     <imageobject>
792        <imagedata fileref="screenshots/video-tab&scs;"/>
793     </imageobject>
794   </mediaobject>
795 </figure>
796
797
798 <!-- ============================================================== -->
799 <section>
800 <title>Image type</title>
801
802 <para>
803 The first option on this tab is the &lsquo;type&rsquo; of the video.
804 This specifies how DCP-o-matic should interpret the video's image.
805 <guilabel>2D</guilabel> is the default; this just takes the video
806 image as a standard 2D frame.  The <guilabel>3D
807 left/right</guilabel> option tells DCP-o-matic to interpret the frame as a
808 left-right pair, as shown in <xref linkend="fig-3d-left-right"/>.
809 </para>
810
811 <figure id="fig-3d-left-right">
812   <title>3D left/right image type</title>
813   <mediaobject>
814     <imageobject>
815        <imagedata scale="100" fileref="diagrams/3d-left-right&dia;"/>
816     </imageobject>
817   </mediaobject>
818 </figure>
819
820 <para>
821 Alternatively the <guilabel>3D top/bottom</guilabel> option tells
822 DCP-o-matic to see the frame as a top-bottom pair, as shown in <xref
823 linkend="fig-3d-top-bottom"/>.
824 </para>
825
826 <figure id="fig-3d-top-bottom">
827   <title>3D top/bottom image type</title>
828   <mediaobject>
829     <imageobject>
830        <imagedata scale="100" fileref="diagrams/3d-top-bottom&dia;"/>
831     </imageobject>
832   </mediaobject>
833 </figure>
834
835 <para>
836 Another option is <guilabel>3D alternate</guilabel> which takes the
837 first frame of the content as for the left eye, the second for the
838 right eye, the third for the left, and so on.  Finally, you can
839 specify <guilabel>3D left only</guilabel> or <guilabel>3D right
840 only</guilabel> if this content contains only the the left or right
841 eye images.  This is useful when you have the left and right eye image
842 sets in different files; you can specify one content as <guilabel>3D
843 left only</guilabel> and another as <guilabel>3D right only</guilabel>
844 and DCP-o-matic will pick up the appropriate frames from each.
845 </para>
846
847 </section>
848
849
850 <!-- ============================================================== -->
851 <section>
852 <title>Filtering</title>
853
854 <para>
855 The &lsquo;filters&rsquo; settings allow you to apply various video
856 filters to the image.  These may be useful to try to improve
857 poor-quality sources like DVDs.  You can set up the filters by clicking the
858 <guilabel>Edit</guilabel> button next to the filters entry in the
859 setup area of the DCP-o-matic window; this opens the filters selector
860 as shown in <xref linkend="fig-filters"/>.
861 </para>
862
863 <figure id="fig-filters">
864   <title>Filters selector</title>
865   <mediaobject>
866     <imageobject>
867       <imagedata fileref="screenshots/filters&scs;"/>
868     </imageobject>
869   </mediaobject>
870 </figure>
871
872 <para>
873 After changing the filters setup, you will need to regenerate the DCP
874 to see the effect on the cinema screen.  The preview in DCP-o-matic
875 will update itself whenever filters are changed, though of course this
876 image is much smaller and of lower resolution than a projected image!
877 </para>
878 </section>
879
880
881
882 <!-- ============================================================== -->
883 <section>
884 <title>Colour conversion</title>
885
886 <para>
887 The <guilabel>Colour conversion</guilabel> setting specifies what
888 colour transforms and gamma correction DCP-o-matic will use when
889 converting the selected content into the XYZ colourspace for the DCP.
890 </para>
891
892 <para>
893 The easiest way to select the required conversion is to choose one of
894 DCP-o-matic's presets.  DCP-o-matic knows how to convert from four
895 common colourspaces: sRGB, Rec. 601, Rec. 709 and P3.  If you do not
896 know which preset you should use, refer to the suggestions in <xref
897 linkend="tab-colour-conversion"/>.
898 </para>
899
900 <table id="tab-colour-conversion">
901 <title>Suggested colour conversion settings</title>
902 <tgroup cols='2' align='left' colsep='1' rowsep='1'>
903 <colspec colwidth='1*'/>
904 <colspec colwidth='5*'/>
905 <tbody>
906 <row>
907 <entry>sRGB</entry><entry>Still images in RGB, e.g. photographs</entry>.
908 </row>
909 <row>
910 <entry>Rec. 601</entry><entry>Standard-definition content (fewer than about 1000 pixels across) including DVD rips.</entry>
911 </row>
912 <row>
913 <entry>Rec. 709</entry><entry>High-definition content including Blu-Ray rips.</entry>
914 </row>
915 <row>
916 <entry>P3</entry><entry>Content explicitly graded to P3.</entry>
917 </row>
918 </tbody>
919 </tgroup>
920 </table>
921
922 <para>
923 For other required colour conversions, and if you know what you are
924 doing, you can choose <guilabel>Custom</guilabel> which will open the full
925 colour conversion editing dialogue box:
926 </para>
927
928 <figure id="fig-colour-conversion">
929   <title>Dialogue box for custom colour conversion</title>
930   <mediaobject>
931     <imageobject>
932       <imagedata fileref="screenshots/colour-conversion&scs;"/>
933     </imageobject>
934   </mediaobject>
935 </figure>
936
937 <para>
938 Alternatively, choose <guilabel>None</guilabel> if your source files
939 are already in the XYZ colour space and require no conversion.
940 </para>
941
942 <para>
943 DCP-o-matic's colour conversion processes are discussed in much more
944 detail in a separate document <ulink
945 url="http://dcpomatic.com/manual/colour.pdf">colour.pdf</ulink>.
946 </para>
947
948 </section>
949
950 <!-- ============================================================== -->
951 <section>
952 <title>Other settings</title>
953
954 <para>
955 The <guilabel>crop</guilabel> settings can be used to crop your content,
956 which can be used to remove black borders from round the edges of DVD
957 images, for example.  The specified number of pixels will be trimmed
958 from each edge, and the content image in the right of the window will
959 be updated to show the effect of the crop.
960 </para>
961
962 <para>
963 The <guilabel>fade in</guilabel> and <guilabel>fade out</guilabel>
964 settings can be used to apply linear fades into and out of a piece of
965 content.  Specify the time for each, clicking <guilabel>Set</guilabel>
966 after making any changes.
967 </para>
968
969 <para>
970 The <guilabel>Scale to</guilabel> option governs the shape that
971 DCP-o-matic will scale the content's image into.  Select the aspect
972 ratio that your content should be presented in.
973 </para>
974
975 </section>
976
977 <!-- ============================================================== -->
978 <section>
979 <title>Video description</title>
980
981 <para>
982 At the bottom of the video tab is a short description of what will
983 happen to your video with the current settings.  In the example of
984 <xref linkend="fig-video-tab"/>, DCP-o-matic is telling you that the
985 video file is 1920x1080 pixels and it has square pixels (a pixel
986 aspect ratio of 1.00) hence its display aspect ratio is 1.78:1.  Since
987 the controls specify &lsquo;16.9&rsquo; for the ratio, DCP-o-matic
988 does not scale the image but pads it to the DCP's container ratio of
989 1.85:1.  For a 2K DCP this is 1998x1080 pixels.
990 </para>
991
992 <para>
993 This description also gives the frame rate of the content and what
994 will happen to it when it is played at the DCP's frame rate.  See
995 <xref linkend="ch-frame-rates"/> for details of DCP-o-matic's
996 frame-rate conversion.
997 </para>
998
999 </section>
1000
1001 </section>
1002
1003
1004 <!-- ============================================================== -->
1005 <section>
1006 <title>Audio</title>
1007
1008 <para>
1009 The <guilabel>Audio</guilabel> tab controls properties of the image, as shown in <xref linkend="fig-audio-tab"/>.
1010 </para>
1011
1012 <figure id="fig-audio-tab">
1013   <title>Audio settings tab</title>
1014   <mediaobject>
1015     <imageobject>
1016        <imagedata fileref="screenshots/audio-tab&scs;"/>
1017     </imageobject>
1018   </mediaobject>
1019 </figure>
1020
1021
1022 <!-- ============================================================== -->
1023 <section>
1024 <title>The audio map</title>
1025
1026 <para>
1027 The section at the bottom of the audio tab is the &lsquo;audio
1028 map&rsquo;.  This governs how sound from the content will be arranged
1029 in the DCP.
1030 </para>
1031
1032 <para>
1033 Down the left-hand side of the map is the list of audio channels in
1034 the currently-selected piece of content.  These are labelled with two
1035 numbers; the first is the stream index within the content and the
1036 second is the channel number within that stream.  Some content will
1037 have different streams for different languages or audio mixes.  Along
1038 the top is each channel in the DCP.  A green box means that the
1039 corresponding content channel will be copied into the corresponding
1040 DCP channel.
1041 </para>
1042
1043 <para>
1044 When content channels are copied into DCP channels they can be done
1045 with variable gain.  If, for example, you want to copy a channel
1046 as-is, you can set a gain of 0dB.  Alternatively, if you want to mix
1047 two channels into one, you may want to use a gain of -6dB on each one
1048 to prevent clipping when the two channels are added.
1049 </para>
1050
1051 <para>
1052 The green boxes of the audio mapping view tell you (very roughly) how
1053 much gain is applied to each channel.  A full-height box means 0dB
1054 (i.e. unity) gain.  Any less height indicates lower gain.
1055 </para>
1056
1057 <para>
1058 To map one channel to another with 0dB gain, click in the empty box
1059 and it will turn green to reflect the mapping.  A second click will
1060 turn the mapping back off.  To set some other gain, right-click on the
1061 box to open the gain menu.  This allows you to set
1062 <guilabel>Off</guilabel> (no mapping or negative infinity gain),
1063 <guilabel>Full</guilabel> (0dB gain), -6dB gain or
1064 <guilabel>Edit</guilabel> which allows you to set the required gain
1065 precisely.
1066 </para>
1067
1068 <para>
1069 Consider, for example, the case in <xref linkend="fig-audio-map-eg1"/>.
1070 </para>
1071
1072 <figure id="fig-audio-map-eg1">
1073   <title>Audio map example 1</title>
1074   <mediaobject>
1075     <imageobject>
1076        <imagedata fileref="screenshots/audio-map-eg1&scs;"/>
1077     </imageobject>
1078   </mediaobject>
1079 </figure>
1080
1081 <para>
1082 Here, we have two channels in the source which are mapped to left and
1083 right, respectively, in the DCP.  The full green boxes show that the
1084 mapping is at unity gain (0dB) in each case.  Imagine that we modify
1085 the settings to those shown in <xref linkend="fig-audio-map-eg2"/>
1086 </para>
1087
1088 <figure id="fig-audio-map-eg2">
1089   <title>Audio map example 2</title>
1090   <mediaobject>
1091     <imageobject>
1092        <imagedata fileref="screenshots/audio-map-eg2&scs;"/>
1093     </imageobject>
1094   </mediaobject>
1095 </figure>
1096
1097 <para>
1098 We now have the content's streams mapped to left and right and also
1099 mixed together and placed in the DCP's centre channel.  The smaller
1100 green boxes on the centre mappings show that those channels are added
1101 with some non-unity gain; you can see by hovering the mouse pointer
1102 over those boxes that the gain for content channels 1 and 2 is -6dB
1103 when being sent to the centre channel and 0dB when being sent to left
1104 and right.
1105 </para>
1106
1107 <figure id="fig-audio-map-eg3">
1108   <title>Audio map example 3</title>
1109   <mediaobject>
1110     <imageobject>
1111        <imagedata fileref="screenshots/audio-map-eg3&scs;"/>
1112     </imageobject>
1113   </mediaobject>
1114 </figure>
1115
1116 <para>
1117 As a final example, the map in <xref linkend="fig-audio-map-eg3"/>
1118 shows the mapping of a 5.1 source into a 5.1 DCP.
1119 </para>
1120
1121 </section>
1122
1123
1124 <!-- ============================================================== -->
1125 <section>
1126 <title>Other controls</title>
1127
1128 <para>
1129 &lsquo;Audio Gain&rsquo; is used to alter the volume of the
1130 soundtrack.  The specified gain (in dB) will be applied to each sound
1131 channel of your content before it is written to the DCP.
1132 </para>
1133
1134 <para>
1135 If you use a sound processor that DCP-o-matic knows about, it can help
1136 you calculate changes in gain that you should apply.  Say, for
1137 example, that you make a test DCP and find that you have to run it at
1138 volume 5 instead of volume 7 to get a good sound level in the screen.
1139 If this is the case, click the <guilabel>Calculate...</guilabel>
1140 button next to the audio gain entry, and the dialogue box in <xref
1141 linkend="fig-calculate-audio-gain"/> will open.
1142 </para>
1143
1144 <figure id="fig-calculate-audio-gain">
1145   <title>Calculating audio gain</title>
1146   <mediaobject>
1147     <imageobject>
1148       <imagedata fileref="screenshots/calculate-audio-gain&scs;"/>
1149     </imageobject>
1150   </mediaobject>
1151 </figure>
1152
1153 <para>
1154 For our example, put 5 in the first box and 7 in the second and click
1155 <guilabel>OK</guilabel>.  DCP-o-matic will calculate the audio gain
1156 that it should apply to make this happen.  Then you can re-make the
1157 DCP (this will be reasonably fast, as the video data will already have
1158 been done) and it should play back at the correct volume with 7 on
1159 your sound-rack fader.
1160 </para>
1161
1162 <para>
1163 Current versions of DCP-o-matic only know about the Dolby CP650 and
1164 CP750.  If you use a different sound processor, and know the gain
1165 curve of its volume control, <ulink url="mailto:carl@dcpomatic.com">get in
1166 touch</ulink>.
1167 </para>
1168
1169 <para>
1170 <guilabel>Audio Delay</guilabel> is used to adjust the synchronisation
1171 between audio and video.  A positive delay will move the audio later
1172 with respect to the video, and a negative delay will move it earlier.
1173 </para>
1174
1175 </section>
1176 </section>
1177
1178
1179 <!-- ============================================================== -->
1180 <section>
1181 <title>Subtitles</title>
1182
1183 <para>
1184 The subtitles tab contains settings related to subtitles in your
1185 content, as shown in <xref linkend="fig-subtitles-tab"/>.
1186 </para>
1187
1188 <figure id="fig-subtitles-tab">
1189   <title>Subtitle settings tab</title>
1190   <mediaobject>
1191     <imageobject>
1192        <imagedata fileref="screenshots/subtitles-tab&scs;"/>
1193     </imageobject>
1194   </mediaobject>
1195 </figure>
1196
1197 <para>
1198 DCP-o-matic will extract subtitles from the content, if present, and
1199 they can be &lsquo;burnt into&rsquo; the DCP (that is, they are
1200 included in the image and not overlaid by the projector) or included
1201 as a separate subtitle &lsquo;asset&rsquo; within your DCP (in which
1202 case the projector overlays them onto the image on playback).  The
1203 difference between these two arrangements is illustrated by <xref
1204 linkend="fig-burn-in"/> and <xref linkend="fig-discrete"/>
1205 </para>
1206
1207 <figure id="fig-burn-in">
1208   <title>Burnt-in subtitles</title>
1209   <mediaobject>
1210     <imageobject>
1211        <imagedata scale="100" fileref="diagrams/burn-in&dia;"/>
1212     </imageobject>
1213   </mediaobject>
1214 </figure>
1215
1216 <figure id="fig-discrete">
1217   <title>Separate subtitles</title>
1218   <mediaobject>
1219     <imageobject>
1220        <imagedata scale="100" fileref="diagrams/discrete&dia;"/>
1221     </imageobject>
1222   </mediaobject>
1223 </figure>
1224
1225 <para>
1226 The advantage of separate subtitles is that the same video content can
1227 be used for DCPs in many different languages.  This means that only a
1228 small text file needs to be changed for each target language, rather
1229 than a large video file.  It also means that the time-consuming video
1230 encoding need only be done once for the project rather than once for
1231 every language.
1232 </para>
1233
1234 <para>
1235 Note that subtitles come in two types: text and bitmap.  Text
1236 subtitles are expressed as plain text and can be either burnt into the
1237 image or included as a separate subtitle asset within the DCP.  Bitmap
1238 subtitles, on the other hand, are expressed as pre-rendered bitmaps.
1239 They cannot (yet) be added to the DCP as a separate asset and must be
1240 burnt into the image.
1241 </para>
1242
1243 <para>
1244 Select the <guilabel>Use Subtitles</guilabel> check-box to enable
1245 these subtitles.
1246 </para>
1247
1248 <para>
1249 Select the <guilabel>Burn subtitles into image</guilabel> check-box to
1250 burn these subtitles into the image; if this is not ticked the
1251 subtitles will be included separately in the DCP to be rendered by the
1252 projector.
1253 </para>
1254
1255 <para>
1256 The <guilabel>X Offset</guilabel> and <guilabel>Y Offset</guilabel>
1257 controls move the subtitles around within the image.  The offsets are
1258 expressed as a percentage of the video frame size; 100% X offset is
1259 the entire width of the frame, and 100% Y offset is the entire height.
1260 Hence, to move the subtitles down by half the frame height you would
1261 use a Y offset of 50%.
1262 </para>
1263
1264 <para>
1265 The <guilabel>X Scale</guilabel> and <guilabel>Y Scale</guilabel>
1266 controls scale the subtitles.  Scale values of 1 make the subtitles
1267 the same size (relative to the size of the image) as they are on the
1268 original.  Values lower than 1 make them smaller, and values higher
1269 make them larger.  You can stretch the subtitles in either direction
1270 by specifying different values for X and Y scale.  Subtitles from DVD
1271 and Blu Ray sources are frequently larger (relative to the video
1272 frame) than those typically used for DCP, so it is often useful to
1273 scale such subtitles down using these controls.
1274 </para>
1275
1276 <para>
1277 The <guilabel>Stream</guilabel> control changes the subtitle stream
1278 that is used when the content has more than one.
1279 </para>
1280
1281 </section>
1282
1283
1284 <!-- ============================================================== -->
1285 <section>
1286 <title>Timing</title>
1287
1288 <para>
1289 The timing tab contains settings related to the timing of your
1290 content, as shown in <xref linkend="fig-timing-tab-detail"/>.
1291 </para>
1292
1293 <figure id="fig-timing-tab-detail">
1294   <title>Timing settings tab</title>
1295   <mediaobject>
1296     <imageobject>
1297        <imagedata fileref="screenshots/timing-tab&scs;"/>
1298     </imageobject>
1299   </mediaobject>
1300 </figure>
1301
1302 <para>
1303 Most of the timing tab's entries are <emphasis>time-codes</emphasis>.
1304 These are expressed as four numbers, as shown in <xref
1305 linkend="fig-timecode"/>.
1306 </para>
1307
1308 <figure id="fig-timecode">
1309   <title>Timecode</title>
1310   <mediaobject>
1311     <imageobject>
1312        <imagedata scale="100" fileref="diagrams/timecode&dia;"/>
1313     </imageobject>
1314   </mediaobject>
1315 </figure>
1316
1317 <para>
1318 <guilabel>Position</guilabel> is the time at which this piece of
1319 content should start within the DCP.  In most cases, this will be
1320 <code>0:0:0:0</code> to make the content start at the beginning of the
1321 DCP.
1322 </para>
1323
1324 <para>
1325 <guilabel>Full length</guilabel> is the length of the piece of
1326 content.  This can only be set for still-image content: for video or
1327 sound content, it is fixed by the nature of the content file.  If
1328 still-image content is being used you can set the length for which it
1329 should be displayed using this control.
1330 </para>
1331
1332 <para>
1333 <guilabel>Trim from start</guilabel> specifies the amount that should be trimmed from the start of the content.
1334 </para>
1335
1336 <para>
1337 <guilabel>Trim from end</guilabel> specifies the amount that should be trimmed from the end of the content.
1338 </para>
1339
1340 <para>
1341 <guilabel>Play length</guilabel> indicates how long this piece of
1342 content will be once the trims have been applied.  This will be equal
1343 to the full length minus <guilabel>trim-from-start</guilabel> and minus <guilabel>trim-from-end</guilabel>.
1344 </para>
1345
1346 <para>
1347 <guilabel>Video frame rate</guilabel> specifies the frame rate for
1348 still-image content.  It can also be used to override the detected
1349 frame rate of other content if DCP-o-matic has got it wrong.
1350 </para>
1351
1352 <para>
1353 Each timecode control has a <guilabel>Set</guilabel> which you should
1354 click when you have entered a new value for a timecode.  The
1355 <guilabel>Set</guilabel> button will make DCP-o-matic take account of
1356 any changes to the corresponding timecode.
1357 </para>
1358
1359 </section>
1360
1361
1362 <!-- ============================================================== -->
1363 <section>
1364 <title>Video processing pipeline</title>
1365
1366 <para>
1367 This section gives a little more detail about how DCP-o-matic process
1368 video as it takes it from a source and puts it into a DCP.
1369 </para>
1370
1371 <para>
1372 Consider, as a somewhat over-the-top example, that we have a 720 x 576
1373 image which is letterboxed with 36 black pixels each at the top and
1374 bottom, and the video content within the letterbox should be presented
1375 in the DCP at ratio of 2.39:1 within a 1.85:1 frame (such as might
1376 happen with a trailer).  The source image is shown in <xref
1377 linkend="fig-pipeline1"/>.
1378 </para>
1379
1380 <figure id="fig-pipeline1">
1381   <title>Example image to demonstrate video processing</title>
1382   <mediaobject>
1383     <imageobject>
1384        <imagedata scale="100" fileref="diagrams/pipeline1&dia;"/>
1385     </imageobject>
1386   </mediaobject>
1387 </figure>
1388
1389 <para>
1390 DCP-o-matic runs through the following steps when preparing an image for a DCP:
1391 </para>
1392
1393 <itemizedlist>
1394 <listitem>Crop</listitem>
1395 <listitem>Scale</listitem>
1396 <listitem>Place in container</listitem>
1397 </itemizedlist>
1398
1399 <para>
1400 First, some amount of the image can be cropped.  This is almost always
1401 used to remove black borders (letterboxing and/or pillarboxing) around
1402 images.
1403 </para>
1404
1405 <para>
1406 In our example image, we would use 36 pixels of crop from the top and
1407 bottom.  This would give the new image shown in <xref
1408 linkend="fig-pipeline2"/>.
1409 </para>
1410
1411 <figure id="fig-pipeline2">
1412   <title>Example image after cropping</title>
1413   <mediaobject>
1414     <imageobject>
1415        <imagedata scale="100" fileref="diagrams/pipeline2&dia;"/>
1416     </imageobject>
1417   </mediaobject>
1418 </figure>
1419
1420 <para>
1421 The next step is to scale the image.  Since this content should be
1422 presented in a 2.39:1 aspect ratio inside a 1.85:1 DCP we would select
1423 <guilabel>Scope</guilabel> from the <guilabel>Scale to</guilabel>
1424 option in the <guilabel>Video</guilabel> tab and
1425 <guilabel>Flat</guilabel> from the <guilabel>Container</guilabel>
1426 option in the <guilabel>DCP</guilabel> tab.
1427 </para>
1428
1429 <para>The <guilabel>Scale to</guilabel> option should always be set to
1430 the aspect ratio at which the content should be seen.  The
1431 <guilabel>Container</guilabel> option should be set to the preset that
1432 you want to use on the projector.  Of course, these two settings will
1433 often be the same.
1434 </para>
1435
1436 <para>
1437 Given the scaling and container information, DCP-o-matic will look at
1438 the DCP's container size, and then scale the source image up until one
1439 or both of its dimensions (width, height or both) fits the size of the
1440 container, all the while preserving the desired aspect ratio.
1441 </para>
1442
1443 <para>
1444 In our example here, the DCP's container is specified as 1.85:1 (so
1445 that the DCP will play back correctly using the projector's
1446 &lsquo;Flat&rsquo; preset).  At 2K, 1.85:1 is 1998 pixels by 1080.
1447 Scaling the source up whilst preserving its 1.85:1 aspect ratio will
1448 result in the image hitting the sides of the container first, at a
1449 size of 1998 x 836.  This gives us a new version of the image as shown
1450 in <xref linkend="fig-pipeline3"/>.
1451 </para>
1452
1453 <figure id="fig-pipeline3">
1454   <title>Example image after cropping and scaling</title>
1455   <mediaobject>
1456     <imageobject>
1457        <imagedata scale="100" fileref="diagrams/pipeline3&dia;"/>
1458     </imageobject>
1459   </mediaobject>
1460 </figure>
1461
1462 <para>
1463 The final step is to place the image into the DCP.  In this case,
1464 since we have a 2.39:1 image that should be presented as a 1.85:1 DCP,
1465 we have set the <guilabel>container</guilabel> in the
1466 <guilabel>DCP</guilabel> tab to be Scope.  Since the content has been
1467 scaled to 1998 x 836, and a Flat container is 1998 x 1080, there will
1468 be some black bars at the top and bottom of the image.  DCP-o-matic
1469 shares out this black equally, as shown in <xref
1470 linkend="fig-pipeline3"/>.
1471 </para>
1472
1473 <figure id="fig-pipeline4">
1474   <title>Example image in the DCP</title>
1475   <mediaobject>
1476     <imageobject>
1477        <imagedata scale="100" fileref="diagrams/pipeline4&dia;"/>
1478     </imageobject>
1479   </mediaobject>
1480 </figure>
1481
1482 </section>
1483
1484 </chapter>
1485
1486 <chapter xml:id="ch-dcp" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
1487 <title>DCP settings</title>
1488
1489 <para>
1490 This chapter describes the settings that apply to the whole DCP.  The
1491 controls for these settings are in the <guilabel>DCP</guilabel> tab of
1492 the main window, as shown in <xref linkend="fig-dcp-tab"/>.
1493 </para>
1494
1495 <figure id="fig-dcp-tab">
1496   <title>DCP settings tab</title>
1497   <mediaobject>
1498     <imageobject>
1499        <imagedata fileref="screenshots/dcp-tab&scs;"/>
1500     </imageobject>
1501   </mediaobject>
1502 </figure>
1503
1504 <para>
1505 The first thing here is the name.  This is generally set to the title
1506 of the film that is being encoded.  If <guilabel>Use ISDCF
1507 name</guilabel> is not ticked, the name that you specify will be used
1508 as-is for the name of the DCP.  If <guilabel>Use ISDCF name</guilabel>
1509 is ticked, the name that you enter will be used as part of a
1510 ISDCF-compliant name.
1511 </para>
1512
1513 <para>
1514 Underneath the name field is a preview of the name that the DCP will
1515 get.  To use a ISDCF-compliant name, tick the <guilabel>Use ISDCF
1516 name</guilabel> check-box.  The ISDCF name will be composed using details
1517 of your content's soundtrack, the current date and other things that
1518 can be specified in the ISDCF name details dialogue box, which you can
1519 open by clicking on the <guilabel>Details</guilabel> button.
1520 </para>
1521
1522 <para>
1523 If you want to take the ISDCF-compliant name that DCP-o-matic
1524 generates and modify it, click <guilabel>Copy as name</guilabel> and
1525 the ISDCF name will be copied into the <guilabel>Name</guilabel> box.
1526 You can then edit it as you wish.  The DCP name should not matter (in
1527 that it should not affect how the DCP ingests or plays) but
1528 projectionists will appreciate it if you use the standard naming
1529 scheme as it makes it easier to identify details of the content.
1530 </para>
1531
1532 <para>
1533 The <guilabel>Content Type</guilabel> option can be
1534 &lsquo;feature&rsquo;, &lsquo;trailer&rsquo; or whatever; select the
1535 required type from the drop-down list.  On some projection systems
1536 this will affect where your content appears in the projector's server
1537 user interface, so take care to select an appropriate type.
1538 </para>
1539
1540 <para>
1541 The <guilabel>Signed</guilabel> check-box sets whether or not the DCP
1542 is signed.  This is rarely important; if in doubt, tick it.
1543 </para>
1544
1545 <para>
1546 The <guilabel>Encrypted</guilabel> check-box will set whether the DCP
1547 should be encrypted or not.  If this is ticked, the DCP will require a
1548 KDM to play back.  Encryption is discussed in <xref
1549 linkend="ch-encryption"/>.
1550 </para>
1551
1552 <para>
1553 If you use encryption DCP-o-matic will generate a random encryption
1554 key for you.  To specify your own key, click the
1555 <guilabel>Edit..</guilabel> button next to the key.
1556 </para>
1557
1558 <para>
1559 The <guilabel>Reels</guilabel> and <guilabel>Reel length</guilabel>
1560 controls specify how the DCP will be split up into
1561 &lsquo;reels&rsquo;.  See <xref linkend="sec-reels"/> below.
1562 </para>
1563
1564 <para>
1565 The <guilabel>Standard</guilabel> option specifies which of the two
1566 DCP standards DCP-o-matic should use.  If in doubt, use SMPTE (the
1567 more modern of the two).
1568 </para>
1569
1570 <para>
1571 At the bottom of the DCP tab are a further two tabs, one each to
1572 contain the settings for the DCP's video and audio parts.
1573 </para>
1574
1575 <para>
1576 The <guilabel>Container</guilabel> option sets the ratio of the image
1577 in the DCP.  If this ratio is different to the ratio used for any
1578 content, DCP-o-matic will pad the content with black.  In simple cases
1579 this should be set to the same ratio as that for the the primary piece
1580 of video content.  Alternatively, you might want to pillarbox a small
1581 format into a Flat container: in this case, select the small format
1582 for the content's ratio and &lsquo;Flat&rsquo; for the DCP.
1583 </para>
1584
1585 <para>
1586 The <guilabel>Frame Rate</guilabel> control sets the frame rate of
1587 your DCP.  This can be a little tricky to get right.  Ideally, you
1588 want it to be the same as the video content that you are using.  If it
1589 is not the same, DCP-o-matic must resort to some tricks to alter your
1590 content to fit the specified frame rate.  Frame rates are discussed in
1591 more detail in <xref linkend="ch-frame-rates"/>.
1592 </para>
1593
1594 <para>
1595 The <guilabel>Use best</guilabel> button sets the DCP video frame rate
1596 to what DCP-o-matic thinks is the best given the content that you have
1597 added.
1598 </para>
1599
1600 <para>
1601 The <guilabel>3D</guilabel> button will set your DCP to 3D mode if it
1602 is checked.  A 3D DCP will then be created, and any 2D content will be
1603 made 3D compatible by repeating the same frame for both left and right
1604 eyes.  A 3D DCP can be played back on many 3D systems (e.g. Dolby 3D,
1605 Real-D etc.) but not on a 2D system.
1606 </para>
1607
1608 <para>
1609 The <guilabel>Resolution</guilabel> tab allows you to choose the
1610 resolution for your DCP.  Use 2K unless you have content that is of
1611 high enough resolution to be worth presenting in 4K.
1612 </para>
1613
1614 <para>
1615 The <guilabel>JPEG2000 bandwidth</guilabel>; setting changes how big
1616 the final image files used within the DCP will be.  Larger numbers
1617 will give better quality, but correspondingly larger DCPs.  The
1618 bandwidth can be between 50 and 250 megabits per second (Mbit/s).
1619 Most commercial DCPs use bit rates between 75 and 125 MBit/s.
1620 </para>
1621
1622 <para>
1623 The <guilabel>Audio Channels</guilabel> control sets the number of
1624 audio channels that the DCP will have.  If the DCP has any channels
1625 for which there is no content audio they will be replaced by silence.
1626 You can only set an even number of channels here, since that is
1627 required by the DCI standard.  If you want an odd number of channels,
1628 set the DCP channel count to one greater than you need and the
1629 unused channel will be filled with silence.
1630 </para>
1631
1632 <para>
1633 The <guilabel>Processor</guilabel> control allows you to select a
1634 process to apply to the audio before it goes into the DCP.  Two processes are currently provided:
1635 </para>
1636
1637 <itemizedlist>
1638 <listitem>Mid-side decode &mdash; this will take a L/R
1639 stereo input and extract the common part (corresponding to the
1640 &lsquo;Mid&rsquo; in a mid-side signal) into the DCP's centre channel.
1641 The remaining L/R parts will be kept in the L/R channels of the DCP.
1642 This may be useful to make near-field L/R mixes more compatible with
1643 cinema audio systems.</listitem>
1644 <listitem>Stereo to 5.1 up-mixer A &mdash; this will take a stereo input and up-mix it to &lsquo;fake&rsquo; 5.1.  The input L/R are treated as follows:
1645 <itemizedlist>
1646 <listitem>DCP L is input L bandpass-filtered between 1.9kHz and 4.8kHz.</listitem>
1647 <listitem>DCP R is input R bandpass-filtered between 1.9kHz and 4.8kHz.</listitem>
1648 <listitem>DCP C is input L mixed with input R, taken down by 3dB and then bandpass-filtered between 150Hz and 1.9kHz.</listitem>
1649 <listitem>DCP Lfe is input L mixed with input R, taken down by 3dB and then bandpass-filtered between 20Hz and 150Hz.</listitem>
1650 <listitem>DCP Ls is input L bandpass-filtered between 4.8kHz and 20kHz.</listitem>
1651 <listitem>DCP Rs is input R bandpass-filtered between 4.8kHz and 20kHz.</listitem>
1652 </itemizedlist>
1653 <para>
1654 This upmixing algorithm is due to Gérald Maruccia.
1655 </para>
1656 </listitem>
1657 <listitem>Stereo to 5.1 up-mixer B &mdash; this uses a different approach:
1658 <itemizedlist>
1659   <listitem>DCP L is input L.</listitem>
1660   <listitem>DCP R is input R.</listitem>
1661   <listitem>DCP C is input L + input R taken down by 3dB.</listitem>
1662   <listitem>DCP Lfe is DCP C bandpass filtered between 20Hz and 150Hz.</listitem>
1663   <listitem>DCP Ls and Rs are input L - input R with a 20ms delay.</listitem>
1664 </itemizedlist>
1665 </listitem>
1666 </itemizedlist>
1667
1668 <!-- ============================================================== -->
1669 <section xml:id="sec-reels">
1670 <title>Reels</title>
1671
1672 <para>
1673 A &lsquo;reel&rsquo; in a DCP is a subsection of the DCP, in the same
1674 way as a 35mm reel is a section of a film.  A DCP can be split up into
1675 any number of reels and the joins (the equivalent to 35mm splices)
1676 between the reels are seamless.
1677 </para>
1678
1679 <para>
1680 There is no reason why you can't just use a single reel for the whole
1681 of your DCP, as there is no limit on their length.  Many people choose
1682 to do this.
1683 </para>
1684
1685 <para>
1686 There are, however, some possible advantages of splitting things up
1687 into reels:
1688 </para>
1689
1690 <itemizedlist>
1691 <listitem>
1692 The picture, sound and subtitle data of the DCP will be
1693 split up into more smaller files on disk, rather than fewer larger
1694 files.  This can be useful if the DCP is to be transferred on storage
1695 that have file size limits.  The FAT32 filesystem, for example, can
1696 only hold files smaller than 4Gb.  A 6Gb DCP with a single reel could
1697 not be transferred using a FAT32-formatted disk.  If that DCP were
1698 split up into two 3Gb reels it could be transferred.
1699 </listitem>
1700 <listitem>
1701 It is easier to re-use DCP components if they are in reels.  Consider,
1702 for example, a film company who wants to put a 5 second ident onto the
1703 beginning of DCPs that they distribute.  If they receive a feature
1704 film DCP they can modify it to add their ident as a separate reel.
1705 This is easier than attaching the picture data in the DCP.
1706 </listitem>
1707 </itemizedlist>
1708
1709 <para>
1710 DCP-o-matic offers three options for setting up the reels in your DCP:
1711 single reel, split by video content or custom.
1712 </para>
1713
1714 <para>
1715 <guilabel>Single reel</guilabel>, as its name suggests, keeps the whole DCP as one reel.
1716 This is a perfectly good option if you have no particular reason to
1717 need reels.
1718 </para>
1719
1720 <para>
1721 <guilabel>Split by video content</guilabel> puts each piece of source
1722 video content in its own reel, as shown in <xref linkend="fig-reels-by-video"/>.
1723 </para>
1724
1725 <figure id="fig-reels-by-video">
1726 <title>Making reels using split by video content</title>
1727 <mediaobject><imageobject><imagedata scale="100" fileref="diagrams/reels-by-video&dia;"/></imageobject></mediaobject>
1728 </figure>
1729
1730 <para>
1731 Here we have three video files (<code>ident.mp4</code>,
1732 <code>feature.ts</code> and <code>cred.mov</code>).  With
1733 <guilabel>split by video content</guilabel> DCP-o-matic makes a new
1734 reel to hold each video file.
1735 </para>
1736
1737 <para>
1738 <guilabel>Custom</guilabel> splits reels by the size of the files that
1739 will make up their video content.  With <guilabel>Custom</guilabel>
1740 you must specify a reel length in Gb.  Then no file in the DCP will be larger than this reel length.
1741 </para>
1742
1743 </section>
1744
1745
1746 <!-- ============================================================== -->
1747 <section>
1748 <title>Show audio</title>
1749
1750 <para>
1751 The <guilabel>Show Audio</guilabel> button will instruct DCP-o-matic
1752 to examine the audio in your content and plot a graph of its level
1753 over time.  This can be useful for getting a rough idea of how loud
1754 the sound will be in the cinema auditorium.  A typical plot is shown
1755 in <xref linkend="fig-audio-plot"/>
1756 </para>
1757
1758 <figure id="fig-audio-plot">
1759   <title>Audio plot</title>
1760   <mediaobject>
1761     <imageobject>
1762        <imagedata fileref="screenshots/audio-plot&scs;"/>
1763     </imageobject>
1764   </mediaobject>
1765 </figure>
1766
1767 <para>
1768 The plot gives the audio level (vertical axis, in dB) with time
1769 (horizontal axis).  0dB represents full scale, so if there is anything
1770 near this you are in danger of clipping the projector's audio outputs.
1771 </para>
1772
1773 <para>
1774 There are two plot types: the peak level and the RMS, which can be
1775 shown or hidden using the check-boxes on the right hand side of the
1776 window.
1777 </para>
1778
1779 <para>
1780 The channel check-boxes will show or hide the plot(s) for
1781 the corresponding channels in the DCP.
1782 </para>
1783
1784 <para>
1785 The smoothing slider applies a variable degree of temporal smoothing
1786 to the plots, which can make them easier to read in some cases.
1787 </para>
1788
1789 <para>
1790 Obviously the audio plot is no substitute for listening in an
1791 auditorium, but it can be useful to get levels in the right rough area.
1792 </para>
1793
1794 </section>
1795
1796 </chapter>
1797
1798 <chapter xml:id="ch-encryption" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
1799 <title>Encryption</title>
1800
1801 <para>
1802 It is not required that DCPs be encrypted, but they can be.  This
1803 chapter discusses the basic principles of DCP encryption, and how
1804 DCP-o-matic can create encrypted DCPs and KDMs for them.
1805 </para>
1806
1807
1808 <!-- ============================================================== -->
1809 <section>
1810 <title>Basics</title>
1811
1812 <para>
1813 DCPs can be encrypted.  This means that the picture and sound data are
1814 encoded in such a way that only cinemas &lsquo;approved&rsquo; by the
1815 DCP's creators can read them.  In particular, this means copies of the
1816 DCP can be distributed by insecure means: if an ne'er-do-well called
1817 Mallory obtains a hard drive containing an encrypted DCP, there is no
1818 way that he can play it.  Only those cinemas who receive a correct key
1819 delivery message (KDM) can play the DCP.
1820 </para>
1821
1822
1823 <!-- ============================================================== -->
1824 <section>
1825 <title>How it works (in a nutshell)</title>
1826
1827 <para>
1828 This section attempts to summarise how DCP encryption works.  You can
1829 skip it if you like.  You may need some knowledge of encryption
1830 methods to understand it.
1831 </para>
1832
1833 <para>
1834 We suppose that we are trying to send a DCP to
1835 Alice's cinema without a troublemaker called Mallory being able to
1836 watch it himself.
1837 </para>
1838
1839 <para>
1840 There are two main families of encryption techniques.  The first,
1841 symmetric-key encryption, allows us to encode some data using some
1842 numeric key.  After encoding, no-one can decode the data unless they
1843 know the key.
1844 </para>
1845
1846 <para>
1847 The first step in a DCP encryption is to encode its data with some key
1848 using symmetric-key encryption.  The encrypted DCP can then be sent
1849 anywhere, safe in the knowledge that even if Mallory got hold of a
1850 copy, he could not decrypt it.
1851 </para>
1852
1853 <para>
1854 Alice, however, needs to know the key so she can play the DCP in her
1855 cinema.  A simple approach might be for us to send Alice the key.
1856 However, if Mallory can intercept the DCP, he might also be able to
1857 intercept our communication of the key to Alice.  Furthermore, if Alice
1858 happened to know Mallory, she could just send him a copy of the key.
1859 </para>
1860
1861 <para>
1862 The clever bit in the process requires the use of public-key
1863 encryption.  With this technique we can encrypt a block of data using
1864 some &lsquo;public&rsquo; key.  That data can then only be decrypted
1865 using a corresponding private key which is
1866 <emphasis>different</emphasis> to the public key.  The private and
1867 public keys form a pair which are related mathematically, but it is
1868 extremely hard (or rather, virtually impossible) to derive the private
1869 key from the public key.
1870 </para>
1871
1872 <para>
1873 Public-key encryption allows us to distribute the DCP's key to Alice
1874 securely.  The manufacturer of Alice's projector generates a public
1875 and private key.  They hide the private key deep inside the bowels of
1876 the projector (inside an integrated circuit) where no-one can read it.
1877 They then make the public key available to anyone who is interested.
1878 </para>
1879
1880 <para>
1881 We take our DCP's symmetric key and encrypt it using the public key of
1882 Alice's projector.  We send the result to Alice over email (using a
1883 format called a Key Delivery Message, or KDM).  Her projector then
1884 decrypts our message using its private key, yielding the magic
1885 symmetric key which can decrypt the DCP.
1886 </para>
1887
1888 <para>
1889 If is fine if Mallory intercepts our email to Alice, since the only
1890 key which can decrypt the message is the private key buried inside
1891 Alice's projector.  The projector manufacturer is very careful that
1892 no-one ever finds out what this key is.  Our DCP is secure: only Alice
1893 can play it back, since only her projector knows the key (even Alice
1894 does not).
1895 </para>
1896
1897 </section>
1898 </section>
1899
1900
1901 <!-- ============================================================== -->
1902 <section>
1903 <title>Encryption using DCP-o-matic</title>
1904
1905 <para>
1906 There are two steps to distributing an encrypted DCP.  First, the
1907 DCP's data must be encrypted, and secondly KDMs must be generated for
1908 those cinemas that are allowed to play the DCP.
1909 </para>
1910
1911 <para>
1912 The first part is simple: ticking the <guilabel>Encrypted</guilabel>
1913 box in the <guilabel>DCP</guilabel> tab of DCP-o-matic will encrypt
1914 the DCP using a random key that DCP-o-matic generates.  The key will
1915 be written to the film's metadata file, which should be kept
1916 secure.
1917 </para>
1918
1919 <para>
1920 A DCP that is generated with the <guilabel>Encrypted</guilabel> box
1921 ticked will not play on any projector as-is (it will be marked as
1922 &lsquo;locked&rsquo;, or whatever the projector manufacturer's term
1923 is).
1924 </para>
1925
1926 <para>
1927 The second part is to generate KDMs for the cinemas that you wish to
1928 allow to play your DCP.  There are two approaches to this within
1929 DCP-o-matic: using the project, or using a DKDM.  These are now
1930 described in turn.
1931 </para>
1932
1933 <section>
1934 <title>Creating KDMs from a DCP-o-matic project</title>
1935
1936 <para>
1937 You can create KDMs from inside a DCP-o-matic project using the
1938 <guilabel>Make KDMs</guilabel> option on the <guilabel>Jobs</guilabel>
1939 menu.  This will open the KDM dialogue box, as shown in <xref
1940 linkend="fig-kdm"/>.
1941 </para>
1942
1943 <figure id="fig-kdm">
1944   <title>KDM dialog</title>
1945   <mediaobject>
1946     <imageobject>
1947       <imagedata fileref="screenshots/kdm&scs;"/>
1948     </imageobject>
1949   </mediaobject>
1950 </figure>
1951
1952 <para>
1953 In order to generate KDMs for a particular projector, you need to know
1954 its <emphasis>certificate</emphasis>.  These are usually made
1955 available by the projector manufacturers as text files with a
1956 <code>.pem</code> extension.
1957 </para>
1958
1959 <para>
1960 DCP-o-matic can store these certificates to make life easier.  It
1961 stores details of cinemas and screens within those cinemas.  Each
1962 screen has a certificate for its projector (and optionally
1963 certificates for other trusted devices, such as the sound processor).
1964 DCP-o-matic can generate KDMs for any screens that it knows about.
1965 </para>
1966
1967 <para>
1968 To add a cinema, click <guilabel>Add Cinema...</guilabel>.  This opens
1969 a dialogue box into which you can enter the cinema's name, and
1970 optionally an email address.  This email address can be used to
1971 get DCP-o-matic to deliver KDMs via email.
1972 </para>
1973
1974 <para>
1975 Once you have added a cinema, select it by clicking on its name, then
1976 click <guilabel>Add Screen...</guilabel>.  The resulting dialogue
1977 allows you to enter a name for the screen and load in its certificate
1978 from a file.  The certificate should be in SHA256 PEM format.
1979 </para>
1980
1981 <para>
1982 Alternatively, certificates for projection systems made by some
1983 manufacturers can be downloaded from databases provided by the
1984 manufacturer.  Currently this is supported for Doremi and Dolby
1985 equipment.  If you are targeting a screen with equipment by one of
1986 these manufacturers you can click <guilabel>Download</guilabel> then
1987 enter the serial number of the server in the screen and click
1988 <guilabel>Download</guilabel> again and, all being well, the certificate
1989 will be fetched.
1990 </para>
1991
1992 <para>
1993 Using the download system you will need to know the serial number of
1994 the media server in use in the screen.  Most cinema projection or
1995 technical departments will know these serial numbers.
1996 </para>
1997
1998 <para>
1999 Note that the reliability of the manufacturers' certificate databases
2000 cannot be guaranteed.  It is vital that KDMs are tested by the
2001 destination cinema will in advance of show time to identify any
2002 problems.
2003 </para>
2004
2005 <para>
2006 Once you have set up all the screens that you need KDMs for, select
2007 the CPL that you want to create the KDM for.  You can use the
2008 drop-down list to select the CPLs in the current film project, or load
2009 a CPL from somewhere else.  Select the cinemas and/or screens that you
2010 want KDMs for and fill in the start and end dates and times.
2011 </para>
2012
2013 <para>
2014 You must also select the type of KDM that you want to generate.  If in
2015 doubt, use <guilabel>Modified Transitional 1</guilabel>.
2016 </para>
2017
2018 <para>
2019 Finally, choose what you want to do with the KDMs.  They can be
2020 written to disk, to a location that you can specify by clicking
2021 <guilabel>Browse</guilabel>.  Alternatively, if you choose
2022 <guilabel>Send by email</guilabel> the KDMs will be zipped up and
2023 emailed to the appropriate cinema email addresses.  Click OK to
2024 generate the KDMs.
2025 </para>
2026
2027 </section>
2028
2029 <section>
2030 <title>Creating KDMs using a DKDM</title>
2031 </section>
2032
2033 <para>
2034 It can be inconvenient to need a whole DCP-o-matic project just to
2035 create KDMs for its film.  Perhaps you want to archive the project to
2036 save space, or create KDMs on a different machine.  In such situations
2037 it is easier to use a DKDM.  This is a normal KDM, but instead of
2038 begin targeted at a projection system (to allow it to decrypt the
2039 content) it is targeted at a particular users's certificate.  This
2040 means that the certificate owner can create new KDMs for other users.
2041 The DKDM holds everything that is required to create further KDMs.
2042 </para>
2043
2044 <para>
2045 Sometimes it is useful to create DKDMs that can be used by
2046 DCP-o-matic.  If you create such a DKDM you can keep it and then, at
2047 any point in the future, use DCP-o-matic's standalone KDM creator to
2048 make KDMs for the DKDM's film for any cinema.
2049 </para>
2050
2051 <para>
2052 In other cases a DKDM is sent to a 3rd party so that they can create
2053 KDMs for your films.  This can be useful if, for example, you have a
2054 distributor who provides 24-hour KDM support to cinemas and can create
2055 KDMs for anybody that requires them at short notice.
2056 </para>
2057
2058 <para>
2059 To create a DKDM for DCP-o-matic, open your encrypted project and
2060 select <guilabel>Make DKDM for DCP-o-matic...</guilabel> from the
2061 <guilabel>Jobs</guilabel> menu.  Select the CPL that you want to make
2062 the DKDM for and choose where it should be written, then click
2063 <guilabel>OK</guilabel>.
2064 </para>
2065
2066 </section>
2067 </chapter>
2068
2069
2070
2071 <!-- ============================================================== -->
2072 <chapter xml:id="ch-preferences" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
2073 <title>Preferences</title>
2074
2075 <para>
2076 DCP-o-matic provides a few preferences which can be used to modify its
2077 behaviour.  This chapter explains those options.
2078 </para>
2079
2080
2081 <!-- ============================================================== -->
2082 <section>
2083 <title>The preferences dialogue</title>
2084
2085 <para>
2086 The preferences dialogue is opened by choosing
2087 <guilabel>Preferences...</guilabel> from the <guilabel>Edit</guilabel>
2088 menu.  The dialogue is split into seven tabs.
2089 </para>
2090
2091 <!-- ============================================================== -->
2092 <section>
2093 <title>General</title>
2094
2095 <para>
2096 The general tab is shown in <xref linkend="fig-prefs-general"/>.
2097 </para>
2098
2099 <figure id="fig-prefs-general">
2100   <title>General preferences</title>
2101   <mediaobject>
2102     <imageobject>
2103       <imagedata fileref="screenshots/prefs-general&scs;"/>
2104     </imageobject>
2105   </mediaobject>
2106 </figure>
2107
2108
2109 <!-- ============================================================== -->
2110 <section>
2111 <title>Language</title>
2112
2113 <para>
2114 If you tick the <guilabel>Set Language</guilabel> checkbox and choose
2115 a language from the list, that language will be used for DCP-o-matic.
2116 You will need to restart DCP-o-matic to see the new language.
2117 </para>
2118
2119 <para>
2120 The translations for DCP-o-matic have been contributed by helpful
2121 users.  If your language is not on the last, head to <ulink
2122 url="http://dcpomatic.com/i18n.php">the DCP-o-matic website</ulink> to
2123 read about how to contribute a translation.
2124 </para>
2125 </section>
2126
2127
2128 <!-- ============================================================== -->
2129 <section>
2130 <title>Threads</title>
2131
2132 <para>
2133 When DCP-o-matic is encoding DCPs it can use multiple parallel threads
2134 to speed things up.  Set this value to the number of threads
2135 DCP-o-matic should use.  This should normally be the number of
2136 processors (or processor cores) in your machine.  DCP-o-matic will try
2137 to set this up correctly when you run it for the first time.
2138 </para>
2139
2140 </section>
2141
2142 <!-- ============================================================== -->
2143 <section>
2144 <title>Updates</title>
2145
2146 <para>
2147 The <guilabel>Check for updates on startup</guilabel> option, if
2148 enabled, will tell DCP-o-matic to check on <ulink
2149 url="http://dcpomatic.com/">dcpomatic.com</ulink> to see if there any
2150 newer versions of DCP-o-matic then the one you are running.  If so, a
2151 dialogue box will open with a link to download the new version.
2152 available
2153 </para>
2154
2155 <para>
2156 The <guilabel>Check for testing updates as well as stable
2157 ones</guilabel> option will also check for test updates as well as
2158 those that are formally &lsquo;released&rsquo;. This is useful if you
2159 like to live on the bleeding edge!
2160 </para>
2161 </section>
2162
2163 <!-- ============================================================== -->
2164 <section>
2165 <title>Issuer and creator</title>
2166
2167 <para>
2168 With these controls you can set the issuer and creator strings that
2169 will be put into the DCPs which you create.
2170 </para>
2171 </section>
2172
2173 </section>
2174
2175 <!-- ============================================================== -->
2176 <section>
2177 <title>Defaults</title>
2178
2179 <para>
2180 The defaults tab is shown in <xref linkend="fig-prefs-defaults"/>.
2181 </para>
2182
2183 <figure id="fig-prefs-defaults">
2184   <title>Defaults preferences</title>
2185   <mediaobject>
2186     <imageobject>
2187       <imagedata fileref="screenshots/prefs-defaults&scs;"/>
2188     </imageobject>
2189   </mediaobject>
2190 </figure>
2191
2192 <para>
2193 The options in this tab simply allow you to set up default values for
2194 various properties of new films.
2195 </para>
2196
2197 </section>
2198
2199 <!-- ============================================================== -->
2200 <section>
2201 <title>Servers</title>
2202
2203 <para>
2204 The servers tab is shown in <xref linkend="fig-prefs-servers"/>.
2205 </para>
2206
2207 <figure id="fig-prefs-servers">
2208   <title>Servers preferences</title>
2209   <mediaobject>
2210     <imageobject>
2211       <imagedata fileref="screenshots/prefs-servers&scs;"/>
2212     </imageobject>
2213   </mediaobject>
2214 </figure>
2215
2216 <para>
2217 If <guilabel>Use all servers</guilabel> is ticked DCP-o-matic will
2218 locate encoding servers automatically (see <xref
2219 linkend="ch-servers"/>).
2220 </para>
2221
2222 <para>
2223 Instead of this (or in addition) servers can be specified explicitly.
2224 To add a server, click <guilabel>Add...</guilabel> and enter the host
2225 name or IP address of the server to use.
2226 </para>
2227
2228 </section>
2229
2230
2231 <!-- ============================================================== -->
2232 <section xml:id="sec-prefs-keys">
2233 <title>Keys</title>
2234
2235 <para>
2236 The Keys tab (shown in <xref linkend="fig-prefs-keys"/>) holds options
2237 related to the keys and certificates used in some parts of DCP
2238 creation.
2239 </para>
2240
2241 <figure id="fig-prefs-keys">
2242   <title>Keys preferences</title>
2243   <mediaobject>
2244     <imageobject>
2245       <imagedata fileref="screenshots/prefs-keys&scs;"/>
2246     </imageobject>
2247   </mediaobject>
2248 </figure>
2249
2250 <para>
2251 At the top of the tab is the chain of certificates that will be used
2252 to sign DCPs and KDMs.  DCP-o-matic creates a random chain when you
2253 first run it and if you are happy to use this chain you can ignore the
2254 preferences.  Otherwise, you can add or remove certificates from the
2255 chain using the <guilabel>Add...</guilabel> and
2256 <guilabel>Remove</guilabel> buttons.
2257 </para>
2258
2259 <para>
2260 If you want DCP-o-matic to re-create the certificate chain (using new,
2261 random certificates) click <guilabel>Re-make
2262 certificates...</guilabel> and specify your organisation and common
2263 names in the dialogue box that opens.
2264 </para>
2265
2266 <para>
2267 Underneath the certificate chain is the private key that corresponds
2268 to the leaf certificate in the chain.  You can specify your own
2269 private key by clicking <guilabel>Load...</guilabel>.  You must do
2270 this if you change the leaf certificate, so that the leaf private key
2271 corresponds to the public key held in the leaf certificate.
2272 </para>
2273
2274 <para>
2275 Underneath the details of the certificate chain and private key for
2276 signing of DCPs and KDMs is a second chain and key which is used by
2277 DCP-o-matic when you import an encrypted DCP as a piece of content.
2278 The leaf certificate of this chain contains the public key that should
2279 be used when targeting a KDM at DCP-o-matic.
2280 </para>
2281
2282 <para>
2283 If you want to import an encrypted DCP you will need to give the
2284 decryption certificate to the distributor of the DCP so that they can
2285 generate a DKDM for you.  You can save this certificate to disk by
2286 clicking <guilabel>Export DCP decryption certificate</guilabel>.  As
2287 with the signing chain, DCP-o-matic will create a certificate chain
2288 and private key for you.  You can also choose to load your own
2289 certificates and key or re-make the chain and key with new, random
2290 values.
2291 </para>
2292
2293 </section>
2294
2295 <!-- ============================================================== -->
2296 <section xml:id="sec-prefs-tms">
2297 <title>TMS</title>
2298 <titleabbrev xml:id="sec-prefs-tms-short">TMS preferences</titleabbrev>
2299
2300 <para>
2301 The TMS tab (shown in <xref linkend="fig-prefs-tms"/>) gives some
2302 options for specifying details about your theatre management system
2303 (TMS).  If you do this, and your TMS accepts SSH or FTP connections,
2304 you can upload DCPs directly from DCP-o-matic to the TMS using the
2305 <guilabel>Send DCP to TMS</guilabel> option in the
2306 <guilabel>Jobs</guilabel> menu.
2307 </para>
2308
2309 <figure id="fig-prefs-tms">
2310   <title>TMS preferences</title>
2311   <mediaobject>
2312     <imageobject>
2313       <imagedata fileref="screenshots/prefs-tms&scs;"/>
2314     </imageobject>
2315   </mediaobject>
2316 </figure>
2317
2318 <para>
2319 <guilabel>Protocol</guilabel> should be set to SCP or FTP as
2320 appropriate for your TMS.  We know that the Arts Alliance Media (AAM)
2321 and the Doremi ranges uses SCP connections, and that Dolby's TMSs use
2322 FTP.  Do let us know if you use any other type of TMS with the
2323 <guilabel>Send DCP to TMS</guilabel> feature.
2324 </para>
2325
2326 <para>
2327 <guilabel>TMS IP address</guilabel> should be set to the IP address of
2328 your TMS, <guilabel>TMS target path</guilabel> to the place that DCPs
2329 should be uploaded to (which will be relative to the home directory of
2330 the SSH or FTP user).  Finally, the user name and password are the
2331 credentials required to log into the TMS via SSH or FTP.
2332 </para>
2333
2334 <para>
2335 Note that for this to work on Doremi servers you will need to set the
2336 <code>PasswordAuthentication</code> option in your server's
2337 <code>sshd_config</code> to <code>yes</code>.
2338 </para>
2339
2340 </section>
2341
2342
2343 <!-- ============================================================== -->
2344 <section>
2345 <title>KDM email</title>
2346
2347 <para>
2348 The KDM email is shown in <xref linkend="fig-prefs-kdm-email"/>.
2349 </para>
2350
2351 <figure id="fig-prefs-kdm-email">
2352   <title>KDM email preferences</title>
2353   <mediaobject>
2354     <imageobject>
2355       <imagedata fileref="screenshots/prefs-kdm-email&scs;"/>
2356     </imageobject>
2357   </mediaobject>
2358 </figure>
2359
2360 <para>
2361 This is a template for the email that is used to send KDMs out to
2362 cinemas.  You can change it to say whatever you like.  A few
2363 &lsquo;magic&rsquo; strings will be replaced by information from the
2364 KDM that is being sent:
2365 </para>
2366
2367 <table>
2368 <title>&lsquo;Magic&rsquo; KDM strings</title>
2369 <tgroup cols='2' align='left' colsep='1' rowsep='1'>
2370 <tbody>
2371 <row>
2372 <entry><code>$CPL_NAME</code></entry><entry>DCP title</entry>
2373 </row>
2374 <row>
2375 <entry><code>$CINEMA_NAME</code></entry><entry>Cinema name</entry>
2376 </row>
2377 <row>
2378 <entry><code>$SCREENS</code></entry><entry>Name of screen or screens that KDMs are being generated for</entry>
2379 </row>
2380 <row>
2381 <entry><code>$START_TIME</code></entry><entry>The time from which the KDMs are valid</entry>
2382 </row>
2383 <row>
2384 <entry><code>$END_TIME</code></entry><entry>The time until which the KDMs are valid</entry>
2385 </row>
2386 </tbody>
2387 </tgroup>
2388 </table>
2389
2390 <para>
2391 The <guilabel>Reset to default text</guilabel> will replace the current KDM email with DCP-o-matic's default.
2392 </para>
2393
2394 </section>
2395
2396
2397 <!-- ============================================================== -->
2398 <section xml:id="sec-prefs-advanced">
2399 <title>Advanced</title>
2400 <titleabbrev xml:id="sec-prefs-advanced-short">Advanced preferences</titleabbrev>
2401
2402 <para>
2403 The advanced preferences are shown in <xref linkend="fig-prefs-advanced"/>.
2404 </para>
2405
2406 <figure id="fig-prefs-advanced">
2407   <title>Advanced preferences</title>
2408   <mediaobject>
2409     <imageobject>
2410       <imagedata fileref="screenshots/prefs-advanced&scs;"/>
2411     </imageobject>
2412   </mediaobject>
2413 </figure>
2414
2415 <para>
2416 <guilabel>Maximum JPEG2000 bandwidth</guilabel> specifies the maximum
2417 bit-rate of JPEG2000 that DCP-o-matic will allow you to create.  You
2418 are advised to leave this at 250Mbit/s in normal use for maximum DCP
2419 compatibility.
2420 </para>
2421
2422 <para>
2423 <guilabel>Allow any DCP frame rate</guilabel> removes the limits on
2424 the DCP video frame rates that DCP-o-matic will create.  This may be
2425 useful for experimentation.  Again, you are strongly advised to leave
2426 this unticked for normal use.
2427 </para>
2428
2429 <para>
2430 <guilabel>Only servers encode</guilabel> makes DCP-o-matic encode
2431 JPEG2000 data only on encoding servers and not on the host.  We
2432 suggest you leave this un-ticked unless you have a good reason to do otherwise.
2433 </para>
2434
2435 <para>
2436 The four checkboxes labelled <guilabel>Log</guilabel> control what
2437 sort of messages DCP-o-matic writes to its log file when creating a
2438 DCP.  It is useful to leave <guilabel>General</guilabel>,
2439 <guilabel>Warnings</guilabel> and <guilabel>Errors</guilabel> ticked
2440 as this makes the log files useful for tracking down bugs.
2441 </para>
2442
2443 <para>
2444 The <guilabel>Timing</guilabel> checkbox will enable extra log entries
2445 to allow developers to investigate and optimize the speed of
2446 DCP-o-matic.  It will significantly increase the size of the log files
2447 that are generated, so in normal use it is best to leave this
2448 unticked.
2449 </para>
2450
2451 </section>
2452 </section>
2453 </chapter>
2454
2455 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en" xml:id="ch-frame-rates">
2456 <title>Frame rates</title>
2457
2458 <para>
2459 In an ideal world, a DCP would be created using content at the same
2460 video frame and audio sampling rates as the DCP.  This is not,
2461 however, always possible.
2462 </para>
2463
2464
2465 <!-- ============================================================== -->
2466 <section>
2467 <title>DCP frame rate limitations</title>
2468
2469 <para>
2470 There are some limitations to video and audio frame rates in DCPs.  This is
2471 complicated by the fact that not all projectors will play DCPs at the
2472 same frame rates.  It is possible to create a DCP which one projector will
2473 play fine, but another (of a different type) will refuse to play, or
2474 even refuse to ingest.
2475 </para>
2476
2477
2478 <!-- ============================================================== -->
2479 <section>
2480 <title>Guaranteed rates</title>
2481
2482 <para>
2483 The only rates that are (pretty much) guaranteed to work on all DCI
2484 projectors are 24 frames per second (fps) for video and 48kHz or 96kHz
2485 for audio.  If you are sending your DCPs to unknown places it wise to
2486 consider using these rates if at all possible.
2487 </para>
2488
2489 </section>
2490
2491
2492 <!-- ============================================================== -->
2493 <section>
2494 <title>Other often-supported rates</title>
2495 <para>
2496 Many projectors now in the wild support additional video frame rates:
2497 25, 30 and 48 fps.
2498 </para>
2499 </section>
2500
2501
2502 <!-- ============================================================== -->
2503 <section>
2504 <title>Adapting content to fit the DCP rate</title>
2505
2506 <para>
2507 DCP-o-matic has a few tricks to allow you to use content that is not
2508 in one of the &lsquo;approved&rsquo; rates.
2509 </para>
2510
2511 <para>
2512 Audio is easy: DCP-o-matic can resample to 48kHz from any source rate
2513 with minimal loss in quality.
2514 </para>
2515
2516 <para>
2517 Video rate conversion is harder.  DCP-o-matic's basic strategy to deal
2518 with a non-supported content rate is to run it at the wrong speed, and
2519 to adjust the audio to keep it in sync.
2520 </para>
2521
2522 <para>Let us consider the example of a 25fps source for which you want
2523 to create a 24fps DCP.  DCP-o-matic will put the frames from the
2524 source directly into the DCP without modification, but will tell the
2525 projector to play them back at 24fps.  This means that the DCP's video
2526 will run slightly slower than the original.
2527 </para>
2528
2529 <para>
2530 If DCP-o-matic did nothing else, the result of this would be that the
2531 audio would be running at the original speed with the video running
2532 slowly.  Hence the audio would drift slowly out of sync.  To avoid
2533 this, DCP-o-matic also resamples the audio such that the projector
2534 will play it too slow by the same amount.  Hence it will sound
2535 slightly different but will remain in sync with the video.
2536 </para>
2537
2538 <para>
2539 For very low or high frame rates, DCP-o-matic can also skip or duplicate frames.
2540 </para>
2541
2542 </section>
2543 </section>
2544
2545
2546 <!-- ============================================================== -->
2547 <section>
2548 <title>Setting up</title>
2549
2550 <para>
2551 The <guilabel>Frame Rate</guilabel> control in the
2552 <guilabel>DCP</guilabel> tab sets the video frame rate that the DCP
2553 will use.  Clicking <guilabel>Use best</guilabel> sets the rate to
2554 what DCP-o-matic thinks is the best for your content.  With this
2555 button, DCP-o-matic assumes that the whole range of frame rates (24,
2556 25, 30 and 48fps) are allowable.
2557 </para>
2558
2559 <para>
2560 After this, the <guilabel>Video</guilabel> tab for each piece of
2561 content will give a summary of what DCP-o-matic is doing with that
2562 content.
2563 </para>
2564
2565 <para>
2566 If you want to experiment with other non-standard frame rates, you can
2567 do so by ticking the <guilabel>Allow any DCP frame rate</guilabel> in
2568 the <guilabel>Advanced</guilabel> tab of the preferences dialogue (see the
2569 <xref linkend="sec-prefs-advanced" endterm="sec-prefs-advanced-short"/>).  You are strongly advised to
2570 use this only on your own equipment, and only for experimentation
2571 purposes.
2572 </para>
2573
2574 </section>
2575
2576 </chapter>
2577
2578
2579 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en" xml:id="ch-servers">
2580 <title>Encoding servers</title>
2581
2582 <para>
2583 One way to increase the speed of DCP encoding is to use more
2584 than one machine at the same time.  An instance of DCP-o-matic can
2585 offload some of the time-consuming JPEG2000 encoding to any number of
2586 other machines on a network.  To do this, one &lsquo;master&rsquo;
2587 machine runs DCP-o-matic, and the &lsquo;server&rsquo; machines run
2588 a small program called <code>dcpomatic_server</code>.
2589 </para>
2590
2591 <para>
2592 The master and server machines do not need to be the same type, so you
2593 can mix Windows PCs, Macs and Linux machines as you wish.
2594 </para>
2595
2596
2597 <!-- ============================================================== -->
2598 <section>
2599 <title>Running the servers</title>
2600
2601 <para>
2602 There are two options for the encoding server;
2603 <code>dcpomatic_server_cli</code>, which runs on the command line, and
2604 <code>dcpomatic_server</code>, which has a simple GUI.  The command line
2605 version is well-suited to headless servers, especially on Linux, and
2606 the GUI version works best on Windows where it will put an icon in the
2607 system tray.
2608 </para>
2609
2610 <para>
2611 To run the command line version, simply enter:
2612 </para>
2613
2614 <programlisting>
2615 dcpomatic2_server_cli
2616 </programlisting>
2617
2618 <para>
2619 at a command prompt.  If you are running the program on a machine with
2620 a multi-core processor, you can run multiple parallel encoding threads
2621 by doing something like:
2622 </para>
2623
2624 <programlisting>
2625 dcpomatic2_server_cli -t 4
2626 </programlisting>
2627
2628 <para>
2629 to run 4 threads in parallel.
2630 </para>
2631
2632 <para>
2633 To run the GUI version on windows, run the &lsquo;DCP-o-matic encode
2634 server&rsquo; from the start menu.  An icon will appear in the system
2635 tray; right-click it to open a menu from whence you can quit the
2636 server or open a window to show its status.
2637 </para>
2638
2639 <para>If you would rather not bother installing DCP-o-matic on your
2640 server computers, the other option is to use the live-CD
2641 image that you can download from the <ulink
2642 url="http://dcpomatic.com/">DCP-o-matic web site.</ulink></para>
2643
2644 <para>Either burn the image to CD, or write it to a USB stick (using
2645 something like <ulink
2646 url="http://unetbootin.sourceforge.net/">unetbootin</ulink>).  Boot a
2647 PC from the CD or USB stick and it becomes a DCP-o-matic server
2648 without touching your standard operating system install.
2649 </para>
2650
2651 </section>
2652
2653 <!-- ============================================================== -->
2654 <section>
2655 <title>Setting up DCP-o-matic</title>
2656
2657 <para>
2658 DCP-o-matic periodically looks on the local network for servers.  Any
2659 that it finds are given work to do during encodes.  Selecting
2660 <guilabel>Encoding Servers</guilabel> from the
2661 <guilabel>Tools</guilabel> menu brings up a window which shows that
2662 servers that DCP-o-matic has found.
2663 </para>
2664
2665 </section>
2666
2667 <!-- ============================================================== -->
2668 <section>
2669 <title>Some notes about encode servers</title>
2670
2671 <para>
2672 DCP-o-matic does not mind if servers come and go; if a server
2673 disappears, DCP-o-matic will stop sending work to it, and will check
2674 it every minute or so in case it has come back online.
2675 </para>
2676
2677 <para>
2678 You will probably find that using a 1Gb/s or faster network will
2679 provide a significant speed-up compared to a 100Mb/s network.
2680 </para>
2681
2682 </section>
2683
2684 </chapter>
2685
2686 <chapter xml:id="ch-files" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
2687 <title>Generated files</title>
2688
2689 <para>
2690 DCP-o-matic generates a number of files as it makes a DCP.  <xref
2691 linkend="fig-file-structure"/> shows the files that might be generated
2692 after you have created a DCP for a film called &lsquo;DCP Test&rsquo;.
2693 </para>
2694
2695 <figure id="fig-file-structure">
2696   <title>Creating a new film</title>
2697   <mediaobject>
2698     <imageobject>
2699       <imagedata scale="100" fileref="diagrams/file-structure&dia;"/>
2700     </imageobject>
2701   </mediaobject>
2702 </figure>
2703
2704 <para>
2705 The <code>DCP Test</code> folder is the one that you specify when you
2706 select the <guilabel>New Film</guilabel> option from DCP-o-matic's
2707 menu.  Everything is stored inside this folder.
2708 </para>
2709
2710 <para>
2711 DCP-o-matic generates some working files as it goes along.  These are as follows:
2712 <itemizedlist>
2713
2714 <listitem><code>log</code> is a list of notes that DCP-o-matic makes as it goes
2715 along.  This can be useful for debugging purposes if something goes
2716 wrong.</listitem>
2717
2718 <listitem><code>metadata</code> stores the settings that you have made
2719 for this film: things like cropping, output format and so on.</listitem>
2720
2721 <listitem><code>video</code> is where DCP-o-matic writes the DCP's
2722 video data as it encodes it.</listitem>
2723
2724 <listitem><code>analysis</code> is used to keep the results of audio analysis runs.</listitem>
2725
2726 <listitem><code>info</code> contains details of each video frame that
2727 DCP-o-matic has written so far.  This is used when an encoding
2728 operation is interrupted and DCP-o-matic must resume it.</listitem>
2729 </itemizedlist>
2730 </para>
2731
2732 <para>
2733 Following this is the DCP itself:
2734 <code>DCP-TEST_EN-XX_UK-U_51_2K_CSY_20130218_CSY_OV</code>.  This
2735 contains some small XML files, which describe the DCP, and two large
2736 MXF files, which contain the DCP's audio and video data.  This folder
2737 (<code>DCP-TEST_EN-XX_...</code>) is what you should ingest, or pass
2738 to the cinema which is showing your DCP.
2739 </para>
2740
2741 </chapter>
2742
2743 <chapter>
2744 <title>Loose ends</title>
2745
2746 <para>
2747 This chapter collects a few notes on bits of DCP-o-matic that do not fit elsewhere in the manual.
2748 </para>
2749
2750
2751 <!-- ============================================================== -->
2752 <section>
2753 <title>Resuming encodes</title>
2754
2755 <para>
2756 If you cancel a DCP encoding run half-way through, or your computer
2757 crashes... fear not.  DCP-o-matic takes care to ensure that, in most
2758 cases, it can resume encoding from where it left off.  When you
2759 re-start a DCP creation, using the same settings are a previous run,
2760 DCP-o-matic will first check that the existing picture frames are
2761 correct, and then resume from where it left off.  The checking of
2762 existing frames does take some time, but it is much faster than
2763 running a full re-encode.
2764 </para>
2765
2766 <para>
2767 This resumption is achieved by writing a digest (hash) to disk for
2768 every image frame that is written.  On resumption, the existing MXF
2769 file for image data is read and its contents checked against the
2770 hashes.
2771 </para>
2772
2773 </section>
2774
2775 </chapter>
2776
2777 </book>