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