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