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