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