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