Document auto audio mapping.
[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>DCP-o-matic is a set of programs to perform the following tasks:</para>
30
31 <itemizedlist>
32   <listitem>Creation of <ulink
33   url="http://en.wikipedia.org/wiki/Digital_Cinema_Package">Digital
34   Cinema Packages</ulink> (DCPs) from video, audio and/or
35   subtitle files.</listitem>
36   <listitem>Playback of DCPs on a PC.</listitem>
37   <listitem>Creation of KDMs for DCPs.</listitem>
38 </itemizedlist>
39
40 </section>
41
42
43 <!-- ============================================================== -->
44 <section>
45 <title>Licence</title>
46
47 <para>
48 DCP-o-matic is free and open-source and is licensed under the <ulink
49 url="http://www.gnu.org/licenses/old-licenses/gpl-2.0.html">GNU
50 GPL</ulink>.
51 </para>
52
53 </section>
54
55
56 <!-- ============================================================== -->
57 <section>
58 <title>Acknowledgements</title>
59
60 <para>
61 This manual uses icons from the <ulink url="http://tango.freedesktop.org/">Tango Desktop Project</ulink>, with thanks.
62 </para>
63
64 </section>
65
66 <!-- ============================================================== -->
67 <section>
68 <title>This manual</title>
69
70 <para>
71 This manual presents bits of DCP-o-matic's user interface (such as menu items or buttons) <guilabel>like this</guilabel>.
72 </para>
73
74 <note>
75 Notes of an advanced nature are presented like this.  Ignore them unless you want to know the gory details.
76 </note>
77
78 </section>
79 </chapter>
80
81
82 <!-- ============================================================== -->
83 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
84 <title>Installation</title>
85
86
87 <!-- ============================================================== -->
88 <section>
89 <title>Windows</title>
90
91 <para>
92 To install DCP-o-matic on Windows, download the installer from
93 <ulink url="http://dcpomatic.com/">http://dcpomatic.com/</ulink>
94 and double-click it.  Click through the installer wizard, and
95 DCP-o-matic will be installed onto your machine.
96 </para>
97
98 <para>
99 If you are using a 32-bit version of Windows, you will need the 32-bit
100 installer.  For 64-bit Windows, either installer will work, but I
101 suggest you used the 64-bit version as it will allow DCP-o-matic to
102 use more memory.  You may find that DCP-o-matic crashes if you run
103 many parallel encoding threads (more than 4) on the 32-bit
104 version.
105 </para>
106
107 <para>
108 If you are still using Windows XP, download the specific XP version as
109 it should be more stable on your machine than the &lsquo;normal&rsquo;
110 Windows version.
111 </para>
112
113 </section>
114
115
116 <!-- ============================================================== -->
117 <section>
118 <title>Mac OS X</title>
119
120 <para>
121 DCP-o-matic will run on Mac OS X version 10.6 (Snow Leopard) and
122 higher.  DCP-o-matic is split into four separate applications, each of
123 which can be installed by downloading the <code>.dmg</code>,
124 double-clicking to open and then dragging the icon to your
125 <guilabel>Applications</guilabel> folder.
126 </para>
127
128 <para>
129 If you are not sure which parts of DCP-o-matic to install, start
130 with the first (main) part.
131 </para>
132
133 </section>
134
135 <!-- ============================================================== -->
136 <section>
137 <title>Debian, Ubuntu or Mint Linux</title>
138
139 <para>
140   You can install DCP-o-matic on:
141 </para>
142
143 <itemizedlist>
144   <listitem>Debian 7 (&lsquo;wheezy&rsquo;)</listitem>
145   <listitem>Debian 8 (&lsquo;jessie&rsquo;)</listitem>
146   <listitem>Debian 9 (&lsquo;squeeze&rsquo;)</listitem>
147   <listitem>Debian unstable (&lsquo;sid&rsquo;)</listitem>
148   <listitem>Ubuntu 14.04 (&lsquo;Trusty Tahr&rsquo;)</listitem>
149   <listitem>Ubuntu 16.04 (&lsquo;Xenial Xerus&rsquo;)</listitem>
150   <listitem>Ubuntu 18.04 (&lsquo;Bionic Beaver&rsquo;)</listitem>
151   <listitem>Mint 17</listitem>
152   <listitem>Mint 18</listitem>
153   <listitem>Mint 19</listitem>
154 </itemizedlist>
155
156 <para>
157 using <code>.deb</code> packages: download the appropriate package
158 from <ulink url="http://dcpomatic.com/">http://dcpomatic.com/</ulink>
159 and double-click it.  Debian or Ubuntu will install the necessary bits and
160 pieces and set DCP-o-matic up for you.
161 </para>
162 </section>
163 <!-- ============================================================== -->
164
165
166 <!-- ============================================================== -->
167 <section>
168   <title>Fedora, Centos and Mageia Linux</title>
169
170   <para>There are <code>.rpm</code> packages for Fedora 27 and 28, Centos 6 and 7 and Mageia 6 on
171   <ulink url="http://dcpomatic.com/">http://dcpomatic.com/</ulink>
172   </para>
173 </section>
174 <!-- ============================================================== -->
175
176 <!-- ============================================================== -->
177 <section>
178 <title>Arch Linux</title>
179 <para>
180 Packages for Arch Linux are available from <ulink
181 url="https://aur.archlinux.org/packages/dcpomatic/">https://aur.archlinux.org/packages/dcpomatic/</ulink>,
182 thanks to Stefan Karner.
183 </para>
184 </section>
185
186
187 <!-- ============================================================== -->
188 <section>
189 <title>Other Linux distributions</title>
190
191 <para>
192 Installation on other Linux systems (for which no packages are
193 available) is quite hard as it must be compiled from source.  If you
194 can't download packages for your distribution, do let me know by
195 <ulink url="mailto:carl@dcpomatic.com">email</ulink> and I will look
196 into providing packages on the website.
197 </para>
198
199 <para>
200 The following dependencies are required:
201 <itemizedlist>
202 <listitem><ulink url="http://ffmpeg.org/">FFmpeg</ulink></listitem>
203 <listitem><ulink url="http://www.mega-nerd.com/libsndfile/">libsndfile</ulink></listitem>
204 <listitem><ulink url="http://www.mega-nerd.com/SRC/">libsamplerate</ulink></listitem>
205 <listitem><ulink url="http://www.openssl.org/">OpenSSL</ulink></listitem>
206 <listitem><ulink url="http://www.openjpeg.org/">libopenjpeg</ulink></listitem>
207 <listitem><ulink url="http://www.imagemagick.org/script/index.php">ImageMagick</ulink></listitem>
208 <listitem><ulink url="http://www.boost.org/">Boost</ulink></listitem>
209 <listitem><ulink url="http://www.libssh.org/">libssh</ulink></listitem>
210 <listitem><ulink url="http://www.gtk.org/">GTK (on Linux)</ulink></listitem>
211 <listitem><ulink url="http://www.wxwidgets.org/">wxWidgets</ulink></listitem>
212 <listitem><ulink url="http://libxmlplusplus.sourceforge.net/">libxml++</ulink></listitem>
213 <listitem><ulink url="http://www.aleksey.com/xmlsec/">xmlsec</ulink></listitem>
214 <listitem><ulink url="http://curl.haxx.se/">curl</ulink></listitem>
215 <listitem><ulink url="http://www.nih.at/libzip/">libzip</ulink></listitem>
216 <listitem><ulink url="http://carlh.net/asdcplib">asdcplib with some patches</ulink></listitem>
217 <listitem><ulink url="http://carlh.net/libdcp">libdcp</ulink></listitem>
218 <listitem><ulink url="http://carlh.net/libsub">libsub</ulink></listitem>
219 <listitem><ulink url="http://carlh.net/libcxml">libcxml</ulink></listitem>
220 <listitem><ulink url="https://carlh.net/locked_sstream">locked_sstream</ulink></listitem>
221 <listitem><ulink url="https://www.music.mcgill.ca/~gary/rtaudio/">rtaudio</ulink></listitem>
222 <listitem><ulink url="http://site.icu-project.org">libicu</ulink></listitem>
223 </itemizedlist>
224 </para>
225
226 <para>
227 Once you have installed the development packages for the dependencies,
228 download the source code from <ulink
229 url="http://dcpomatic.com/">http://dcpomatic.com/</ulink>,
230 unpack it and run the following commands from inside the source
231 directory:
232 </para>
233
234 <programlisting>
235 ./waf configure
236 ./waf build
237 sudo ./waf install
238 </programlisting>
239
240 <para>
241 With any luck, this will build and install DCP-o-matic on your system.  To run it, enter:
242 </para>
243
244 <programlisting>
245 dcpomatic2
246 </programlisting>
247
248 <para>
249 in a shell.
250 </para>
251
252 </section>
253 </chapter>
254
255
256 <!-- ============================================================== -->
257 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
258 <title>Creating a DCP from a video</title>
259
260 <para>
261 In this chapter we will see how to create a DCP from a video file using
262 DCP-o-matic.  We will gloss over the details and look at the basics.
263 </para>
264
265 <section>
266 <title>Creating a new film</title>
267
268 <para>
269 Let's make a very simple DCP to see how DCP-o-matic works.  First, we
270 need some content.  Download the low-resolution trailer for the open
271 movie <ulink url="http://sintel.org/">Sintel</ulink> from <ulink
272 url="https://download.blender.org/durian/trailer/Sintel_Trailer.480p.DivX_Plus_HD.mkv">their
273 website</ulink>.  Generally one would want to use the
274 highest-resolution material available, but for this test we will use
275 the low-resolution version to save everyone's bandwidth bills.
276 </para>
277
278 <para>
279 Now, start DCP-o-matic and its window will open.  First, we will
280 create a new &lsquo;film&rsquo;.  A &lsquo;film&rsquo; is how DCP-o-matic refers to
281 some pieces of content, along with some settings, which we will make into
282 a DCP.  DCP-o-matic stores its data in a folder on your disk while it
283 creates the DCP.  You can create a new film by selecting
284 <guilabel>New</guilabel> from the <guilabel>File</guilabel> menu, as
285 shown in <xref linkend="fig-file-new"/>.
286 </para>
287
288 <figure id="fig-file-new">
289   <title>Creating a new film</title>
290   <mediaobject>
291     <imageobject>
292       <imagedata fileref="screenshots/file-new&scs;"/>
293     </imageobject>
294   </mediaobject>
295 </figure>
296
297 <para>
298 This will open a dialogue box for the new film, as shown in <xref
299 linkend="fig-video-new-film"/>.
300 </para>
301
302 <figure id="fig-video-new-film">
303   <title>Dialogue box for creating a new film</title>
304   <mediaobject>
305     <imageobject>
306       <imagedata fileref="screenshots/video-new-film&scs;"/>
307     </imageobject>
308   </mediaobject>
309 </figure>
310
311 <para>
312 In this dialogue box you can choose a name for the film.  This will be
313 used to name the folder to store its data in, and also as the initial
314 name for the DCP itself.  You can also choose whereabouts you want to create
315 the film.  In the example from the figure, DCP-o-matic will create a
316 folder called &lsquo;DCP Test&rsquo; inside my home folder (carl) into which it
317 will write its working files.
318 </para>
319
320 </section>
321
322
323 <!-- ============================================================== -->
324 <section>
325 <title>Adding content</title>
326
327 <para>
328 The next step is to add the content that you want to use.  DCP-o-matic
329 can make DCPs from multiple pieces of content, but in this simple
330 example we will just use a single piece.  Click the <guilabel>Add
331 file(s)...</guilabel> button, as shown in <xref
332 linkend="fig-add-file"/>, and a file chooser will open for you to
333 select the content file to use, as shown in <xref
334 linkend="fig-video-select-content-file"/>.
335 </para>
336
337 <figure id="fig-add-file">
338   <title>Adding content files</title>
339   <mediaobject>
340     <imageobject>
341       <imagedata fileref="screenshots/add-file&scs;"/>
342     </imageobject>
343   </mediaobject>
344 </figure>
345
346 <figure id="fig-video-select-content-file">
347   <title>Selecting a video content file</title>
348   <mediaobject>
349     <imageobject>
350       <imagedata fileref="screenshots/video-select-content-file&scs;"/>
351     </imageobject>
352   </mediaobject>
353 </figure>
354
355 <para>
356 Select your content file and click <guilabel>Open</guilabel>.  In this
357 case we are using the Sintel trailer that we downloaded earlier.
358 </para>
359
360 <para>
361 When you do this, DCP-o-matic will take a look at your file.  After a
362 short while (when the progress bar at the bottom right of the window
363 has finished), you can look through your content using the slider to
364 the right of the window, as shown in <xref linkend="fig-examine-content"/>.
365 </para>
366
367 <figure id="fig-examine-content">
368   <title>Examining the content</title>
369   <mediaobject>
370     <imageobject>
371       <imagedata fileref="screenshots/examine-content&scs;"/>
372     </imageobject>
373   </mediaobject>
374 </figure>
375
376 <para>
377 Dragging the slider will move through your video.  You can also click
378 the <guilabel>Play</guilabel> button to play the content back.
379 </para>
380
381 </section>
382
383
384
385
386 <!-- ============================================================== -->
387 <section>
388 <title>Making the DCP</title>
389
390 <para>In most cases, some adjustments would be made to DCP-o-matic's
391 settings once the content has been added.  For our simple test,
392 however, the default values will suffice, so we can go straight onto
393 making the DCP.</para>
394
395 <para>
396 Choose <guilabel>Make DCP</guilabel> from the
397 <guilabel>Jobs</guilabel> menu.  DCP-o-matic will encode your DCP.
398 This may take some time (many hours in some cases).  While the job is
399 in progress, DCP-o-matic will update you on how it is getting on with
400 the progress bar in the bottom of its window, as shown in <xref
401 linkend="fig-making-dcp"/>.
402 </para>
403
404 <figure id="fig-making-dcp">
405   <title>Making the DCP</title>
406   <mediaobject>
407     <imageobject>
408       <imagedata scale="50" fileref="screenshots/making-dcp&scs;"/>
409     </imageobject>
410   </mediaobject>
411 </figure>
412
413 <para>
414 When it has finished, the DCP will end up on your disk inside the
415 film's folder.  You can then copy this to a projector via a USB
416 stick, hard-drive or network connection.  See <xref
417 linkend="ch-files"/> for details about the files that DCP-o-matic creates.
418 </para>
419
420 <para>
421 Alternatively, if you have a projector or Theatre Management System
422 (TMS) that is accessible via SCP or FTP across your network, you can upload
423 the content directly from DCP-o-matic.  See the <xref
424 linkend="sec-prefs-tms" endterm="sec-prefs-tms-short"/> in <xref linkend="sec-prefs-tms"/>.
425 </para>
426
427 </section>
428 </chapter>
429
430
431 <!-- ============================================================== -->
432 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
433 <title>Creating a DCP from a still image</title>
434
435 <para>
436 DCP-o-matic can also be used to create DCPs of one or more still images, perhaps
437 for an advertisement or an on-screen announcement.  This chapter shows you
438 how to do it.
439 </para>
440
441 <para>
442 As with DCPs made from video files, the first step is to create a new
443 &lsquo;Film&rsquo;; select <guilabel>New</guilabel> from the
444 <guilabel>File</guilabel> menu and the new film dialogue will open as
445 shown in <xref linkend="fig-still-new-film"/>.
446 </para>
447
448 <figure id="fig-still-new-film">
449   <title>Dialogue box for creating a new film</title>
450   <mediaobject>
451     <imageobject>
452       <imagedata fileref="screenshots/still-new-film&scs;"/>
453     </imageobject>
454   </mediaobject>
455 </figure>
456
457 <para>
458 Enter a name and click <guilabel>OK</guilabel>.  Now we need to add
459 the content.  As before, click <guilabel>Add file(s)...</guilabel>.
460 For our example, we will add a single image file, as shown in <xref
461 linkend="fig-still-select-content-file"/>.
462 </para>
463
464 <figure id="fig-still-select-content-file">
465   <title>Selecting a still content file</title>
466   <mediaobject>
467     <imageobject>
468       <imagedata fileref="screenshots/still-select-content-file&scs;"/>
469     </imageobject>
470   </mediaobject>
471 </figure>
472
473 <para>
474 Most of the default settings will be fine for a simple test.  The one
475 thing that you might wish to change is the length of the still.
476 Select the <guilabel>Timing</guilabel> tab and you will see a
477 <guilabel>Play length</guilabel> setting, as shown in <xref
478 linkend="fig-timing-tab"/>.
479 </para>
480
481 <figure id="fig-timing-tab">
482   <title>The timing tab</title>
483   <mediaobject>
484     <imageobject>
485       <imagedata fileref="screenshots/timing-tab&scs;"/>
486     </imageobject>
487   </mediaobject>
488 </figure>
489
490 <para>
491 This length is a &lsquo;timecode&rsquo;: it consists of four numbers.
492 The first is hours, the second minutes, the third seconds, and the
493 fourth frames.  Enter the duration that you want and then click <guilabel>Set</guilabel>.
494 </para>
495
496 <para>
497 Finally, as with video, you can choose <guilabel>Make DCP</guilabel>
498 from the <guilabel>Jobs</guilabel> menu to create your DCP.  This will
499 be much quicker than creating a DCP from a video file, as DCP-o-matic only needs
500 to encode a single frame which it can then repeat.
501 </para>
502
503 </chapter>
504
505
506 <!-- ============================================================== -->
507 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
508 <title>Manipulating existing DCPs</title>
509
510 <para>
511 Frequently DCP-o-matic is used to take content in formats such as MP4
512 and convert it to JPEG2000 for a DCP.  It can also be used
513 to take existing DCPs and modify them in various ways.
514 </para>
515
516 <section>
517 <title>Importing a DCP into DCP-o-matic</title>
518
519 <para>
520 If you want to do something to an existing DCP the first step is to
521 import it.  Click <guilabel>Add DCP...</guilabel> and select your
522 DCP's folder.  It will be added to the DCP-o-matic project.  If the
523 DCP is unencrypted you can preview it in the normal way, though
524 playback will be very slow as decoding of DCPs is almost as
525 computationally intensive as encoding them.
526 </para>
527
528 <para>
529 If your DCP is a Version File (VF) (i.e. it refers to
530 another DCP's assets) you should import it as follows:
531 </para>
532
533 <itemizedlist>
534 <listitem>Use <guilabel>Add DCP...</guilabel> to import the VF DCP.
535 The VF DCP will be added to the content list and marked &ldquo;NEEDS
536 OV&rdquo;.</listitem>
537 <listitem>Right-click on the VF DCP in the content list and choose <guilabel>Add OV...</guilabel> from the menu.</listitem>
538 <listitem>Choose the folder that contains the OV DCP.  The VF will now be playable as normal.</listitem>
539 </itemizedlist>
540
541 </section>
542
543
544 <section xml:id="sec-decrypting">
545 <title>Decrypting encrypted DCPs</title>
546
547 <para>
548 DCPs can be encrypted (see <xref linkend="ch-encryption"/> for
549 details).  If you import an encrypted DCP you will need a key, in the
550 form of a Key Delivery Message (KDM), to decrypt it.
551 </para>
552
553 <para>
554 KDMs must be prepared by the organisation which created the DCP.  They
555 contain the keys to decrypt the DCP wrapped up in such a way that only
556 the intended recipient can read them.  You will need to provide the
557 organisation with a certificate which identifies your copy of
558 DCP-o-matic and allows them to create a KDM for you.
559 </para>
560
561 <para>
562 To get DCP-o-matic's decryption certificate, open the Preferences
563 dialogue (see <xref linkend="ch-preferences"/>) and go to the
564 <guilabel>Keys</guilabel> tab.  Click the <guilabel>Export DCP
565 decryption certificate...</guilabel> button at the bottom of this tab
566 and save the certificate.  Send this certificate to the DCP creators
567 and they can create a KDM to allow DCP-o-matic to decrypt their DCP.
568 </para>
569
570 <para>
571 Once you have your KDM, right-click the DCP's name in DCP-o-matic and
572 choose <guilabel>Add KDM...</guilabel>.  Specify your KDM and the DCP
573 will be decrypted and become available for preview.
574 </para>
575
576 </section>
577
578
579 <section>
580 <title>Making a DCP from a DCP</title>
581
582 <para>
583 In many ways, using DCPs as <emphasis>content</emphasis> in
584 DCP-o-matic is the same as using any other content.  There are a few
585 things to note, though.
586 </para>
587
588
589 <section>
590 <title>Re-use of existing data</title>
591
592 <para>
593 Where possible DCP-o-matic will re-use existing JPEG2000-compressed
594 data from DCP content without modification.  This has the advantage
595 that creation of the new DCP will be quick, as the time-consuming
596 JPEG2000 encoding is not necessary.
597 </para>
598
599 <para>
600 DCP-o-matic can do this if you <emphasis>avoid</emphasis> changes to
601 the following content settings:
602 </para>
603
604 <itemizedlist>
605 <listitem>Crop</listitem>
606 <listitem>Scaling</listitem>
607 <listitem>Subtitle burn-in</listitem>
608 <listitem>Fades</listitem>
609 <listitem>Colour conversion</listitem>
610 </itemizedlist>
611
612 <para>
613 If you do change any of these settings on a piece of DCP content
614 DCP-o-matic will decode and then re-encode the JPEG2000 data.
615 </para>
616
617 </section>
618
619
620 <section xml:id="sec-overlay">
621 <title>Making overlay files</title>
622
623 <para>
624 With its default settings, DCP-o-matic will take any data from DCP
625 content and copy it into the DCP that it creates.  See <xref linkend="fig-dcp-copy"/>.
626 </para>
627
628 <figure id="fig-dcp-copy">
629 <title>Creating a new DCP by copying an existing one</title>
630 <mediaobject><imageobject><imagedata scale="100" fileref="diagrams/dcp-copy&dia;"/></imageobject></mediaobject>
631 </figure>
632
633 <para>
634 This can be inefficient in some cases.  Consider, for example, a film
635 which has ten different translations for which the subtitles are
636 different but video and audio are the same.  If the video and audio
637 content takes up, say, 100Gb this means that the set of DCPs for every
638 translation would be about 1Tb with a lot of duplicated data.
639 </para>
640
641 <para>
642 The DCP format has a solution to this problem.  One DCP can refer to
643 the &lsquo;assets&rsquo; (picture, sound or subtitle) of another DCP.
644 For our translation example this means that we could have a
645 &lsquo;base&rsquo; DCP (often called the OV or Original Version)
646 containing video, audio and one set of subtitles and then any number
647 of overlay DCPs (often called VF or Version Files) which refer to the
648 base version and replace the original subtitles with their own.  <xref
649 linkend="fig-dcp-refer"/> shows this principle for one of our
650 translations.  The DCP that we make refers to the original content
651 DCP's video and audio rather than containing a copy.
652 </para>
653
654 <figure id="fig-dcp-refer">
655 <title>Creating a new DCP by referring to an existing one</title>
656 <mediaobject><imageobject><imagedata scale="100" fileref="diagrams/dcp-refer&dia;"/></imageobject></mediaobject>
657 </figure>
658
659 <para>
660 To play back the subtitled DCP the projectionist ingests both the base
661 (OV) DCP and the overlay (VF) DCP, then plays the VF one.
662 </para>
663
664 <para>
665 To make a DCP like this:
666 </para>
667
668 <itemizedlist>
669 <listitem>Import your &lsquo;Content DCP&rsquo; to a DCP-o-matic project.</listitem>
670 <listitem>Add whatever replacement you want in your new DCP (replacement subtitles or audio files, for example).</listitem>
671 <listitem>Select the DCP in the content list</listitem>
672 <listitem>Tick the <guilabel>Use's this DCP's ... as OV and make VF</guilabel> checkbox
673 in the tabs for the parts of the DCP that you want to refer to in your
674 new DCP.  For example, to refer to the Content DCP's video and audio you would select the <guilabel>Video</guilabel> tab, click <guilabel>Use this DCP's video as OV and make VF</guilabel> then select the <guilabel>Audio</guilabel> tab and click <guilabel>Use this DCP's audio as OV and make VF</guilabel>.</listitem>
675 <listitem>Do <guilabel>Make DCP</guilabel> as usual and your VF DCP will be created.</listitem>
676 </itemizedlist>
677
678 </section>
679
680 </section>
681
682
683
684 </chapter>
685 <!-- ============================================================== -->
686
687
688 <!-- ============================================================== -->
689 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
690 <title>Content settings</title>
691
692 <para>
693 The previous chapters showed DCP generation using the default
694 settings.  DCP-o-matic offers a range of features to adjust the
695 content that goes into your DCP, and this chapter describes those
696 features in detail.
697 </para>
698
699 <section>
700 <title>Adding and removing content</title>
701
702 <para>
703 At the top of the <guilabel>Content</guilabel> tab is a list of the
704 content that will go into our DCP.  There can be as many pieces of
705 content as you like, and they can be of the following types:
706 </para>
707
708 <itemizedlist>
709 <listitem>Movie &mdash; a file containing some video, probably some
710 audio and possibly some embedded subtitles; for example, a MOV, MP4 or VOB.
711 </listitem>
712
713 <listitem>Sound &mdash; a file containing one or more channels of
714 audio; for example, a WAV or AIFF file.
715 </listitem>
716
717 <listitem>Still image &mdash; a file containing a single still image; for
718 example, a JPEG, PNG or TIFF file.
719 </listitem>
720
721 <listitem>Moving image &mdash; a directory containing many still
722 images which should be treated as the frames of a video.
723 </listitem>
724
725 <listitem>Subtitle &mdash; a file containing subtitle which will be
726 superimposed on the image of the DCP.  These can be
727 <guilabel>.srt</guilabel>, <guilabel>.ssa</guilabel>, <guilabel>.ass</guilabel> or <guilabel>.xml</guilabel>
728 files.</listitem>
729
730 <listitem>DCP &mdash; an existing DCP.</listitem>
731 </itemizedlist>
732
733 <para>
734 To add one or more movie, sound, still-image or subtitle files, select
735 <guilabel>Add file(s)...</guilabel> and choose them from the selector.
736 </para>
737
738 <para>
739 DCP-o-matic will automatically map a set of audio files to the correct channels if you include appropriate &lsquo;tags&rsquo; in your filenames, as shown in <xref linkend="tab-audio-file-naming"/>.
740 </para>
741
742 <table id="tab-audio-file-naming">
743   <title>Audio file naming</title>
744   <tgroup cols='3' align='left' colsep='1' rowsep='1'>
745     <thead>
746       <row>
747         <entry>Tag</entry>
748         <entry>Examples</entry>
749         <entry>Channel</entry>
750       </row>
751     </thead>
752     <tbody>
753       <row>
754         <entry><code>L</code> surrounded by <code>.</code> <code>_</code> or <code>-</code></entry>
755         <entry>film-L.wav my_movie_L_final.wav</entry>
756         <entry>Left</entry>
757       </row>
758       <row>
759         <entry><code>R</code> surrounded by <code>.</code> <code>_</code> or <code>-</code></entry>
760         <entry>film-R.wav my_movie_R_final.wav</entry>
761         <entry>Right</entry>
762       </row>
763       <row>
764         <entry><code>C</code> surrounded by <code>.</code> <code>_</code> or <code>-</code></entry>
765         <entry>film-C.wav my_movie_C_final.wav</entry>
766         <entry>Centre</entry>
767       </row>
768       <row>
769         <entry><code>Lfe</code> surrounded by <code>.</code> <code>_</code> or <code>-</code></entry>
770         <entry>film-Lfe.wav my_movie_Lfe_final.wav</entry>
771         <entry>LFE (sub)</entry>
772       </row>
773       <row>
774         <entry><code>Ls</code> surrounded by <code>.</code> <code>_</code> or <code>-</code></entry>
775         <entry>film-Ls.wav my_movie_Ls_final.wav</entry>
776         <entry>Left surround</entry>
777       </row>
778       <row>
779         <entry><code>Rs</code> surrounded by <code>.</code> <code>_</code> or <code>-</code></entry>
780         <entry>film-Rs.wav my_movie_Rs_final.wav</entry>
781         <entry>Right surround</entry>
782       </row>
783     </tbody>
784   </tgroup>
785 </table>
786
787 <para>
788 To add a directory (folder) of images, choose <guilabel>Add
789 folder...</guilabel> and choose the directory from the selector.
790 DCP-o-matic will open a small dialogue box where you can enter the
791 frame rate that the image sequence should be run at.
792 </para>
793
794 <para>
795 To add a DCP, choose <guilabel>Add DCP...</guilabel> and choose the
796 DCP's directory from the selector.
797 </para>
798
799 <para>
800 You can remove a piece of content by clicking on its name and then
801 clicking the <guilabel>Remove</guilabel> button.
802 </para>
803
804 </section>
805
806 <!-- ============================================================== -->
807 <section>
808 <title>Adding existing DCPs</title>
809
810 <para>Adding existing DCPs to a DCP-o-matic film is a little different
811 to adding other types of content.  Most content has to be converted to
812 JPEG2000, the compression scheme used by DCPs, which is a very
813 time-consuming process.  Existing DCPs are already in JPEG2000 format
814 so do not require conversion.  This means that, provided no settings
815 such as crop are used on the DCP content, picture and sound data will
816 be passed from existing to new DCP unaltered.
817 </para>
818
819 <para>Encrypted DCPs that are added as content will require a KDM
820 targeted at DCP-o-matic so that DCP-o-matic can decrypt them.  You
821 should ask the creator of the imported DCP to provide a KDM for
822 DCP-o-matic's decryption certificate, which can be obtained by
823 clicking <guilabel>Export DCP decryption certificate...</guilabel>
824 from the <guilabel>Keys</guilabel> tab of the
825 <guilabel>Preferences</guilabel> dialog (see <xref
826 linkend="sec-prefs-keys"/>).
827 </para>
828
829 </section>
830
831 <!-- ============================================================== -->
832 <section>
833 <title>Content Properties</title>
834
835 <para>
836 Below the content list are the controls to set content properties.  To
837 adjust the properties for a piece of content, click its name in the
838 content list.  The content property controls will then become active
839 for that piece of content.
840 </para>
841
842 <para>
843 If you want to change the properties for multiple pieces of content at
844 the same time, select the content in the list by clicking the first
845 piece then clicking the other pieces with <keycap>shift</keycap> key
846 held down.  Note that not all settings can be changed in this way.
847 </para>
848
849 <para>
850 The content properties are split up into four sections:
851 <guilabel>Video</guilabel>, <guilabel>Audio</guilabel>,
852 <guilabel>Subtitles</guilabel> and <guilabel>Timing</guilabel>.  Not
853 all of these sections will be active for all content types.  The controls
854 in each section are described below.
855 </para>
856
857 </section>
858
859
860 <!-- ============================================================== -->
861 <section>
862 <title>Video</title>
863
864 <para>
865 The <guilabel>Video</guilabel> tab controls properties of the image, as shown in <xref linkend="fig-video-tab"/>.
866 </para>
867
868 <figure id="fig-video-tab">
869   <title>Video settings tab</title>
870   <mediaobject>
871     <imageobject>
872        <imagedata fileref="screenshots/video-tab&scs;"/>
873     </imageobject>
874   </mediaobject>
875 </figure>
876
877
878 <!-- ============================================================== -->
879 <section>
880 <title>Use this DCP's video as OV and make VF</title>
881
882 <para>
883 This option is only applicable if the selected content is an existing
884 DCP.  It allows you make a VF DCP, using the video content from the
885 existing DCP by referencing it (rather than copying).  See <xref
886 linkend="sec-overlay"/>.
887 </para>
888
889 </section>
890
891 <!-- ============================================================== -->
892 <section>
893 <title>Image type</title>
894
895 <para>
896 The next option on this tab is the &lsquo;type&rsquo; of the video.
897 This specifies how DCP-o-matic should interpret the video's image.
898 <guilabel>2D</guilabel> is the default; this just takes the video
899 image as a standard 2D frame.  The <guilabel>3D
900 left/right</guilabel> option tells DCP-o-matic to interpret the frame as a
901 left-right pair, as shown in <xref linkend="fig-3d-left-right"/>.
902 </para>
903
904 <figure id="fig-3d-left-right">
905   <title>3D left/right image type</title>
906   <mediaobject>
907     <imageobject>
908        <imagedata scale="100" fileref="diagrams/3d-left-right&dia;"/>
909     </imageobject>
910   </mediaobject>
911 </figure>
912
913 <para>
914 Alternatively the <guilabel>3D top/bottom</guilabel> option tells
915 DCP-o-matic to see the frame as a top-bottom pair, as shown in <xref
916 linkend="fig-3d-top-bottom"/>.
917 </para>
918
919 <figure id="fig-3d-top-bottom">
920   <title>3D top/bottom image type</title>
921   <mediaobject>
922     <imageobject>
923        <imagedata scale="100" fileref="diagrams/3d-top-bottom&dia;"/>
924     </imageobject>
925   </mediaobject>
926 </figure>
927
928 <para>
929 Another option is <guilabel>3D alternate</guilabel> which takes the
930 first frame of the content as for the left eye, the second for the
931 right eye, the third for the left, and so on.  Finally, you can
932 specify <guilabel>3D left only</guilabel> or <guilabel>3D right
933 only</guilabel> if this content contains only the the left or right
934 eye images.  This is useful when you have the left and right eye image
935 sets in different files; you can specify one content as <guilabel>3D
936 left only</guilabel> and another as <guilabel>3D right only</guilabel>
937 and DCP-o-matic will pick up the appropriate frames from each.
938 </para>
939
940 </section>
941
942
943 <!-- ============================================================== -->
944 <section>
945 <title>Filtering</title>
946
947 <para>
948 The &lsquo;filters&rsquo; settings allow you to apply various video
949 filters to the image.  These may be useful to try to improve
950 poor-quality sources like DVDs.  You can set up the filters by clicking the
951 <guilabel>Edit</guilabel> button next to the filters entry in the
952 setup area of the DCP-o-matic window; this opens the filters selector
953 as shown in <xref linkend="fig-filters"/>.
954 </para>
955
956 <figure id="fig-filters">
957   <title>Filters selector</title>
958   <mediaobject>
959     <imageobject>
960       <imagedata fileref="screenshots/filters&scs;"/>
961     </imageobject>
962   </mediaobject>
963 </figure>
964
965 <para>
966 After changing the filters setup, you will need to regenerate the DCP
967 to see the effect on the cinema screen.  The preview in DCP-o-matic
968 will update itself whenever filters are changed, though of course this
969 image is much smaller and of lower resolution than a projected image!
970 </para>
971 </section>
972
973
974
975 <!-- ============================================================== -->
976 <section>
977 <title>Colour conversion</title>
978
979 <para>
980 The <guilabel>Colour conversion</guilabel> setting specifies what
981 colour transforms and gamma correction DCP-o-matic will use when
982 converting the selected content into the XYZ colourspace for the DCP.
983 </para>
984
985 <para>
986 The easiest way to select the required conversion is to choose one of
987 DCP-o-matic's presets.  DCP-o-matic knows how to convert from four
988 common colourspaces: sRGB, Rec. 601, Rec. 709 and P3.  If you do not
989 know which preset you should use, refer to the suggestions in <xref
990 linkend="tab-colour-conversion"/>.
991 </para>
992
993 <table id="tab-colour-conversion">
994 <title>Suggested colour conversion settings</title>
995 <tgroup cols='2' align='left' colsep='1' rowsep='1'>
996 <colspec colwidth='1*'/>
997 <colspec colwidth='5*'/>
998 <tbody>
999 <row>
1000 <entry>sRGB</entry><entry>Still images in RGB, e.g. photographs</entry>.
1001 </row>
1002 <row>
1003 <entry>Rec. 601</entry><entry>Standard-definition content (fewer than about 1000 pixels across) including DVD rips.</entry>
1004 </row>
1005 <row>
1006 <entry>Rec. 709</entry><entry>High-definition content including Blu-Ray rips.</entry>
1007 </row>
1008 <row>
1009 <entry>P3</entry><entry>Content explicitly graded to P3.</entry>
1010 </row>
1011 </tbody>
1012 </tgroup>
1013 </table>
1014
1015 <para>
1016 For other required colour conversions, and if you know what you are
1017 doing, you can choose <guilabel>Custom</guilabel> which will open the full
1018 colour conversion editing dialogue box:
1019 </para>
1020
1021 <figure id="fig-colour-conversion">
1022   <title>Dialogue box for custom colour conversion</title>
1023   <mediaobject>
1024     <imageobject>
1025       <imagedata fileref="screenshots/colour-conversion&scs;"/>
1026     </imageobject>
1027   </mediaobject>
1028 </figure>
1029
1030 <para>
1031 Alternatively, choose <guilabel>None</guilabel> if your source files
1032 are already in the XYZ colour space and require no conversion.
1033 </para>
1034
1035 <para>
1036 DCP-o-matic's colour conversion processes are discussed in much more
1037 detail in a separate document <ulink
1038 url="http://dcpomatic.com/manual/colour.pdf">colour.pdf</ulink>.
1039 </para>
1040
1041 </section>
1042
1043 <!-- ============================================================== -->
1044 <section>
1045 <title>Other settings</title>
1046
1047 <para>
1048 The <guilabel>crop</guilabel> settings can be used to crop your content,
1049 which can be used to remove black borders from round the edges of DVD
1050 images, for example.  The specified number of pixels will be trimmed
1051 from each edge, and the content image in the right of the window will
1052 be updated to show the effect of the crop.
1053 </para>
1054
1055 <para>
1056 The <guilabel>fade in</guilabel> and <guilabel>fade out</guilabel>
1057 settings can be used to apply linear fades into and out of a piece of
1058 content.  Specify the time for each, clicking <guilabel>Set</guilabel>
1059 after making any changes.
1060 </para>
1061
1062 <para>
1063 The <guilabel>Scale to</guilabel> option governs the shape that
1064 DCP-o-matic will scale the content's image into.  Select the aspect
1065 ratio that your content should be presented in.
1066 </para>
1067
1068 </section>
1069
1070 <!-- ============================================================== -->
1071 <section>
1072 <title>Video description</title>
1073
1074 <para>
1075 At the bottom of the video tab is a short description of what will
1076 happen to your video with the current settings.  In the example of
1077 <xref linkend="fig-video-tab"/>, DCP-o-matic is telling you that the
1078 video file is 1920x1080 pixels and it has square pixels (a pixel
1079 aspect ratio of 1.00) hence its display aspect ratio is 1.78:1.  Since
1080 the controls specify &lsquo;16.9&rsquo; for the ratio, DCP-o-matic
1081 does not scale the image but pads it to the DCP's container ratio of
1082 1.85:1.  For a 2K DCP this is 1998x1080 pixels.
1083 </para>
1084
1085 <para>
1086 This description also gives the frame rate of the content and what
1087 will happen to it when it is played at the DCP's frame rate.  See
1088 <xref linkend="ch-frame-rates"/> for details of DCP-o-matic's
1089 frame-rate conversion.
1090 </para>
1091
1092 </section>
1093
1094 </section>
1095
1096
1097 <!-- ============================================================== -->
1098 <section>
1099 <title>Audio</title>
1100
1101 <para>
1102 The <guilabel>Audio</guilabel> tab controls properties of the image, as shown in <xref linkend="fig-audio-tab"/>.
1103 </para>
1104
1105 <figure id="fig-audio-tab">
1106   <title>Audio settings tab</title>
1107   <mediaobject>
1108     <imageobject>
1109        <imagedata fileref="screenshots/audio-tab&scs;"/>
1110     </imageobject>
1111   </mediaobject>
1112 </figure>
1113
1114 <!-- ============================================================== -->
1115 <section>
1116 <title>The audio map</title>
1117
1118 <para>
1119 The section at the bottom of the audio tab is the &lsquo;audio
1120 map&rsquo;.  This governs how sound from the content will be arranged
1121 in the DCP.
1122 </para>
1123
1124 <para>
1125 Down the left-hand side of the map is the list of audio channels in
1126 the currently-selected piece of content.  These are labelled with two
1127 numbers; the first is the stream index within the content and the
1128 second is the channel number within that stream.  Some content will
1129 have different streams for different languages or audio mixes.  Along
1130 the top is each channel in the DCP.  A green box means that the
1131 corresponding content channel will be copied into the corresponding
1132 DCP channel.
1133 </para>
1134
1135 <para>
1136 When content channels are copied into DCP channels they can be done
1137 with variable gain.  If, for example, you want to copy a channel
1138 as-is, you can set a gain of 0dB.  Alternatively, if you want to mix
1139 two channels into one, you may want to use a gain of -6dB on each one
1140 to prevent clipping when the two channels are added.
1141 </para>
1142
1143 <para>
1144 The green boxes of the audio mapping view tell you (very roughly) how
1145 much gain is applied to each channel.  A full-height box means 0dB
1146 (i.e. unity) gain.  Any less height indicates lower gain.
1147 </para>
1148
1149 <para>
1150 To map one channel to another with 0dB gain, click in the empty box
1151 and it will turn green to reflect the mapping.  A second click will
1152 turn the mapping back off.  To set some other gain, right-click on the
1153 box to open the gain menu.  This allows you to set
1154 <guilabel>Off</guilabel> (no mapping or negative infinity gain),
1155 <guilabel>Full</guilabel> (0dB gain), -6dB gain or
1156 <guilabel>Edit</guilabel> which allows you to set the required gain
1157 precisely.
1158 </para>
1159
1160 <para>
1161 Consider, for example, the case in <xref linkend="fig-audio-map-eg1"/>.
1162 </para>
1163
1164 <figure id="fig-audio-map-eg1">
1165   <title>Audio map example 1</title>
1166   <mediaobject>
1167     <imageobject>
1168        <imagedata fileref="screenshots/audio-map-eg1&scs;"/>
1169     </imageobject>
1170   </mediaobject>
1171 </figure>
1172
1173 <para>
1174 Here, we have two channels in the source which are mapped to left and
1175 right, respectively, in the DCP.  The full green boxes show that the
1176 mapping is at unity gain (0dB) in each case.  Imagine that we modify
1177 the settings to those shown in <xref linkend="fig-audio-map-eg2"/>
1178 </para>
1179
1180 <figure id="fig-audio-map-eg2">
1181   <title>Audio map example 2</title>
1182   <mediaobject>
1183     <imageobject>
1184        <imagedata fileref="screenshots/audio-map-eg2&scs;"/>
1185     </imageobject>
1186   </mediaobject>
1187 </figure>
1188
1189 <para>
1190 We now have the content's streams mapped to left and right and also
1191 mixed together and placed in the DCP's centre channel.  The smaller
1192 green boxes on the centre mappings show that those channels are added
1193 with some non-unity gain; you can see by hovering the mouse pointer
1194 over those boxes that the gain for content channels 1 and 2 is -6dB
1195 when being sent to the centre channel and 0dB when being sent to left
1196 and right.
1197 </para>
1198
1199 <figure id="fig-audio-map-eg3">
1200   <title>Audio map example 3</title>
1201   <mediaobject>
1202     <imageobject>
1203        <imagedata fileref="screenshots/audio-map-eg3&scs;"/>
1204     </imageobject>
1205   </mediaobject>
1206 </figure>
1207
1208 <para>
1209 As a final example, the map in <xref linkend="fig-audio-map-eg3"/>
1210 shows the mapping of a 5.1 source into a 5.1 DCP.
1211 </para>
1212
1213 </section>
1214
1215
1216 <!-- ============================================================== -->
1217 <section>
1218   <title>Other controls</title>
1219
1220 <para>
1221 The <guilabel>Use this DCP's audio as OV and make VF</guilabel>
1222 checkbox is only applicable if the selected content is an existing
1223 DCP.  It allows you to make a VF DCP, using the audio content from the
1224 existing DCP by referencing it (rather than copying).  See <xref
1225 linkend="sec-overlay"/>.
1226 </para>
1227
1228 <para>
1229 <guilabel>Show graphs of audio levels</guilabel> will analyse the
1230 audio of the selected content and plot it on a graph.  See <xref
1231 linkend="sec-show-audio"/> for more details.
1232 </para>
1233
1234 <para>
1235 &lsquo;Audio Gain&rsquo; is used to alter the volume of the
1236 soundtrack.  The specified gain (in dB) will be applied to each sound
1237 channel of your content before it is written to the DCP.
1238 </para>
1239
1240 <para>
1241 If you use a sound processor that DCP-o-matic knows about, it can help
1242 you calculate changes in gain that you should apply.  Say, for
1243 example, that you make a test DCP and find that you have to run it at
1244 volume 5 instead of volume 7 to get a good sound level in the screen.
1245 If this is the case, click the <guilabel>Calculate...</guilabel>
1246 button next to the audio gain entry, and the dialogue box in <xref
1247 linkend="fig-calculate-audio-gain"/> will open.
1248 </para>
1249
1250 <figure id="fig-calculate-audio-gain">
1251   <title>Calculating audio gain</title>
1252   <mediaobject>
1253     <imageobject>
1254       <imagedata fileref="screenshots/calculate-audio-gain&scs;"/>
1255     </imageobject>
1256   </mediaobject>
1257 </figure>
1258
1259 <para>
1260 For our example, put 5 in the first box and 7 in the second and click
1261 <guilabel>OK</guilabel>.  DCP-o-matic will calculate the audio gain
1262 that it should apply to make this happen.  Then you can re-make the
1263 DCP (this will be reasonably fast, as the video data will already have
1264 been done) and it should play back at the correct volume with 7 on
1265 your sound-rack fader.
1266 </para>
1267
1268 <para>
1269 Current versions of DCP-o-matic only know about the Dolby CP650 and
1270 CP750.  If you use a different sound processor, and know the gain
1271 curve of its volume control, <ulink url="mailto:carl@dcpomatic.com">get in
1272 touch</ulink>.
1273 </para>
1274
1275 <para>
1276 <guilabel>Audio Delay</guilabel> is used to adjust the synchronisation
1277 between audio and video.  A positive delay will move the audio later
1278 with respect to the video, and a negative delay will move it earlier.
1279 </para>
1280
1281 </section>
1282 </section>
1283
1284
1285 <!-- ============================================================== -->
1286 <section>
1287 <title>Subtitles</title>
1288
1289 <para>
1290 The subtitles tab contains settings related to subtitles in your
1291 content, as shown in <xref linkend="fig-subtitles-tab"/>.
1292 </para>
1293
1294 <figure id="fig-subtitles-tab">
1295   <title>Subtitle settings tab</title>
1296   <mediaobject>
1297     <imageobject>
1298        <imagedata fileref="screenshots/subtitles-tab&scs;"/>
1299     </imageobject>
1300   </mediaobject>
1301 </figure>
1302
1303 <para>
1304 DCP-o-matic can either:
1305 </para>
1306
1307 <itemizedlist>
1308   <listitem>Extract subtitles that are embedded in video files, or</listitem>
1309   <listitem>Use subtitles from SubRip (<code>.srt</code>), SubStation
1310   Alpha (<code>.ssa</code> or <code>.ass</code>) or DCP XML files.  You may find the great
1311   free program <ulink
1312   url="http://www.nikse.dk/subtitleedit/">Subtitle Edit</ulink> useful
1313   for creating such files.</listitem>
1314 </itemizedlist>
1315
1316 <para>
1317 Embedded subtitles are usually represented using a set of bitmaps,
1318 especially on files that have come from DVD or BluRay.  Such subtitles
1319 can (currently) only be &lsquo;burnt&rsquo; into the DCP (that is,
1320 they are included in the image and not overlaid by the projector).
1321 </para>
1322
1323 <para>
1324 With SubRip, SubStation Alpha or DCP subtitles you have the choice to
1325 either burn-in or include the subtitles as separate subtitle
1326 &lsquo;asset&rsquo; within your DCP (in which case the projector
1327 overlays them onto the image on playback).  The difference between
1328 burn-in and overlay is illustrated by <xref linkend="fig-burn-in"/>
1329 and <xref linkend="fig-discrete"/>.
1330 </para>
1331
1332 <figure id="fig-burn-in">
1333   <title>Burnt-in subtitles</title>
1334   <mediaobject>
1335     <imageobject>
1336        <imagedata scale="100" fileref="diagrams/burn-in&dia;"/>
1337     </imageobject>
1338   </mediaobject>
1339 </figure>
1340
1341 <figure id="fig-discrete">
1342   <title>Separate subtitles</title>
1343   <mediaobject>
1344     <imageobject>
1345        <imagedata scale="100" fileref="diagrams/discrete&dia;"/>
1346     </imageobject>
1347   </mediaobject>
1348 </figure>
1349
1350 <para>
1351 The advantage of separate subtitles is that the same video content can
1352 be used for DCPs in many different languages.  This means that only a
1353 small text file needs to be changed for each target language, rather
1354 than a large video file.  It also means that the time-consuming video
1355 encoding need only be done once for the project rather than once for
1356 every language.
1357 </para>
1358
1359 <para>
1360 Select the <guilabel>Use Subtitles</guilabel> check-box to enable
1361 the subtitles in the selected content.
1362 </para>
1363
1364 <para>
1365 Select the <guilabel>Burn subtitles into image</guilabel> check-box to
1366 burn these subtitles into the image; if this is not ticked the
1367 subtitles will be included separately in the DCP to be rendered by the
1368 projector.  This check-box will always be ticked if you are using
1369 embedded &lsquo;image&rsquo; subtitles.
1370 </para>
1371
1372 <para>
1373 The <guilabel>X Offset</guilabel> and <guilabel>Y Offset</guilabel>
1374 controls move the subtitles around within the image.  The offsets are
1375 expressed as a percentage of the video frame size; 100% X offset is
1376 the entire width of the frame, and 100% Y offset is the entire height.
1377 Hence, to move the subtitles down by half the frame height you would
1378 use a Y offset of 50%.
1379 </para>
1380
1381 <para>
1382 The <guilabel>X Scale</guilabel> and <guilabel>Y Scale</guilabel>
1383 controls scale the subtitles.  Scale values of 1 make the subtitles
1384 the same size (relative to the size of the image) as they are on the
1385 original.  Values lower than 1 make them smaller, and values higher
1386 make them larger.  You can stretch the subtitles in either direction
1387 by specifying different values for X and Y scale.  Subtitles from DVD
1388 and Blu Ray sources are frequently larger (relative to the video
1389 frame) than those typically used for DCP, so it is often useful to
1390 scale such subtitles down using these controls.
1391 </para>
1392
1393 <para>
1394 The <guilabel>Line spacing</guilabel> control adjusts the line spacing
1395 of the subtitles.  This only works for non-embedded (text) subtitles.
1396 </para>
1397
1398 <para>
1399 The <guilabel>Stream</guilabel> control changes the subtitle stream
1400 that is used when the content has more than one.
1401 </para>
1402
1403 <para>
1404 If you are using non-embedded (text) subtitles you can see the
1405 subtitle text and timings by clicking the <guilabel>View...</guilabel>
1406 button, or specify the fonts that should be used by clicking <guilabel>Fonts...</guilabel>.
1407 </para>
1408
1409 <para>
1410 With any subtitles you can click <guilabel>Appearance...</guilabel> to
1411 change how the subtitles look.
1412 </para>
1413
1414 </section>
1415
1416
1417 <!-- ============================================================== -->
1418 <section>
1419 <title>Timing</title>
1420
1421 <para>
1422 The timing tab contains settings related to the timing of your
1423 content, as shown in <xref linkend="fig-timing-tab-detail"/>.
1424 </para>
1425
1426 <figure id="fig-timing-tab-detail">
1427   <title>Timing settings tab</title>
1428   <mediaobject>
1429     <imageobject>
1430        <imagedata fileref="screenshots/timing-tab&scs;"/>
1431     </imageobject>
1432   </mediaobject>
1433 </figure>
1434
1435 <para>
1436 Most of the timing tab's entries are <emphasis>time-codes</emphasis>.
1437 These are expressed as four numbers, as shown in <xref
1438 linkend="fig-timecode"/>.
1439 </para>
1440
1441 <figure id="fig-timecode">
1442   <title>Timecode</title>
1443   <mediaobject>
1444     <imageobject>
1445        <imagedata scale="100" fileref="diagrams/timecode&dia;"/>
1446     </imageobject>
1447   </mediaobject>
1448 </figure>
1449
1450 <para>
1451 <guilabel>Position</guilabel> is the time at which this piece of
1452 content should start within the DCP.  In most cases, this will be
1453 <code>0:0:0:0</code> to make the content start at the beginning of the
1454 DCP.
1455 </para>
1456
1457 <para>
1458 <guilabel>Full length</guilabel> is the length of the piece of
1459 content.  This can only be set for still-image content: for video or
1460 sound content, it is fixed by the nature of the content file.  If
1461 still-image content is being used you can set the length for which it
1462 should be displayed using this control.
1463 </para>
1464
1465 <para>
1466 <guilabel>Trim from start</guilabel> specifies the amount that should
1467 be trimmed from the start of the content.  You can set this amount to
1468 trim up to the current preview position by clicking <guilabel>Trim up
1469 to current position</guilabel>.
1470 </para>
1471
1472 <para>
1473 <guilabel>Trim from end</guilabel> specifies the amount that should be
1474 trimmed from the end of the content.  You can set this amount to trim
1475 after the current preview position by clicking <guilabel>Trim after to
1476 current position</guilabel>.
1477 </para>
1478
1479 <para>
1480 <guilabel>Play length</guilabel> indicates how long this piece of
1481 content will be once the trims have been applied.  This will be equal
1482 to the full length minus <guilabel>trim-from-start</guilabel> and minus <guilabel>trim-from-end</guilabel>.
1483 </para>
1484
1485 <para>
1486 <guilabel>Video frame rate</guilabel> specifies the frame rate for
1487 still-image content.  It can also be used to override the detected
1488 frame rate of other content if DCP-o-matic has got it wrong.
1489 </para>
1490
1491 <para>
1492 Each timecode control has a <guilabel>Set</guilabel> which you should
1493 click when you have entered a new value for a timecode.  The
1494 <guilabel>Set</guilabel> button will make DCP-o-matic take account of
1495 any changes to the corresponding timecode.
1496 </para>
1497
1498 </section>
1499
1500
1501 <!-- ============================================================== -->
1502 <section>
1503 <title>Video processing pipeline</title>
1504
1505 <para>
1506 This section gives a little more detail about how DCP-o-matic process
1507 video as it takes it from a source and puts it into a DCP.
1508 </para>
1509
1510 <para>
1511 Consider, as a somewhat over-the-top example, that we have a 720 x 576
1512 image which is letterboxed with 36 black pixels each at the top and
1513 bottom, and the video content within the letterbox should be presented
1514 in the DCP at ratio of 2.39:1 within a 1.85:1 frame (such as might
1515 happen with a trailer).  The source image is shown in <xref
1516 linkend="fig-pipeline1"/>.
1517 </para>
1518
1519 <figure id="fig-pipeline1">
1520   <title>Example image to demonstrate video processing</title>
1521   <mediaobject>
1522     <imageobject>
1523        <imagedata scale="100" fileref="diagrams/pipeline1&dia;"/>
1524     </imageobject>
1525   </mediaobject>
1526 </figure>
1527
1528 <para>
1529 DCP-o-matic runs through the following steps when preparing an image for a DCP:
1530 </para>
1531
1532 <itemizedlist>
1533 <listitem>Crop</listitem>
1534 <listitem>Scale</listitem>
1535 <listitem>Place in container</listitem>
1536 </itemizedlist>
1537
1538 <para>
1539 First, some amount of the image can be cropped.  This is almost always
1540 used to remove black borders (letterboxing and/or pillarboxing) around
1541 images.
1542 </para>
1543
1544 <para>
1545 In our example image, we would use 36 pixels of crop from the top and
1546 bottom.  This would give the new image shown in <xref
1547 linkend="fig-pipeline2"/>.
1548 </para>
1549
1550 <figure id="fig-pipeline2">
1551   <title>Example image after cropping</title>
1552   <mediaobject>
1553     <imageobject>
1554        <imagedata scale="100" fileref="diagrams/pipeline2&dia;"/>
1555     </imageobject>
1556   </mediaobject>
1557 </figure>
1558
1559 <para>
1560 The next step is to scale the image.  Since this content should be
1561 presented in a 2.39:1 aspect ratio inside a 1.85:1 DCP we would select
1562 <guilabel>Scope</guilabel> from the <guilabel>Scale to</guilabel>
1563 option in the <guilabel>Video</guilabel> tab and
1564 <guilabel>Flat</guilabel> from the <guilabel>Container</guilabel>
1565 option in the <guilabel>DCP</guilabel> tab.
1566 </para>
1567
1568 <para>The <guilabel>Scale to</guilabel> option should always be set to
1569 the aspect ratio at which the content should be seen.  The
1570 <guilabel>Container</guilabel> option should be set to the preset that
1571 you want to use on the projector.  Of course, these two settings will
1572 often be the same.
1573 </para>
1574
1575 <para>
1576 Given the scaling and container information, DCP-o-matic will look at
1577 the DCP's container size, and then scale the source image up until one
1578 or both of its dimensions (width, height or both) fits the size of the
1579 container, all the while preserving the desired aspect ratio.
1580 </para>
1581
1582 <para>
1583 In our example here, the DCP's container is specified as 1.85:1 (so
1584 that the DCP will play back correctly using the projector's
1585 &lsquo;Flat&rsquo; preset).  At 2K, 1.85:1 is 1998 pixels by 1080.
1586 Scaling the source up whilst preserving its 1.85:1 aspect ratio will
1587 result in the image hitting the sides of the container first, at a
1588 size of 1998 x 836.  This gives us a new version of the image as shown
1589 in <xref linkend="fig-pipeline3"/>.
1590 </para>
1591
1592 <figure id="fig-pipeline3">
1593   <title>Example image after cropping and scaling</title>
1594   <mediaobject>
1595     <imageobject>
1596        <imagedata scale="100" fileref="diagrams/pipeline3&dia;"/>
1597     </imageobject>
1598   </mediaobject>
1599 </figure>
1600
1601 <para>
1602 The final step is to place the image into the DCP.  In this case,
1603 since we have a 2.39:1 image that should be presented as a 1.85:1 DCP,
1604 we have set the <guilabel>container</guilabel> in the
1605 <guilabel>DCP</guilabel> tab to be Scope.  Since the content has been
1606 scaled to 1998 x 836, and a Flat container is 1998 x 1080, there will
1607 be some black bars at the top and bottom of the image.  DCP-o-matic
1608 shares out this black equally, as shown in <xref
1609 linkend="fig-pipeline3"/>.
1610 </para>
1611
1612 <figure id="fig-pipeline4">
1613   <title>Example image in the DCP</title>
1614   <mediaobject>
1615     <imageobject>
1616        <imagedata scale="100" fileref="diagrams/pipeline4&dia;"/>
1617     </imageobject>
1618   </mediaobject>
1619 </figure>
1620
1621 </section>
1622
1623
1624 <section>
1625   <title>Copy and paste settings</title>
1626
1627 <para>
1628 Once you have set up a piece of content it is possible to copy the
1629 settings you have applied to another piece of content.  To do this,
1630 select the content to copy from and choose <guilabel>Copy</guilabel>
1631 from the <guilabel>Edit</guilabel> menu.  Then select the content to
1632 copy to and choose <guilabel>Paste</guilabel>.  A dialogue box will
1633 open to allow you to choose which settings you want to copy.  Clicking
1634 <guilabel>OK</guilabel> will apply the copied settings.
1635 </para>
1636
1637 </section>
1638
1639
1640 </chapter>
1641
1642
1643 <!-- ============================================================== -->
1644 <chapter xml:id="ch-dcp" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
1645 <title>DCP settings</title>
1646
1647 <para>
1648 This chapter describes the settings that apply to the whole DCP.  The
1649 controls for these settings are in the <guilabel>DCP</guilabel> tab of
1650 the main window, as shown in <xref linkend="fig-dcp-tab"/>.
1651 </para>
1652
1653 <figure id="fig-dcp-tab">
1654   <title>DCP settings tab</title>
1655   <mediaobject>
1656     <imageobject>
1657        <imagedata fileref="screenshots/dcp-tab&scs;"/>
1658     </imageobject>
1659   </mediaobject>
1660 </figure>
1661
1662 <para>
1663 The first thing here is the name.  This is generally set to the title
1664 of the film that is being encoded.  If <guilabel>Use ISDCF
1665 name</guilabel> is not ticked, the name that you specify will be used
1666 as-is for the name of the DCP.  If <guilabel>Use ISDCF name</guilabel>
1667 is ticked, the name that you enter will be used as part of a
1668 ISDCF-compliant name.
1669 </para>
1670
1671 <para>
1672 Underneath the name field is a preview of the name that the DCP will
1673 get.  To use a ISDCF-compliant name, tick the <guilabel>Use ISDCF
1674 name</guilabel> check-box.  The ISDCF name will be composed using details
1675 of your content's soundtrack, the current date and other things that
1676 can be specified in the ISDCF name details dialogue box, which you can
1677 open by clicking on the <guilabel>Details</guilabel> button.
1678 </para>
1679
1680 <para>
1681 If you want to take the ISDCF-compliant name that DCP-o-matic
1682 generates and modify it, click <guilabel>Copy as name</guilabel> and
1683 the ISDCF name will be copied into the <guilabel>Name</guilabel> box.
1684 You can then edit it as you wish.  The DCP name should not matter (in
1685 that it should not affect how the DCP ingests or plays) but
1686 projectionists will appreciate it if you use the standard naming
1687 scheme as it makes it easier to identify details of the content.
1688 </para>
1689
1690 <para>
1691 The <guilabel>Content Type</guilabel> option can be
1692 &lsquo;feature&rsquo;, &lsquo;trailer&rsquo; or whatever; select the
1693 required type from the drop-down list.  On some projection systems
1694 this will affect where your content appears in the projector's server
1695 user interface, so take care to select an appropriate type.
1696 </para>
1697
1698 <para>
1699 The <guilabel>Signed</guilabel> check-box sets whether or not the DCP
1700 is signed.  This is rarely important; if in doubt, tick it.
1701 </para>
1702
1703 <para>
1704 The <guilabel>Encrypted</guilabel> check-box will set whether the DCP
1705 should be encrypted or not.  If this is ticked, the DCP will require a
1706 KDM to play back.  Encryption is discussed in <xref
1707 linkend="ch-encryption"/>.
1708 </para>
1709
1710 <para>
1711 If you use encryption DCP-o-matic will generate a random encryption
1712 key for you.  To specify your own key, click the
1713 <guilabel>Edit..</guilabel> button next to the key.
1714 </para>
1715
1716 <para>
1717 The <guilabel>Reels</guilabel> and <guilabel>Reel length</guilabel>
1718 controls specify how the DCP will be split up into
1719 &lsquo;reels&rsquo;.  See <xref linkend="sec-reels"/> below.
1720 </para>
1721
1722 <para>
1723 The <guilabel>Standard</guilabel> option specifies which of the two
1724 DCP standards DCP-o-matic should use.  If in doubt, use SMPTE (the
1725 more modern of the two).
1726 </para>
1727
1728 <para>
1729 Ticking the <guilabel>Upload DCP to TMS after it is made</guilabel>
1730 will ask DCP-o-matic to copy the finished DCP to your configured TMS (see <xref linkend="sec-prefs-tms"/>).
1731 </para>
1732
1733 <para>
1734 At the bottom of the DCP tab are a further two tabs, one each to
1735 contain the settings for the DCP's video and audio parts.
1736 </para>
1737
1738 <para>
1739 The <guilabel>Container</guilabel> option sets the ratio of the image
1740 in the DCP.  If this ratio is different to the ratio used for any
1741 content, DCP-o-matic will pad the content with black.  In simple cases
1742 this should be set to the same ratio as that for the the primary piece
1743 of video content.  Alternatively, you might want to pillarbox a small
1744 format into a Flat container: in this case, select the small format
1745 for the content's ratio and &lsquo;Flat&rsquo; for the DCP.
1746 </para>
1747
1748 <para>
1749 The <guilabel>Frame Rate</guilabel> control sets the frame rate of
1750 your DCP.  This can be a little tricky to get right.  Ideally, you
1751 want it to be the same as the video content that you are using.  If it
1752 is not the same, DCP-o-matic must resort to some tricks to alter your
1753 content to fit the specified frame rate.  Frame rates are discussed in
1754 more detail in <xref linkend="ch-frame-rates"/>.
1755 </para>
1756
1757 <para>
1758 The <guilabel>Use best</guilabel> button sets the DCP video frame rate
1759 to what DCP-o-matic thinks is the best given the content that you have
1760 added.
1761 </para>
1762
1763 <para>
1764 The <guilabel>3D</guilabel> button will set your DCP to 3D mode if it
1765 is checked.  A 3D DCP will then be created, and any 2D content will be
1766 made 3D compatible by repeating the same frame for both left and right
1767 eyes.  A 3D DCP can be played back on many 3D systems (e.g. Dolby 3D,
1768 Real-D etc.) but not on a 2D system.
1769 </para>
1770
1771 <para>
1772 The <guilabel>Resolution</guilabel> tab allows you to choose the
1773 resolution for your DCP.  Use 2K unless you have content that is of
1774 high enough resolution to be worth presenting in 4K.
1775 </para>
1776
1777 <para>
1778 The <guilabel>JPEG2000 bandwidth</guilabel>; setting changes how big
1779 the final image files used within the DCP will be.  Larger numbers
1780 will give better quality, but correspondingly larger DCPs.  The
1781 bandwidth can be between 50 and 250 megabits per second (Mbit/s).
1782 Most commercial DCPs use bit rates between 75 and 125 Mbit/s.
1783 </para>
1784
1785 <para>
1786 The <guilabel>Audio Channels</guilabel> control sets the number of
1787 audio channels that the DCP will have.  If the DCP has any channels
1788 for which there is no content audio they will be replaced by silence.
1789 You can only set an even number of channels here, since that is
1790 required by the DCI standard.  If you want an odd number of channels,
1791 set the DCP channel count to one greater than you need and the
1792 unused channel will be filled with silence.
1793 </para>
1794
1795 <para>
1796 The <guilabel>Processor</guilabel> control allows you to select a
1797 process to apply to the audio before it goes into the DCP.  Three processes are currently provided:
1798 </para>
1799
1800 <itemizedlist>
1801 <listitem>Mid-side decode &mdash; this will take a L/R
1802 stereo input and extract the common part (corresponding to the
1803 &lsquo;Mid&rsquo; in a mid-side signal) into the DCP's centre channel.
1804 The remaining L/R parts will be kept in the L/R channels of the DCP.
1805 This may be useful to make near-field L/R mixes more compatible with
1806 cinema audio systems.</listitem>
1807 <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:
1808 <itemizedlist>
1809 <listitem>DCP L is input L bandpass-filtered between 1.9kHz and 4.8kHz.</listitem>
1810 <listitem>DCP R is input R bandpass-filtered between 1.9kHz and 4.8kHz.</listitem>
1811 <listitem>DCP C is input L mixed with input R, taken down by 3dB and then bandpass-filtered between 150Hz and 1.9kHz.</listitem>
1812 <listitem>DCP Lfe is input L mixed with input R, taken down by 3dB and then bandpass-filtered between 20Hz and 150Hz.</listitem>
1813 <listitem>DCP Ls is input L bandpass-filtered between 4.8kHz and 20kHz.</listitem>
1814 <listitem>DCP Rs is input R bandpass-filtered between 4.8kHz and 20kHz.</listitem>
1815 </itemizedlist>
1816 <para>
1817 This upmixing algorithm is due to Gérald Maruccia.
1818 </para>
1819 </listitem>
1820 <listitem>Stereo to 5.1 up-mixer B &mdash; this uses a different approach:
1821 <itemizedlist>
1822   <listitem>DCP L is input L.</listitem>
1823   <listitem>DCP R is input R.</listitem>
1824   <listitem>DCP C is input L + input R taken down by 3dB.</listitem>
1825   <listitem>DCP Lfe is DCP C bandpass filtered between 20Hz and 150Hz.</listitem>
1826   <listitem>DCP Ls and Rs are input L - input R with a 20ms delay.</listitem>
1827 </itemizedlist>
1828 </listitem>
1829 </itemizedlist>
1830
1831 <!-- ============================================================== -->
1832 <section xml:id="sec-reels">
1833 <title>Reels</title>
1834
1835 <para>
1836 A &lsquo;reel&rsquo; in a DCP is a subsection of the DCP, in the same
1837 way as a 35mm reel is a section of a film.  A DCP can be split up into
1838 any number of reels and the joins (the equivalent to 35mm splices)
1839 between the reels are seamless.
1840 </para>
1841
1842 <para>
1843 There is no reason why you can't just use a single reel for the whole
1844 of your DCP, as there is no limit on their length.  Many people choose
1845 to do this.
1846 </para>
1847
1848 <para>
1849 There are, however, some possible advantages of splitting things up
1850 into reels:
1851 </para>
1852
1853 <itemizedlist>
1854 <listitem>
1855 The picture, sound and subtitle data of the DCP will be
1856 split up into more smaller files on disk, rather than fewer larger
1857 files.  This can be useful if the DCP is to be transferred on storage
1858 that have file size limits.  The FAT32 filesystem, for example, can
1859 only hold files smaller than 4Gb.  A 6Gb DCP with a single reel could
1860 not be transferred using a FAT32-formatted disk.  If that DCP were
1861 split up into two 3Gb reels it could be transferred.
1862 </listitem>
1863 <listitem>
1864 It is easier to re-use DCP components if they are in reels.  Consider,
1865 for example, a film company who wants to put a 5 second ident onto the
1866 beginning of DCPs that they distribute.  If they receive a feature
1867 film DCP they can modify it to add their ident as a separate reel.
1868 This is easier than attaching the picture data in the DCP.
1869 </listitem>
1870 </itemizedlist>
1871
1872 <para>
1873 DCP-o-matic offers three options for setting up the reels in your DCP:
1874 single reel, split by video content or custom.
1875 </para>
1876
1877 <para>
1878 <guilabel>Single reel</guilabel>, as its name suggests, keeps the whole DCP as one reel.
1879 This is a perfectly good option if you have no particular reason to
1880 need reels.
1881 </para>
1882
1883 <para>
1884 <guilabel>Split by video content</guilabel> puts each piece of source
1885 video content in its own reel, as shown in <xref linkend="fig-reels-by-video"/>.
1886 </para>
1887
1888 <figure id="fig-reels-by-video">
1889 <title>Making reels using split by video content</title>
1890 <mediaobject><imageobject><imagedata scale="100" fileref="diagrams/reels-by-video&dia;"/></imageobject></mediaobject>
1891 </figure>
1892
1893 <para>
1894 Here we have three video files (<code>ident.mp4</code>,
1895 <code>feature.ts</code> and <code>cred.mov</code>).  With
1896 <guilabel>split by video content</guilabel> DCP-o-matic makes a new
1897 reel to hold each video file.
1898 </para>
1899
1900 <para>
1901 <guilabel>Custom</guilabel> splits reels by the size of the files that
1902 will make up their video content.  With <guilabel>Custom</guilabel>
1903 you must specify a reel length in Gb.  Then no file in the DCP will be larger than this reel length.
1904 </para>
1905
1906 </section>
1907
1908
1909 <!-- ============================================================== -->
1910 <section xml:id="sec-show-audio">
1911 <title>Show audio</title>
1912
1913 <para>
1914 The <guilabel>Show Audio</guilabel> button will instruct DCP-o-matic
1915 to examine the audio in your content and plot a graph of its level
1916 over time.  This can be useful for getting a rough idea of how loud
1917 the sound will be in the cinema auditorium.  A typical plot is shown
1918 in <xref linkend="fig-audio-plot"/>
1919 </para>
1920
1921 <figure id="fig-audio-plot">
1922   <title>Audio plot</title>
1923   <mediaobject>
1924     <imageobject>
1925        <imagedata fileref="screenshots/audio-plot&scs;"/>
1926     </imageobject>
1927   </mediaobject>
1928 </figure>
1929
1930 <para>
1931 The plot gives the audio level (vertical axis, in dB) with time
1932 (horizontal axis).  0dB represents full scale, so if there is anything
1933 near this you are in danger of clipping the projector's audio outputs.
1934 </para>
1935
1936 <para>
1937 There are two plot types: the peak level and the RMS, which can be
1938 shown or hidden using the check-boxes on the right hand side of the
1939 window.
1940 </para>
1941
1942 <para>
1943 The channel check-boxes will show or hide the plot(s) for
1944 the corresponding channels in the DCP.
1945 </para>
1946
1947 <para>
1948 The smoothing slider applies a variable degree of temporal smoothing
1949 to the plots, which can make them easier to read in some cases.
1950 </para>
1951
1952 <para>
1953 Obviously the audio plot is no substitute for listening in an
1954 auditorium, but it can be useful to get levels in the right rough area.
1955 </para>
1956
1957 </section>
1958
1959 </chapter>
1960
1961
1962 <!-- ============================================================== -->
1963 <chapter xml:id="ch-templates" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
1964 <title>Templates</title>
1965
1966 <para>
1967 If you frequently make DCPs with similar settings you may find it
1968 useful to use templates.
1969 </para>
1970
1971 <para>
1972 Say, for example, you often make 4K feature DCPs from video files in
1973 &rsquo;scope at 25fps.  You can speed up this process by following
1974 these steps:
1975 </para>
1976
1977 <itemizedlist>
1978   <listitem>Create a film with any content and set it up how you like;
1979   in our example, set the content to scale to DCP, the DCP resolution
1980   to 4K, and so on.</listitem>
1981   <listitem>Choose <guilabel>Save as template...</guilabel> from the <guilabel>File</guilabel> menu.</listitem>
1982   <listitem>Enter a name for your template.</listitem>
1983 </itemizedlist>
1984
1985 <para>
1986 Then in the future you can create a new film, tick the
1987 <guilabel>Template</guilabel> box and choose your previously-saved
1988 template.  The basic film's settings will come from your template, and
1989 when you add some content it will take on the settings of the
1990 first similarly-typed piece of content in your template.
1991 </para>
1992
1993 <para>
1994 For example if the template has a piece of video content and some
1995 subtitles, any video that you add to the new film will take on the
1996 settings of the video in the template.  Similarly, any subtitles that
1997 you add will take on the settings of the subtitles from the template.
1998 </para>
1999
2000 <para>
2001 The following settings from the <guilabel>DCP</guilabel> tab are saved
2002 in templates:
2003 </para>
2004
2005 <itemizedlist>
2006   <listitem>&ldquo;Use ISDCF name&rdquo; checkbox</listitem>
2007   <listitem>Content type (FTR, TLR etc.)</listitem>
2008   <listitem>Container</listitem>
2009   <listitem>Resolution</listitem>
2010   <listitem>JPEG200 bandwidth</listitem>
2011   <listitem>Video frame rate</listitem>
2012   <listitem>Signed and encrypted checkboxes</listitem>
2013   <listitem>Audio channels</listitem>
2014   <listitem>Standard (Interop / SMPTE)</listitem>
2015   <listitem>Audio processor</listitem>
2016   <listitem>Reel type and length</listitem>
2017   <listitem>Upload after make DCP checkbox</listitem>
2018 </itemizedlist>
2019
2020 <para>
2021 In addition to this, the settings (but not the filenames) of any
2022 content in the template are stored, as discussed above.  The status of
2023 the <guilabel>Keep video and subtitles in sequence</guilabel> checkbox
2024 from the timeline is also preserved.
2025 </para>
2026
2027 </chapter>
2028
2029
2030
2031 <!-- ============================================================== -->
2032 <chapter xml:id="ch-encryption" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
2033 <title>Encryption</title>
2034
2035 <para>
2036 It is not required that DCPs be encrypted, but they can be.  This
2037 chapter discusses the basic principles of DCP encryption, and how
2038 DCP-o-matic can create encrypted DCPs and KDMs for them.
2039 </para>
2040
2041
2042 <!-- ============================================================== -->
2043 <section>
2044 <title>Basics</title>
2045
2046 <para>
2047 DCPs can be encrypted.  This means that the picture and sound data are
2048 encoded in such a way that only cinemas &lsquo;approved&rsquo; by the
2049 DCP's creators can read them.  In particular, this means copies of the
2050 DCP can be distributed by insecure means: if an ne'er-do-well called
2051 Mallory obtains a hard drive containing an encrypted DCP, there is no
2052 way that he can play it.  Only those cinemas who receive a correct key
2053 delivery message (KDM) can play the DCP.
2054 </para>
2055
2056
2057 <!-- ============================================================== -->
2058 <section>
2059 <title>How it works</title>
2060
2061 <para>
2062 This section attempts to summarise how DCP encryption works.  You can
2063 skip it if you like.  You may need some knowledge of encryption
2064 methods to understand it.
2065 </para>
2066
2067 <para>
2068 We suppose that we are trying to send a DCP to
2069 Alice's cinema without a troublemaker called Mallory being able to
2070 watch it himself.
2071 </para>
2072
2073 <para>
2074 There are two main families of encryption techniques.  The first,
2075 symmetric-key encryption, allows us to encode some data using some
2076 numeric key.  After encoding, no-one can decode the data unless they
2077 know the key.
2078 </para>
2079
2080 <para>
2081 The first step in a DCP encryption is to encode its data with some key
2082 using symmetric-key encryption.  The encrypted DCP can then be sent
2083 anywhere, safe in the knowledge that even if Mallory got hold of a
2084 copy, he could not decrypt it.
2085 </para>
2086
2087 <para>
2088 Alice, however, needs to know the key so she can play the DCP in her
2089 cinema.  A simple approach might be for us to send Alice the key.
2090 However, if Mallory can intercept the DCP, he might also be able to
2091 intercept our communication of the key to Alice.  Furthermore, if Alice
2092 happened to know Mallory, she could just send him a copy of the key.
2093 </para>
2094
2095 <para>
2096 The clever bit in the process requires the use of public-key
2097 encryption.  With this technique we can encrypt a block of data using
2098 some &lsquo;public&rsquo; key.  That data can then only be decrypted
2099 using a corresponding private key which is
2100 <emphasis>different</emphasis> to the public key.  The private and
2101 public keys form a pair which are related mathematically, but it is
2102 extremely hard (or rather, virtually impossible) to derive the private
2103 key from the public key.
2104 </para>
2105
2106 <para>
2107 Public-key encryption allows us to distribute the DCP's key to Alice
2108 securely.  The manufacturer of Alice's projector generates a public
2109 and private key.  They hide the private key inside the projector where
2110 no-one can read it.  They then make the public key available to anyone
2111 who is interested.
2112 </para>
2113
2114 <para>
2115 DCP-o-matic has a similar arrangement except that it stores its
2116 private keys in the user's configuration file. See <xref
2117 linkend="sec-decrypting"/> for details of how to share DCP-o-matic's
2118 certificate so that others can make encrypted DCPs for DCP-o-matic.
2119 </para>
2120
2121 <para>
2122 We take our DCP's symmetric key and encrypt it using the public key of
2123 Alice's projector.  We send the result to Alice over email (using a
2124 format called a Key Delivery Message, or KDM).  Her projector then
2125 decrypts our message using its private key, yielding the magic
2126 symmetric key which can decrypt the DCP.
2127 </para>
2128
2129 <para>
2130 If is fine if Mallory intercepts our email to Alice, since the only
2131 key which can decrypt the message is the private key buried inside
2132 Alice's projector.  The projector manufacturer is very careful that
2133 no-one ever finds out what this key is.  Our DCP is secure: only Alice
2134 can play it back, since only her projector knows the key (even Alice
2135 does not).
2136 </para>
2137
2138 </section>
2139 </section>
2140
2141
2142 <!-- ============================================================== -->
2143 <section>
2144 <title>Encryption using DCP-o-matic</title>
2145
2146 <para>
2147 There are two steps to distributing an encrypted DCP.  First, the
2148 DCP's data must be encrypted, and secondly KDMs must be generated for
2149 those cinemas that are allowed to play the DCP.
2150 </para>
2151
2152 <para>
2153 The first part is simple: ticking the <guilabel>Encrypted</guilabel>
2154 box in the <guilabel>DCP</guilabel> tab will instruct DCP-o-matic to
2155 encrypt the DCP that it makes using a random key that DCP-o-matic
2156 generates.  The key will be written to the film's metadata file, which
2157 should be kept secure.
2158 </para>
2159
2160 <para>
2161 A DCP that is generated with the <guilabel>Encrypted</guilabel> box
2162 ticked will not play on any projector as-is (it will be marked as
2163 &lsquo;locked&rsquo;, or whatever the projector manufacturer's term
2164 is).
2165 </para>
2166
2167 <para>
2168 The second part of distributions is to generate KDMs for the cinemas
2169 that you wish to allow to play your DCP.  There are two approaches to
2170 this within DCP-o-matic: using the project, or using a DKDM.  These
2171 approaches are now described in turn.
2172 </para>
2173
2174 <section>
2175 <title>Creating KDMs from a DCP-o-matic project</title>
2176
2177 <para>
2178 You can create KDMs from inside a DCP-o-matic project using the
2179 <guilabel>Make KDMs</guilabel> option on the <guilabel>Jobs</guilabel>
2180 menu.  This will open the KDM dialogue box, as shown in <xref
2181 linkend="fig-kdm"/>.
2182 </para>
2183
2184 <figure id="fig-kdm">
2185   <title>KDM dialog</title>
2186   <mediaobject>
2187     <imageobject>
2188       <imagedata scale="40" fileref="screenshots/kdm&scs;"/>
2189     </imageobject>
2190   </mediaobject>
2191 </figure>
2192
2193 <para>
2194 In order to generate KDMs for a particular projector, you need to know
2195 its <emphasis>certificate</emphasis>.  These are usually made
2196 available by the projector manufacturers as text files with a
2197 <code>.pem</code> extension.
2198 </para>
2199
2200 <para>
2201 DCP-o-matic can store these certificates along with details of their
2202 cinemas and screens within those cinemas.  Each screen has a
2203 certificate for its projector (and optionally certificates for other
2204 trusted devices, such as the sound processor).  DCP-o-matic can
2205 generate KDMs for any screens that it knows about.
2206 </para>
2207
2208 <para>
2209 To add a cinema, click <guilabel>Add Cinema...</guilabel>.  This opens
2210 a dialogue box into which you can enter the cinema's name, and
2211 optionally an email address.  This email address can be used to
2212 get DCP-o-matic to deliver KDMs via email.
2213 </para>
2214
2215 <para>
2216 Once you have added a cinema, select it by clicking on its name, then
2217 click <guilabel>Add Screen...</guilabel>.  The resulting dialogue
2218 allows you to enter a name for the screen and load in its certificate
2219 from a file.  The certificate should be in SHA256 PEM format.
2220 </para>
2221
2222 <para>
2223 Alternatively, certificates for projection systems made by some
2224 manufacturers can be downloaded from databases provided by the
2225 manufacturer.  Currently this is supported for Doremi and Dolby
2226 equipment.  If you are targeting a screen with equipment by one of
2227 these manufacturers you can click <guilabel>Download</guilabel> then
2228 enter the serial number of the server in the screen and click
2229 <guilabel>Download</guilabel> again and, all being well, the certificate
2230 will be fetched.
2231 </para>
2232
2233 <para>
2234 Using the download system you will need to know the serial number of
2235 the media server in use in the screen.  Most cinema projection or
2236 technical departments will know these serial numbers.
2237 </para>
2238
2239 <para>
2240 Note that the reliability of the manufacturers' certificate databases
2241 cannot be guaranteed.  It is vital that KDMs are tested by the
2242 destination cinema will in advance of show time to identify any
2243 problems.
2244 </para>
2245
2246 <para>
2247 Once you have set up all the screens that you need KDMs for, select
2248 the CPL that you want to create the KDM for.  You can use the
2249 drop-down list to select the CPLs in the current film project, or load
2250 a CPL from somewhere else.  Select the cinemas and/or screens that you
2251 want KDMs for and fill in the start and end dates and times.
2252 </para>
2253
2254 <para>
2255 You must also select the type of KDM that you want to generate.  If in
2256 doubt, use <guilabel>Modified Transitional 1</guilabel>.
2257 </para>
2258
2259 <note>
2260 The differences between the three KDM types are fairly subtle.
2261 <guilabel>DCI Specific</guilabel> and <guilabel>DCI Any</guilabel> add
2262 a <code>&lt;ContentAuthenticator&gt;</code> tag to the KDM which
2263 allows the exhibitor to check that the DCP and KDM have come from a
2264 bona-fide source.  In addition, <guilabel>DCI Specific</guilabel> adds
2265 information on trusted devices to the KDM.  This allows the KDM
2266 creator to specify devices (such as sound processors) that are allowed
2267 to use keys delivered by the KDM.  At present it is not clear how
2268 widely the <guilabel>DCI Specific</guilabel> and <guilabel>DCI
2269 Any</guilabel> features are supported (or even tolerated) by servers
2270 so you are advised to use <guilabel>Modified Transitional
2271 1</guilabel>.
2272 </note>
2273
2274 <para>
2275 Finally, choose what you want to do with the KDMs.  They can be
2276 written to disk, to a location that you can specify by clicking
2277 <guilabel>Browse</guilabel>.  Alternatively, if you choose
2278 <guilabel>Send by email</guilabel> the KDMs will be zipped up and
2279 emailed to the appropriate cinema email addresses.  Click
2280 <guilabel>Make KDMs</guilabel> to generate the KDMs.
2281 </para>
2282
2283 </section>
2284
2285 <section>
2286 <title>Creating KDMs using a DKDM</title>
2287 </section>
2288
2289 <para>
2290 It can be inconvenient to need a whole DCP-o-matic project just to
2291 create KDMs for its film.  Perhaps you want to archive the project to
2292 save space, or create KDMs on a different machine.  In such situations
2293 it is easier to use a DKDM.  This is a normal KDM, but instead of
2294 being targeted at a projection system (to allow it to decrypt the
2295 content) it is targeted at a particular user's certificate.  This
2296 means that the certificate owner can create new KDMs for other users.
2297 The DKDM holds everything that is required to create further KDMs.
2298 </para>
2299
2300 <para>
2301 Sometimes it is useful to create DKDMs that can be used by
2302 DCP-o-matic.  If you create such a DKDM you can keep it and then, at
2303 any point in the future, use DCP-o-matic's standalone KDM creator to
2304 make KDMs for the DKDM's film for any cinema.
2305 </para>
2306
2307 <para>
2308 In other cases a DKDM is sent to a 3rd party so that they can create
2309 KDMs for your films.  This can be useful if, for example, you have a
2310 distributor who provides 24-hour KDM support to cinemas and can create
2311 KDMs for anybody that requires them at short notice.
2312 </para>
2313
2314 <para>
2315 To create a DKDM for DCP-o-matic, open your encrypted project and
2316 select <guilabel>Make DKDM for DCP-o-matic...</guilabel> from the
2317 <guilabel>Jobs</guilabel> menu.  Select the CPL that you want to make
2318 the DKDM for and click <guilabel>OK</guilabel>.  This DKDM will then
2319 be available in the KDM creator.  This is a separate program which you
2320 can start from the same place that you start the &lsquo;normal&rsquo;
2321 DCP-o-matic.  Its window is shown in <xref linkend="fig-kdm-creator"/>.
2322 </para>
2323
2324 <figure id="fig-kdm-creator">
2325   <title>The KDM creator</title>
2326   <mediaobject>
2327     <imageobject>
2328       <imagedata scale="35" fileref="screenshots/kdm-creator&scs;"/>
2329     </imageobject>
2330   </mediaobject>
2331 </figure>
2332
2333 <para>
2334 To create KDMs, select the cinema(s) and/or screens that you want KDMs
2335 to be created for, the date range, the DCP that the KDMs are for and
2336 the destination for the KDMs and click <guilabel>Create
2337 KDMs</guilabel>.
2338 </para>
2339
2340 <para>
2341 By default the <guilabel>DKDM</guilabel> list will list any DCPs for
2342 which you have clicked <guilabel>Make DKDM for
2343 DCP-o-matic</guilabel>in the main DCP-o-matic program.  If you have
2344 other DKDMs you can add them by clicking <guilabel>Add...</guilabel> and
2345 specifying the file containing the DKDM.
2346 </para>
2347
2348 <para>
2349 If another organisation wants to send you a DKDM they will ask you for
2350 a target certificate.  You can get DCP-o-matic's target certificate by
2351 opening <guilabel>Preferences</guilabel> and clicking <guilabel>Export
2352 DCP decryption certificate...</guilabel> in the <guilabel>Keys</guilabel>
2353 tab.
2354
2355 </para>
2356
2357 </section>
2358
2359 <section>
2360 <title>Encryption keys</title>
2361
2362 <para>
2363   You must be careful when using encryption not to lose important keys.
2364 </para>
2365
2366 <para>
2367 If you are making KDMs from a DCP-o-matic film you
2368 <emphasis>must</emphasis> ensure that you have a backup of the
2369 <code>metadata.xml</code> file from the project, as well as the DCP
2370 itself.
2371 </para>
2372
2373 <para>
2374 If you are using a DKDM you <emphasis>must</emphasis> ensure that you
2375 have a backup of DCP-o-matic's <code>config.xml</code> file, since it
2376 contains the only key which can decrypt the DKDM.  The
2377 <code>config.xml</code> file location depends on your operating
2378 system; possible locations are listed in <xref linkend="ch-config"/>
2379 </para>
2380
2381 </section>
2382
2383 <section>
2384 <title>Encryption overview</title>
2385
2386 <figure id="fig-encryption-overview">
2387   <title>Overview of encryption</title>
2388   <mediaobject>
2389     <imageobject>
2390       <imagedata fileref="diagrams/crypt&dia;"/>
2391     </imageobject>
2392   </mediaobject>
2393 </figure>
2394
2395 </section>
2396 </chapter>
2397
2398
2399
2400 <!-- ============================================================== -->
2401 <chapter xml:id="ch-preferences" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
2402 <title>Preferences</title>
2403
2404 <para>
2405 DCP-o-matic provides a few preferences which can be used to modify its
2406 behaviour.  This chapter explains those options.
2407 </para>
2408
2409 <para>
2410 Preferences can be edited by choosing
2411 <guilabel>Preferences...</guilabel> from the <guilabel>Edit</guilabel>
2412 menu.  This opens a dialogue which is split into seven tabs.
2413 </para>
2414
2415 <!-- ============================================================== -->
2416 <section>
2417 <title>General</title>
2418
2419 <para>
2420 The general tab is shown in <xref linkend="fig-prefs-general"/>.
2421 </para>
2422
2423 <figure id="fig-prefs-general">
2424   <title>General preferences</title>
2425   <mediaobject>
2426     <imageobject>
2427       <imagedata fileref="screenshots/prefs-general&scs;"/>
2428     </imageobject>
2429   </mediaobject>
2430 </figure>
2431
2432
2433 <!-- ============================================================== -->
2434 <section>
2435 <title>Language</title>
2436
2437 <para>
2438 If you tick the <guilabel>Set Language</guilabel> checkbox and choose
2439 a language from the list, that language will be used for DCP-o-matic.
2440 You will need to restart DCP-o-matic to see the new language.
2441 </para>
2442
2443 <para>
2444 The translations for DCP-o-matic have been contributed by helpful
2445 users.  If your language is not on the last, head to <ulink
2446 url="http://dcpomatic.com/i18n.php">the DCP-o-matic website</ulink> to
2447 read about how to contribute a translation.
2448 </para>
2449 </section>
2450
2451
2452 <!-- ============================================================== -->
2453 <section>
2454 <title>Number of threads DCP-o-matic should use</title>
2455
2456 <para>
2457 When DCP-o-matic is encoding DCPs it can use multiple parallel threads
2458 to speed things up.  Set this value to the number of threads
2459 DCP-o-matic should use.  This should normally be the number of
2460 processors (or processor cores) in your machine.  DCP-o-matic will try
2461 to set this up correctly when you run it for the first time.
2462 </para>
2463
2464 </section>
2465
2466
2467 <!-- ============================================================== -->
2468 <section>
2469 <title>Number of threads DCP-o-matic encode server should use</title>
2470
2471 <para>
2472 This is the number of threads that the encode server should use when
2473 it is running and helping another copy of DCP-o-matic to speed up its
2474 encode.
2475 </para>
2476
2477 </section>
2478
2479
2480 <!-- ============================================================== -->
2481 <section>
2482 <title>Configuration file</title>
2483
2484 <para>
2485 This is the location of DCP-o-matic's configuration file on disk.  You
2486 can use this to share configuration between several copies of
2487 DCP-o-matic, across a network share, for instance.
2488 </para>
2489 </section>
2490
2491 <!-- ============================================================== -->
2492 <section>
2493 <title>Cinema and screen database file</title>
2494
2495 <para>
2496 This option allows you to change the file that DCP-o-matic uses to
2497 store details of the cinemas and screens used to make KDMs.
2498 </para>
2499 </section>
2500
2501
2502 <!-- ============================================================== -->
2503 <section>
2504 <title>Play sound via</title>
2505
2506 <para>
2507 The checkbox to the left of <guilabel>Play sound</guilabel> enables or
2508 disables DCP-o-matic use of sound.  On some machines there will be
2509 multiple options in the drop-down menu to decide how the sound should
2510 be played.
2511 </para>
2512 </section>
2513
2514 <!-- ============================================================== -->
2515 <section>
2516 <title>Integrated loudness</title>
2517
2518 <para>
2519 If <guilabel>Find integrated loudness, true peak and loudness range
2520 when analysing audio</guilabel> is ticked, DCP-o-matic will do extra
2521 work when analysing audio.  Leave this ticked if the extra parameters
2522 are useful to you.  If not, untick it and audio analysis will be
2523 faster.
2524 </para>
2525
2526 </section>
2527
2528 <!-- ============================================================== -->
2529 <section>
2530 <title>Automatically analyse content audio</title>
2531
2532 <para>
2533 If this checkbox is ticked an audio analysis will be run whenever content is added that contains sound.
2534 </para>
2535 </section>
2536
2537 <!-- ============================================================== -->
2538 <section>
2539 <title>Updates</title>
2540
2541 <para>
2542 The <guilabel>Check for updates on startup</guilabel> option, if
2543 enabled, will tell DCP-o-matic to check on <ulink
2544 url="http://dcpomatic.com/">dcpomatic.com</ulink> to see if there any
2545 newer versions of DCP-o-matic then the one you are running.  If so, a
2546 dialogue box will open with a link to download the new version.
2547 available
2548 </para>
2549
2550 <para>
2551 The <guilabel>Check for testing updates as well as stable
2552 ones</guilabel> option will also check for test updates as well as
2553 those that are formally &lsquo;released&rsquo;. This is useful if you
2554 like to live on the bleeding edge!
2555 </para>
2556 </section>
2557
2558 <!-- ============================================================== -->
2559 <section>
2560 <title>Issuer and creator</title>
2561
2562 <para>
2563 With these controls you can set the issuer and creator strings that
2564 will be put into the DCPs which you create.
2565 </para>
2566 </section>
2567
2568 </section>
2569
2570 <!-- ============================================================== -->
2571 <section>
2572 <title>Defaults</title>
2573
2574 <para>
2575 The defaults tab is shown in <xref linkend="fig-prefs-defaults"/>.
2576 </para>
2577
2578 <figure id="fig-prefs-defaults">
2579   <title>Defaults preferences</title>
2580   <mediaobject>
2581     <imageobject>
2582       <imagedata fileref="screenshots/prefs-defaults&scs;"/>
2583     </imageobject>
2584   </mediaobject>
2585 </figure>
2586
2587 <para>
2588 The options in this tab simply allow you to set up default values for
2589 various properties of new films.
2590 </para>
2591
2592 </section>
2593
2594 <!-- ============================================================== -->
2595 <section>
2596 <title>Servers</title>
2597
2598 <para>
2599 The servers tab is shown in <xref linkend="fig-prefs-servers"/>.
2600 </para>
2601
2602 <figure id="fig-prefs-servers">
2603   <title>Servers preferences</title>
2604   <mediaobject>
2605     <imageobject>
2606       <imagedata fileref="screenshots/prefs-servers&scs;"/>
2607     </imageobject>
2608   </mediaobject>
2609 </figure>
2610
2611 <para>
2612 If <guilabel>Use all servers</guilabel> is ticked DCP-o-matic will
2613 locate encoding servers automatically (see <xref
2614 linkend="ch-servers"/>).
2615 </para>
2616
2617 <para>
2618 Instead of this (or in addition) servers can be specified explicitly.
2619 To add a server, click <guilabel>Add...</guilabel> and enter the host
2620 name or IP address of the server to use.
2621 </para>
2622
2623 </section>
2624
2625
2626 <!-- ============================================================== -->
2627 <section xml:id="sec-prefs-keys">
2628 <title>Keys</title>
2629
2630 <para>
2631 The Keys tab (shown in <xref linkend="fig-prefs-keys"/>) has controls
2632 related to the keys and certificates used in some parts of DCP
2633 creation.
2634 </para>
2635
2636 <figure id="fig-prefs-keys">
2637   <title>Keys preferences</title>
2638   <mediaobject>
2639     <imageobject>
2640       <imagedata fileref="screenshots/prefs-keys&scs;"/>
2641     </imageobject>
2642   </mediaobject>
2643 </figure>
2644
2645 <para>
2646 <guilabel>Export KDM decryption certificate...</guilabel> allows you
2647 to save the certificate that DCP-o-matic uses when decrypting KDMs
2648 that you give it.  Use this option if somebody wants to make a KDM for
2649 you and asks for your certificate.
2650 </para>
2651
2652 <para>
2653 <guilabel>Export KDM decryption chain...</guilabel> exports the whole
2654 KDM decryption chain rather than just its certificate.  This may also
2655 be requested by KDM creators.
2656 </para>
2657
2658 <para>
2659 <guilabel>Export all KDM decryption settings...</guilabel> exports a
2660 file which contains all the DCP-o-matic settings related to the use of
2661 KDMs supplied by other people.  Use this button and <guilabel>Import
2662 all KDM decryption settings...</guilabel> to transfer settings between
2663 different copies of DCP-o-matic so that they can both use the same
2664 KDMs.
2665 </para>
2666
2667 <para>
2668 The two <guilabel>Advanced...</guilabel> buttons open advanced
2669 dialogue boxes for detailed manipulation of DCP-o-matic's certificate
2670 chains.
2671 </para>
2672
2673 </section>
2674
2675 <section>
2676 <title>Advanced keys settings</title>
2677
2678 <para>
2679 At the top of the <guilabel>Advanced</guilabel> dialogue for signing
2680 DCPs and KDMs is the chain of certificates that will be used to sign
2681 DCPs and KDMs.  DCP-o-matic creates a random chain when you first run
2682 it and if you are happy to use this chain you can ignore the
2683 preferences.  Otherwise, you can add or remove certificates from the
2684 chain using the <guilabel>Add...</guilabel> and
2685 <guilabel>Remove</guilabel> buttons.
2686 </para>
2687
2688 <para>
2689 If you want DCP-o-matic to re-create the certificate chain (using new,
2690 random certificates) click <guilabel>Re-make
2691 certificates...</guilabel> and specify your organisation and common
2692 names in the dialogue box that opens.
2693 </para>
2694
2695 <para>
2696 Underneath the certificate chain is the private key that corresponds
2697 to the leaf certificate in the chain.  You can specify your own
2698 private key by clicking <guilabel>Load...</guilabel>.  You must do
2699 this if you change the leaf certificate, so that the leaf private key
2700 corresponds to the public key held in the leaf certificate.
2701 </para>
2702
2703 <para>
2704 At the top of the <guilabel>Advanced</guilabel> dialogue for decrypting DCPs is the chain and key which is used by
2705 DCP-o-matic when you import an encrypted DCP as a piece of content.
2706 The leaf certificate of this chain contains the public key that should
2707 be used when targeting a KDM at DCP-o-matic.
2708 </para>
2709
2710
2711 <para>
2712 If you want to import an encrypted DCP you will need to give the
2713 decryption certificate to the distributor of the DCP so that they can
2714 generate a DKDM for you.  You can save this certificate to disk by
2715 clicking <guilabel>Export DCP decryption certificate...</guilabel>.
2716 As with the signing chain, DCP-o-matic will create a certificate chain
2717 and private key for you.  You can also choose to load your own
2718 certificates and key or re-make the chain and key with new, random
2719 values.
2720 </para>
2721
2722 <para>
2723 Clicking <guilabel>Export DCP decryption chain...</guilabel> will
2724 export the whole certificate chain, rather than just the leaf
2725 certificate.
2726 </para>
2727
2728 </section>
2729
2730 <!-- ============================================================== -->
2731 <section xml:id="sec-prefs-tms">
2732 <title>TMS</title>
2733 <titleabbrev xml:id="sec-prefs-tms-short">TMS preferences</titleabbrev>
2734
2735 <para>
2736 The TMS tab (shown in <xref linkend="fig-prefs-tms"/>) gives some
2737 options for specifying details about your theatre management system
2738 (TMS).  If you do this, and your TMS accepts SSH or FTP connections,
2739 you can upload DCPs directly from DCP-o-matic to the TMS using the
2740 <guilabel>Send DCP to TMS</guilabel> option in the
2741 <guilabel>Jobs</guilabel> menu.
2742 </para>
2743
2744 <figure id="fig-prefs-tms">
2745   <title>TMS preferences</title>
2746   <mediaobject>
2747     <imageobject>
2748       <imagedata fileref="screenshots/prefs-tms&scs;"/>
2749     </imageobject>
2750   </mediaobject>
2751 </figure>
2752
2753 <para>
2754 <guilabel>Protocol</guilabel> should be set to SCP or FTP as
2755 appropriate for your TMS.  We know that the Arts Alliance Media (AAM)
2756 and the Doremi ranges uses SCP connections, and that Dolby's TMSs use
2757 FTP.  Do let us know if you use any other type of TMS with the
2758 <guilabel>Send DCP to TMS</guilabel> feature.
2759 </para>
2760
2761 <para>
2762 <guilabel>TMS IP address</guilabel> should be set to the IP address of
2763 your TMS, <guilabel>TMS target path</guilabel> to the place that DCPs
2764 should be uploaded to (which will be relative to the home directory of
2765 the SSH or FTP user).  Finally, the user name and password are the
2766 credentials required to log into the TMS via SSH or FTP.
2767 </para>
2768
2769 <para>
2770 Note that for this to work on Doremi servers you will need to set the
2771 <code>PasswordAuthentication</code> option in your server's
2772 <code>sshd_config</code> to <code>yes</code>.
2773 </para>
2774
2775 </section>
2776
2777
2778 <!-- ============================================================== -->
2779 <section>
2780 <title>KDM email</title>
2781
2782 <para>
2783 The KDM email is shown in <xref linkend="fig-prefs-kdm-email"/>.
2784 </para>
2785
2786 <figure id="fig-prefs-kdm-email">
2787   <title>KDM email preferences</title>
2788   <mediaobject>
2789     <imageobject>
2790       <imagedata fileref="screenshots/prefs-kdm-email&scs;"/>
2791     </imageobject>
2792   </mediaobject>
2793 </figure>
2794
2795 <para>
2796 This is a template for the email that is used to send KDMs out to
2797 cinemas.  You can change it to say whatever you like.  A few
2798 &lsquo;magic&rsquo; strings will be replaced by information from the
2799 KDM that is being sent:
2800 </para>
2801
2802 <table>
2803 <title>&lsquo;Magic&rsquo; KDM strings</title>
2804 <tgroup cols='2' align='left' colsep='1' rowsep='1'>
2805 <tbody>
2806 <row>
2807 <entry><code>$CPL_NAME</code></entry><entry>DCP title</entry>
2808 </row>
2809 <row>
2810 <entry><code>$CINEMA_NAME</code></entry><entry>Cinema name</entry>
2811 </row>
2812 <row>
2813 <entry><code>$SCREENS</code></entry><entry>Name of screen or screens that KDMs are being generated for</entry>
2814 </row>
2815 <row>
2816 <entry><code>$START_TIME</code></entry><entry>The time from which the KDMs are valid</entry>
2817 </row>
2818 <row>
2819 <entry><code>$END_TIME</code></entry><entry>The time until which the KDMs are valid</entry>
2820 </row>
2821 </tbody>
2822 </tgroup>
2823 </table>
2824
2825 <para>
2826 The <guilabel>Reset to default text</guilabel> will replace the current KDM email with DCP-o-matic's default.
2827 </para>
2828
2829 </section>
2830
2831
2832 <!-- ============================================================== -->
2833 <section>
2834 <title>Cover sheet</title>
2835
2836 <para>
2837 The DCP cover sheet configuration is shown in <xref linkend="fig-prefs-cover-sheet"/>.
2838 </para>
2839
2840 <figure id="fig-prefs-cover-sheet">
2841   <title>DCP cover sheet preferences</title>
2842   <mediaobject>
2843     <imageobject>
2844       <imagedata fileref="screenshots/prefs-cover-sheet&scs;"/>
2845     </imageobject>
2846   </mediaobject>
2847 </figure>
2848
2849 <para>
2850 This is a template for the cover sheet that is written next to every DCP that DCP-o-matic creates.  You can change it to say whatever you like.  A few
2851 &lsquo;magic&rsquo; strings will be replaced by information from the
2852 DCP that has been made:
2853 </para>
2854
2855 <table>
2856 <title>&lsquo;Magic&rsquo; Cover sheet strings</title>
2857 <tgroup cols='2' align='left' colsep='1' rowsep='1'>
2858 <tbody>
2859 <row>
2860 <entry><code>$CPL_NAME</code></entry><entry>DCP title</entry>
2861 </row>
2862 <row>
2863 <entry><code>$TYPE</code></entry><entry>DCP content type (e.g. feature, trailer...)</entry>
2864 </row>
2865 <row>
2866 <entry><code>$CONTAINER</code></entry><entry>The container ratio (e.g. flat, scope...)</entry>
2867 </row>
2868 <row>
2869 <entry><code>$AUDIO</code></entry><entry>Details of the audio channels</entry>
2870 </row>
2871 <row>
2872 <entry><code>$AUDIO_LANGUAGE</code></entry><entry>Audio language</entry>
2873 </row>
2874 <row>
2875 <entry><code>$SUBTITLE_LANGUAGE</code></entry><entry>Subtitle language</entry>
2876 </row>
2877 <row>
2878 <entry><code>$LENGTH</code></entry><entry>DCP length in hours, minutes and seconds</entry>
2879 </row>
2880 <row>
2881 <entry><code>$SIZE</code></entry><entry>DCP size in gigabytes</entry>
2882 </row>
2883 </tbody>
2884 </tgroup>
2885 </table>
2886
2887 <para>
2888 The <guilabel>Reset to default text</guilabel> will replace the current cover sheet with DCP-o-matic's default.
2889 </para>
2890
2891 </section>
2892
2893
2894 <!-- ============================================================== -->
2895 <section xml:id="sec-prefs-advanced">
2896 <title>Advanced</title>
2897 <titleabbrev xml:id="sec-prefs-advanced-short">Advanced preferences</titleabbrev>
2898
2899 <para>
2900 The advanced preferences are shown in <xref linkend="fig-prefs-advanced"/>.
2901 </para>
2902
2903 <figure id="fig-prefs-advanced">
2904   <title>Advanced preferences</title>
2905   <mediaobject>
2906     <imageobject>
2907       <imagedata fileref="screenshots/prefs-advanced&scs;"/>
2908     </imageobject>
2909   </mediaobject>
2910 </figure>
2911
2912 <para>
2913 <guilabel>Maximum JPEG2000 bandwidth</guilabel> specifies the maximum
2914 bit-rate of JPEG2000 that DCP-o-matic will allow you to create.  You
2915 are advised to leave this at 250Mbit/s in normal use for maximum DCP
2916 compatibility.
2917 </para>
2918
2919 <para>
2920 <guilabel>Allow any DCP frame rate</guilabel> removes the limits on
2921 the DCP video frame rates that DCP-o-matic will create.  This may be
2922 useful for experimentation.  Again, you are strongly advised to leave
2923 this unticked for normal use.
2924 </para>
2925
2926 <para>
2927 <guilabel>Only servers encode</guilabel> makes DCP-o-matic encode
2928 JPEG2000 data only on encoding servers and not on the host.  We
2929 suggest you leave this unticked unless you have a good reason to do otherwise.
2930 </para>
2931
2932 <para>
2933 With the filename format fields you can adjust the filenames that are
2934 used for metadata (CPL and PKL files) and assets (MXF and subtitle
2935 files).  Below each field there is a list of the &lsquo;magic&rsquo;
2936 values that you can use in the format and an example of a filename
2937 that you might see with your current settings.
2938 </para>
2939
2940 <para>
2941 The four checkboxes labelled <guilabel>Log</guilabel> control what
2942 sort of messages DCP-o-matic writes to its log file when creating a
2943 DCP.  It is useful to leave <guilabel>General</guilabel>,
2944 <guilabel>Warnings</guilabel> and <guilabel>Errors</guilabel> ticked
2945 as this makes the log files useful for tracking down bugs.
2946 </para>
2947
2948 <para>
2949 The <guilabel>Timing</guilabel> checkbox will enable extra log entries
2950 to allow developers to investigate and optimise the speed of
2951 DCP-o-matic.  It will significantly increase the size of the log files
2952 that are generated, so in normal use it is best to leave this
2953 unticked.
2954 </para>
2955
2956 </section>
2957 </chapter>
2958
2959 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en" xml:id="ch-frame-rates">
2960 <title>Frame rates</title>
2961
2962 <para>
2963 In an ideal world, a DCP would be created using content at the same
2964 video frame and audio sampling rates as the DCP.  This is not,
2965 however, always possible.
2966 </para>
2967
2968
2969 <!-- ============================================================== -->
2970 <section>
2971 <title>DCP frame rate limitations</title>
2972
2973 <para>
2974 There are some limitations to video and audio frame rates in DCPs.  This is
2975 complicated by the fact that not all projectors will play DCPs at the
2976 same frame rates.  It is possible to create a DCP which one projector will
2977 play fine, but another (of a different type) will refuse to play, or
2978 even refuse to ingest.
2979 </para>
2980
2981
2982 <!-- ============================================================== -->
2983 <section>
2984 <title>Guaranteed rates</title>
2985
2986 <para>
2987 The only rates that are (pretty much) guaranteed to work on all DCI
2988 projectors are 24 frames per second (fps) for video and 48kHz or 96kHz
2989 for audio.  If you are sending your DCPs to unknown places it wise to
2990 consider using these rates if at all possible.
2991 </para>
2992
2993 </section>
2994
2995
2996 <!-- ============================================================== -->
2997 <section>
2998 <title>Other often-supported rates</title>
2999 <para>
3000 Many projectors now in the wild support additional video frame rates:
3001 25, 30 and 48 fps.
3002 </para>
3003 </section>
3004
3005
3006 <!-- ============================================================== -->
3007 <section>
3008 <title>Adapting content to fit the DCP rate</title>
3009
3010 <para>
3011 DCP-o-matic has a few tricks to allow you to use content that is not
3012 in one of the &lsquo;approved&rsquo; rates.
3013 </para>
3014
3015 <para>
3016 Audio is easy: DCP-o-matic can resample to 48kHz from any source rate
3017 with minimal loss in quality.
3018 </para>
3019
3020 <para>
3021 Video rate conversion is harder.  DCP-o-matic's basic strategy to deal
3022 with a non-supported content rate is to run it at the wrong speed, and
3023 to adjust the audio to keep it in sync.
3024 </para>
3025
3026 <para>Let us consider the example of a 25fps source for which you want
3027 to create a 24fps DCP.  DCP-o-matic will put the frames from the
3028 source directly into the DCP without modification, but will tell the
3029 projector to play them back at 24fps.  This means that the DCP's video
3030 will run slightly slower than the original.
3031 </para>
3032
3033 <para>
3034 If DCP-o-matic did nothing else, the result of this would be that the
3035 audio would be running at the original speed with the video running
3036 slowly.  Hence the audio would drift slowly out of sync.  To avoid
3037 this, DCP-o-matic also resamples the audio such that the projector
3038 will play it too slow by the same amount.  Hence it will sound
3039 slightly different but will remain in sync with the video.
3040 </para>
3041
3042 <para>
3043 For very low or high frame rates, DCP-o-matic can also skip or duplicate frames.
3044 </para>
3045
3046 </section>
3047 </section>
3048
3049
3050 <!-- ============================================================== -->
3051 <section>
3052 <title>Setting up</title>
3053
3054 <para>
3055 The <guilabel>Frame Rate</guilabel> control in the
3056 <guilabel>DCP</guilabel> tab sets the video frame rate that the DCP
3057 will use.  Clicking <guilabel>Use best</guilabel> sets the rate to
3058 what DCP-o-matic thinks is the best for your content.  With this
3059 button, DCP-o-matic assumes that the whole range of frame rates (24,
3060 25, 30 and 48fps) are allowable.
3061 </para>
3062
3063 <para>
3064 After this, the <guilabel>Video</guilabel> tab for each piece of
3065 content will give a summary of what DCP-o-matic is doing with that
3066 content.
3067 </para>
3068
3069 <para>
3070 If you want to experiment with other non-standard frame rates, you can
3071 do so by ticking the <guilabel>Allow any DCP frame rate</guilabel> in
3072 the <guilabel>Advanced</guilabel> tab of the preferences dialogue (see the
3073 <xref linkend="sec-prefs-advanced" endterm="sec-prefs-advanced-short"/>).  You are strongly advised to
3074 use this only on your own equipment, and only for experimentation
3075 purposes.
3076 </para>
3077
3078 </section>
3079
3080 </chapter>
3081
3082
3083 <!-- ============================================================== -->
3084 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en" xml:id="ch-servers">
3085 <title>Encoding servers</title>
3086
3087 <para>
3088 One way to increase the speed of DCP encoding is to use more
3089 than one machine at the same time.  An instance of DCP-o-matic can
3090 offload some of the time-consuming JPEG2000 encoding to any number of
3091 other machines on a network.  To do this, one &lsquo;master&rsquo;
3092 machine runs DCP-o-matic, and the &lsquo;server&rsquo; machines run
3093 a small program called <code>dcpomatic_server</code>.
3094 </para>
3095
3096 <para>
3097 The master and server machines do not need to be the same type, so you
3098 can mix Windows PCs, Macs and Linux machines as you wish.
3099 </para>
3100
3101
3102 <!-- ============================================================== -->
3103 <section>
3104 <title>Running the servers</title>
3105
3106 <para>
3107 There are two options for the encoding server;
3108 <code>dcpomatic_server_cli</code>, which runs on the command line, and
3109 <code>dcpomatic_server</code>, which has a simple GUI.  The command line
3110 version is well-suited to headless servers, especially on Linux, and
3111 the GUI version works best on Windows where it will put an icon in the
3112 system tray.
3113 </para>
3114
3115 <para>
3116 To run the command line version, simply enter:
3117 </para>
3118
3119 <programlisting>
3120 dcpomatic2_server_cli
3121 </programlisting>
3122
3123 <para>
3124 at a command prompt.  If you are running the program on a machine with
3125 a multi-core processor, you can run multiple parallel encoding threads
3126 by doing something like:
3127 </para>
3128
3129 <programlisting>
3130 dcpomatic2_server_cli -t 4
3131 </programlisting>
3132
3133 <para>
3134 to run 4 threads in parallel.
3135 </para>
3136
3137 <para>
3138 To run the GUI version on windows, run the &lsquo;DCP-o-matic encode
3139 server&rsquo; from the start menu.  An icon will appear in the system
3140 tray; right-click it to open a menu from whence you can quit the
3141 server or open a window to show its status.
3142 </para>
3143
3144 <para>If you would rather not bother installing DCP-o-matic on your
3145 server computers, the other option is to use the live-CD
3146 image that you can download from the <ulink
3147 url="http://dcpomatic.com/">DCP-o-matic web site.</ulink></para>
3148
3149 <para>Either burn the image to CD, or write it to a USB stick (using
3150 something like <ulink
3151 url="http://unetbootin.sourceforge.net/">unetbootin</ulink>).  Boot a
3152 PC from the CD or USB stick and it becomes a DCP-o-matic server
3153 without touching your standard operating system install.
3154 </para>
3155
3156 </section>
3157
3158 <!-- ============================================================== -->
3159 <section>
3160 <title>Setting up DCP-o-matic</title>
3161
3162 <para>
3163 DCP-o-matic periodically looks on the local network for servers.  Any
3164 that it finds are given work to do during encodes.  Selecting
3165 <guilabel>Encoding Servers</guilabel> from the
3166 <guilabel>Tools</guilabel> menu brings up a window which shows that
3167 servers that DCP-o-matic has found.
3168 </para>
3169
3170 </section>
3171
3172 <!-- ============================================================== -->
3173 <section>
3174 <title>Some notes about encode servers</title>
3175
3176 <para>
3177 DCP-o-matic does not mind if servers come and go; if a server
3178 disappears, DCP-o-matic will stop sending work to it, and will check
3179 it every minute or so in case it has come back online.
3180 </para>
3181
3182 <para>
3183 You will probably find that using a 1Gb/s or faster network will
3184 provide a significant speed-up compared to a 100Mb/s network.
3185 </para>
3186
3187 </section>
3188
3189 </chapter>
3190
3191 <chapter xml:id="ch-files" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
3192 <title>Generated files</title>
3193
3194 <para>
3195 DCP-o-matic generates a number of files as it makes a DCP.  <xref
3196 linkend="fig-file-structure"/> shows the files that might be generated
3197 after you have created a DCP for a film called &lsquo;DCP Test&rsquo;.
3198 </para>
3199
3200 <figure id="fig-file-structure">
3201   <title>Creating a new film</title>
3202   <mediaobject>
3203     <imageobject>
3204       <imagedata scale="100" fileref="diagrams/file-structure&dia;"/>
3205     </imageobject>
3206   </mediaobject>
3207 </figure>
3208
3209 <para>
3210 The <code>DCP Test</code> folder is the one that you specify when you
3211 select the <guilabel>New Film</guilabel> option from DCP-o-matic's
3212 menu.  Everything is stored inside this folder.
3213 </para>
3214
3215 <para>
3216 DCP-o-matic generates some working files as it goes along.  These are as follows:
3217 <itemizedlist>
3218
3219 <listitem><code>log</code> is a list of notes that DCP-o-matic makes as it goes
3220 along.  This can be useful for debugging purposes if something goes
3221 wrong.</listitem>
3222
3223 <listitem><code>metadata</code> stores the settings that you have made
3224 for this film: things like cropping, output format and so on.</listitem>
3225
3226 <listitem><code>video</code> is where DCP-o-matic writes the DCP's
3227 video data as it encodes it.</listitem>
3228
3229 <listitem><code>analysis</code> is used to keep the results of audio analysis runs.</listitem>
3230
3231 <listitem><code>info</code> contains details of each video frame that
3232 DCP-o-matic has written so far.  This is used when an encoding
3233 operation is interrupted and DCP-o-matic must resume it.</listitem>
3234 </itemizedlist>
3235 </para>
3236
3237 <para>
3238 Following this is the DCP itself:
3239 <code>DCP-TEST_EN-XX_UK-U_51_2K_CSY_20130218_CSY_OV</code>.  This
3240 contains some small XML files, which describe the DCP, and two large
3241 MXF files, which contain the DCP's audio and video data.  It may also
3242 contain subtitles in either XML or MXF format.  This folder
3243 (<code>DCP-TEST_EN-XX_...</code>) is what you should ingest, or pass
3244 to the cinema which is showing your DCP.
3245 </para>
3246
3247 </chapter>
3248
3249
3250 <chapter>
3251   <title>Command-line tools</title>
3252
3253   <para>
3254     DCP-o-matic includes some tools which allow DCP creation from the
3255     command line or from scripting languages.  This chapter covers the
3256     use of those tools.
3257   </para>
3258
3259   <para>
3260     There are three command-line tools in DCP-o-matic.
3261     <code>dcpomatic2_create</code> creates film directories, with the
3262     associated metadata, from a list of content files.  Then
3263     <code>dcpomatic2_cli</code> runs the transcode process on these
3264     film directories.  Finally, <code>dcpomatic2_kdm_cli</code> can be
3265     used to create KDMs.
3266   </para>
3267
3268   <para>
3269     Some applications will benefit from setting up the films using the
3270     main DCP-o-matic GUI and then using <code>dcpomatic2_cli</code> to
3271     do the encode.  This allows, for example, setup on a relatively
3272     low-powered machine before running the encode on a higher-powered
3273     headless server.
3274   </para>
3275
3276   <section>
3277     <title><code>dcpomatic2_create</code></title>
3278
3279     <para>
3280       The syntax for <code>dcpomatic2_create</code> is:
3281     </para>
3282
3283     <para>
3284       <code>dcpomatic2_create [OPTION] [CONTENT] [&lt;CONTENT&gt; ...]</code>
3285     </para>
3286
3287     <para>
3288       <code>[CONTENT]</code> are the files or folders that you want to use in the
3289       DCP. They can be:
3290       <itemizedlist>
3291         <listitem>&lsquo;Movie&rsquo; files in almost any common format (e.g. MP4, MOV, MKV, etc.)</listitem>
3292         <listitem>A folder containing and image sequence in almost any common format (e.g. TIFF, DPX etc.)</listitem>
3293         <listitem>Sound files (e.g. WAV, MP3, AIFF)</listitem>
3294         <listitem>Subtitles files (e.g. <code>.srt</code>, DCP XML, <code>.ssa</code> etc.)</listitem>
3295       </itemizedlist>
3296     </para>
3297
3298     <para>
3299       The options are:
3300     </para>
3301
3302     <itemizedlist>
3303       <listitem><code>-v</code>, <code>--version</code> &#8212; show DCP-o-matic version</listitem>
3304       <listitem><code>-h</code>, <code>--help</code> &#8212; show this help</listitem>
3305       <listitem><code>-n</code>, <code>--name</code> &#8212; &lt;name&gt; film name</listitem>
3306       <listitem><code>-t, --template &lt;name&gt;</code> &#8212; template name</listitem>
3307       <listitem><code>-c, --dcp-content-type &lt;type&gt;</code> &#8212; FTR, SHR, TLR, TST, XSN, RTG, TSR, POL, PSA or ADV</listitem>
3308       <listitem><code>--container-ratio &lt;ratio&gt;</code> &#8212; 119, 133, 137, 138, 166, 178, 185 or 239</listitem>
3309       <listitem><code>--content-ratio &lt;ratio&gt;</code> &#8212; 119, 133, 137, 138, 166, 178, 185 or 239</listitem>
3310       <listitem><code>-s, --still-length &lt;n&gt;</code> &#8212; number of seconds that still content should last</listitem>
3311       <listitem><code>--standard &lt;standard&gt;</code> &#8212; SMPTE or interop (default SMPTE)</listitem>
3312       <listitem><code>--no-use-isdcf-name&gt;</code> &#8212; do not use an ISDCF name; use the specified name unmodified</listitem>
3313       <listitem><code>--no-sign</code>&#8212; do not sign the DCP</listitem>
3314       <listitem><code>-o</code>, <code>--output &lt;dir&gt;</code> &#8212; output directory</listitem>
3315     </itemizedlist>
3316
3317     <para>
3318       For example, to setup a film using a MP4 file you might do:
3319     </para>
3320
3321     <para>
3322       <code>dcpomatic2_create -o my_film --container-ratio 185 --content-ratio 185 -c FTR -n "My Film" Stuff.mp4</code>
3323     </para>
3324
3325     <para>
3326       This will create a folder called <code>my_film</code> which is ready for a DCP to be made by <code>dcpomatic2_cli</code>.
3327     </para>
3328
3329     <para>
3330       <code>dcpomatic2_create</code> will use any default settings that you have configured in the main DCP-o-matic preferences.
3331     </para>
3332   </section>
3333
3334   <section>
3335     <title><code>dcpomatic2_cli</code></title>
3336
3337     <para>
3338       The syntax for <code>dcpomatic2_cli</code> is:
3339     </para>
3340
3341     <para>
3342       <code>dcpomatic2_cli [OPTION] [FILM]</code>
3343     </para>
3344
3345     <para>
3346       <itemizedlist>
3347         <listitem><code>-v</code>, <code>--version</code> &#8212; show DCP-o-matic version</listitem>
3348         <listitem><code>-h</code>, <code>--help</code> &#8212; show this help</listitem>
3349         <listitem><code>-f</code>, <code>--flags</code> &#8212; show flags passed to C++ compiler on build</listitem>
3350         <listitem><code>-n</code>, <code>--no-progress</code> &#8212; do not print progress to stdout</listitem>
3351         <listitem><code>-r</code>, <code>--no-remote</code> &#8212; do not use any remote servers</listitem>
3352         <listitem><code>-t</code>, <code>--threads</code> &#8212; specify number of local encoding threads (overriding configuration)</listitem>
3353         <listitem><code>-j</code>, <code>--json</code> &lt;port&gt; &#8212; run a JSON server on the specified port</listitem>
3354         <listitem><code>-k</code>, <code>--keep-going</code> &#8212; keep running even when the job is complete</listitem>
3355         <listitem><code>-s</code>, <code>--servers</code> &#8212; just display a list of encoding servers that DCP-o-matic is configured to use; don't encode</listitem>
3356         <listitem><code>-d</code>, <code>--dcp-path</code> &#8212; echo DCP's path to stdout on successful completion (implies -n)</listitem>
3357         <listitem><code>--dump</code> &#8212; just dump a summary of the film's settings; don't encode</listitem>
3358       </itemizedlist>
3359     </para>
3360
3361     <para>
3362       For example, to encode a film called <code>my_film</code> you might do:
3363     </para>
3364
3365     <para>
3366       <code>dcpomatic2_cli my_film</code>
3367     </para>
3368   </section>
3369
3370   <section>
3371     <title><code>dcpomatic2_kdm_cli</code></title>
3372
3373     <para>
3374       The syntax for <code>dcpomatic2_kdm_cli</code> is:
3375     </para>
3376
3377     <para>
3378       <code>dcpomatic2_kdm_cli [OPTION] &lt;FILM|CPL-ID&gt;</code>
3379     </para>
3380
3381     <para>
3382       <itemizedlist>
3383         <listitem><code>-o</code>, <code>--output</code> &#8212; output file or directory</listitem>
3384         <listitem><code>-f</code>, <code>--valid-from</code> &#8212; valid from time (in local time zone of the cinema) (e.g. "2013-09-28 01:41:51") or "now"</listitem>
3385         <listitem><code>-t</code>, <code>--valid-to</code> &#8212; valid to time (in local time zone of the cinema) (e.g. "2014-09-28 01:41:51")</listitem>
3386         <listitem><code>-d</code>, <code>--valid-duration</code> &#8212; valid duration (e.g. "1 day", "4 hours", "2 weeks")</listitem>
3387         <listitem><code>--formulation</code> &#8212; modified-transitional-1, dci-any or dci-specific [default modified-transitional-1]</listitem>
3388         <listitem><code>-z</code>, <code>--zip</code> &#8212; ZIP each cinema's KDMs into its own file</listitem>
3389         <listitem><code>-v</code>, <code>--verbose</code> &#8212; be verbose</listitem>
3390         <listitem><code>-c</code>, <code>--cinema</code> &#8212; specify a cinema, either by name or email address</listitem>
3391         <listitem><code>--certificate</code> &#8212; file containing projector certificate</listitem>
3392         <listitem><code>--cinemas</code> &#8212; list known cinemas from the DCP-o-matic settings</listitem>
3393         <listitem><code>--dkdm-cpls</code> &#8212; list CPLs for which DCP-o-matic has DKDMs</listitem>
3394       </itemizedlist>
3395     </para>
3396
3397   </section>
3398 </chapter>
3399
3400
3401
3402 <!-- ============================================================== -->
3403 <chapter>
3404 <title>Loose ends</title>
3405
3406 <para>
3407 This chapter collects a few notes on bits of DCP-o-matic that do not fit elsewhere in the manual.
3408 </para>
3409
3410
3411 <!-- ============================================================== -->
3412 <section>
3413 <title>Resuming encodes</title>
3414
3415 <para>
3416 If you cancel a DCP encoding run half-way through, or your computer
3417 crashes... fear not.  DCP-o-matic takes care to ensure that, in most
3418 cases, it can resume encoding from where it left off.  When you
3419 re-start a DCP creation, using the same settings are a previous run,
3420 DCP-o-matic will first check that the existing picture frames are
3421 correct, and then resume from where it left off.  The checking of
3422 existing frames does take some time, but it is much faster than
3423 running a full re-encode.
3424 </para>
3425
3426 <para>
3427 This resumption is achieved by writing a digest (hash) to disk for
3428 every image frame that is written.  On resumption, the existing MXF
3429 file for image data is read and its contents checked against the
3430 hashes.
3431 </para>
3432
3433 </section>
3434
3435 </chapter>
3436
3437 <!-- ============================================================== -->
3438 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
3439 <title>Common tasks</title>
3440
3441 <para>
3442 This chapter describes how to carry out some commonly-required tasks
3443 with DCP-o-matic.  The full details are elsewhere in the manual: here
3444 we just discuss different approaches to these tasks and how to carry
3445 them out.
3446 </para>
3447
3448 <section>
3449 <title>Adding subtitles to an existing DCP</title>
3450
3451 <para>
3452 You have three options:
3453 </para>
3454
3455 <itemizedlist>
3456 <listitem>Make a &ldquo;Version File&rdquo; (VF) DCP.</listitem>
3457 <listitem>Make a complete DCP with projector-added subtitles.</listitem>
3458 <listitem>Make a complete DCP with burnt-in subtitles.</listitem>
3459 </itemizedlist>
3460
3461 <para>
3462 Making a VF DCP is usually the best option.  This will be a very small
3463 DCP which contains only the subtitles: it refers to your existing DCP
3464 for the picture and sound.  The projectionist will ingest both the
3465 existing and VF DCPs and play back the VF.  The advantages of this
3466 approach are that the VF is very quick to generate, and small in size,
3467 making it easy to distribute.  This is especially useful if you have
3468 to make VF DCPs in many different languages.
3469 </para>
3470
3471 <para>
3472 Making a complete DCP with projector-added subtitles gives you a new,
3473 single DCP which the projectionist can ingest and play.  It will be
3474 the same size as your existing DCP, and fairly quick to create.  This
3475 approach relies on the projector (or server) to create the subtitles
3476 and overlay them on the image, which mostly works well but is not
3477 100&percnt; reliable.
3478 </para>
3479
3480 <para>
3481 Making a complete DCP with burnt-in subtitles gives you a new, single DCP
3482 but with the subtitles rendered by DCP-o-matic and copied into your
3483 image.  This is slower to create than a DCP with projector-added
3484 subtitles as every video frame with a subtitle must be re-encoded.
3485 The advantage of this approach is that it is less likely to go wrong,
3486 especially if you are using unusual subtitle positioning or character
3487 sets.
3488 </para>
3489
3490 <section>
3491 <title>Making a VF DCP</title>
3492
3493 <itemizedlist>
3494 <listitem>Start a new DCP-o-matic film.</listitem>
3495 <listitem>Click <guilabel>Add folder...</guilabel> and specify your existing DCP's folder.</listitem>
3496 <listitem>Go to the <guilabel>DCP</guilabel> tab and choose <guilabel>Split by video content</guilabel> for <guilabel>Reel type</guilabel>.</listitem>
3497 <listitem>Go to the <guilabel>Video</guilabel> and
3498 <guilabel>Audio</guilabel> tabs in turn and tick the <guilabel>Use this DCP's audio as OV and make VF</guilabel> checkboxes.</listitem>
3499 <listitem>Add your subtitles to the film in whatever format you have.</listitem>
3500 <listitem>Check the subtitle appearance in the preview; it will be
3501 slow to respond as it is having to decompress images from the existing
3502 DCP.</listitem>
3503 <listitem>Choose <guilabel>Make DCP</guilabel> from the menu.</listitem>
3504 </itemizedlist>
3505
3506 </section>
3507
3508 <section>
3509 <title>Making a complete DCP with projector-added subtitles</title>
3510
3511 <itemizedlist>
3512 <listitem>Start a new DCP-o-matic film.</listitem>
3513 <listitem>Click <guilabel>Add folder...</guilabel> and specify your existing DCP's folder.</listitem>
3514 <listitem>Add your subtitles to the film in whatever format you have.</listitem>
3515 <listitem>Check the subtitle appearance in the preview; it will be
3516 slow to respond as it is having to decompress images from the existing
3517 DCP.  Adjust the appearance using controls in the
3518 <guilabel>Subtitle</guilabel> tab if required.</listitem>
3519 <listitem>Choose <guilabel>Make DCP</guilabel> from the menu.</listitem>
3520 </itemizedlist>
3521
3522 </section>
3523
3524 <section>
3525 <title>Making a complete DCP with burnt-in subtitles</title>
3526
3527 <itemizedlist>
3528 <listitem>Start a new DCP-o-matic film.</listitem>
3529 <listitem>Click <guilabel>Add folder...</guilabel> and specify your existing DCP's folder.</listitem>
3530 <listitem>Add your subtitles to the film in whatever format you have.</listitem>
3531 <listitem>Go to the <guilabel>Subtitle</guilabel> tab and tick the <guilabel>Burn subtitles into image</guilabel> checkbox.</listitem>
3532 <listitem>Check the subtitle appearance in the preview; it will be
3533 slow to respond as it is having to decompress images from the existing
3534 DCP.  Adjust the appearance using controls in the
3535 <guilabel>Subtitle</guilabel> tab if required.</listitem>
3536 <listitem>Choose <guilabel>Make DCP</guilabel> from the menu.</listitem>
3537 </itemizedlist>
3538
3539 </section>
3540 </section>
3541
3542 <section>
3543 <title>Adding soundtracks or subtitles in different languages</title>
3544
3545 <para>
3546 If you have a film that is to be dubbed or subtitled in several
3547 languages, the best approach with DCP-o-matic is as follows:
3548 </para>
3549
3550 <itemizedlist>
3551 <listitem>Make a DCP with the common elements (perhaps just the video, or maybe the video and sound); this is known as the Original Version (OV).</listitem>
3552 <listitem>For each language, make a new Version File (VF) DCP which refers to the OV.</listitem>
3553 </itemizedlist>
3554
3555 <para>
3556 Once you have done this, you send the OV DCP to every cinema and then
3557 the appropriate VF to each cinema depending on what language they want
3558 to play the film in.  The projectionist ingests both DCPs and then plays the VF.
3559 </para>
3560
3561 <para>
3562 The advantage of this approach is that the VF DCPs are much smaller
3563 than the OV since they only have the language-specific parts.  If you
3564 are just changing the subtitles you can often ship the OV by normal
3565 transport means (e.g. a hard drive or high-speed download) and send
3566 the VF by email.
3567 </para>
3568
3569 <para>
3570 The full details of OV and VF files are discussed in <xref linkend="sec-overlay"/>.  The steps can be summarised as follows:
3571 </para>
3572
3573 <itemizedlist>
3574 <listitem>Create a new DCP-o-matic project for the OV, as normal, adding video and perhaps sound.  Make the DCP.</listitem>
3575 <listitem>Create a new DCP-o-matic project for the VF.</listitem>
3576 <listitem>Use <guilabel>Add folder...</guilabel> to add your OV DCP to the project.</listitem>
3577 <listitem>Select the video tab and tick <guilabel>Use this DCP's video as OV and make VF</guilabel> (you may need to select <guilabel>By video content</guilabel> for <guilabel>Reel type</guilabel> in the <guilabel>DCP</guilabel> tab).</listitem>
3578 <listitem>Do the same in the <guilabel>Audio</guilabel> tab if your OV has audio.</listitem>
3579 <listitem>Add your language-specific audio and/or subtitles and Make DCP.</listitem>
3580 </itemizedlist>
3581
3582 </section>
3583
3584 </chapter>
3585
3586 <chapter xml:id="ch-player" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
3587   <title>Playing DCPs</title>
3588
3589   <para>DCP-o-matic includes a DCP player, and although it requires a
3590   very high-speed CPU to play DCPs in full resolution, it can also
3591   play DCPs at reduced resolutions with slower CPUs.</para>
3592
3593   <para>To use the player, start <guilabel>DCP-o-matic
3594   Player</guilabel>, and load a DCP using the
3595   <guilabel>Open</guilabel> option on the <guilabel>File</guilabel>
3596   menu.</para>
3597
3598   <para>If you load a VF and/or encrypted DCP you can add your OV
3599   and/or KDM using the appropriate options on the
3600   <guilabel>File</guilabel> menu.</para>
3601
3602   <para>During playback the <guilabel>Performance</guilabel> area at
3603   the bottom right of the window will give details of how many frames
3604   are being dropped; these are frames that were not decoded from the
3605   DCP quickly enough.  If this number is high you can increase
3606   performance at the cost of rendering quality by choosing an option
3607   from the <guilabel>View</guilabel> menu.  If you set the player to
3608   decode at less than full resolution the DCP's data will be decoded
3609   at this lower resolution, which is quicker than decoding at full
3610   resolution.
3611   </para>
3612
3613 </chapter>
3614
3615 <!-- ============================================================== -->
3616 <chapter xml:id="ch-config" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
3617 <title>Configuration files</title>
3618
3619 <para>Most of DCP-o-matic's configuration is stored in an XML file called <code>config.xml</code>.  This is stored in different places depending on your operating system:</para>
3620
3621 <itemizedlist>
3622   <listitem>Windows: <code>c:\Users\your_user_name\AppData\Local\dcpomatic</code></listitem>
3623   <listitem>OS X: <code>/Users/your_user_Name/Library/Preferences/com.dcpomatic/2</code></listitem>
3624   <listitem>Linux: <code>~/.config/dcpomatic2</code></listitem>
3625 </itemizedlist>
3626
3627 <para>Possible XML tags are as follows:</para>
3628
3629 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="config.xml"/>
3630
3631 </chapter>
3632
3633 </book>