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