Manual tweak.
[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>Use Subtitles</guilabel> check-box to enable
1065 these subtitles.
1066 </para>
1067
1068 <para>
1069 Select the <guilabel>Burn subtitles into image</guilabel> check-box to
1070 burn these subtitles into the image; if this is not ticked the
1071 subtitles will be included separately in the DCP to be rendered by the
1072 projector.
1073 </para>
1074
1075 <para>
1076 The <guilabel>X Offset</guilabel> and <guilabel>Y Offset</guilabel>
1077 controls move the subtitles around within the image.  The offsets are
1078 expressed as a percentage of the video frame size; 100% X offset is
1079 the entire width of the frame, and 100% Y offset is the entire height.
1080 Hence, to move the subtitles down by half the frame height you would
1081 use a Y offset of 50%.
1082 </para>
1083
1084 <para>
1085 The <guilabel>X Scale</guilabel> and <guilabel>Y Scale</guilabel>
1086 controls scale the subtitles.  Scale values of 1 make the subtitles
1087 the same size (relative to the size of the image) as they are on the
1088 original.  Values lower than 1 make them smaller, and values higher
1089 make them larger.  You can stretch the subtitles in either direction
1090 by specifying different values for X and Y scale.  Subtitles from DVD
1091 and Blu Ray sources are frequently larger (relative to the video
1092 frame) than those typically used for DCP, so it is often useful to
1093 scale such subtitles down using these controls.
1094 </para>
1095
1096 <para>
1097 The <guilabel>Stream</guilabel> control changes the subtitle stream
1098 that is used when the content has more than one.
1099 </para>
1100
1101 </section>
1102
1103
1104 <!-- ============================================================== -->
1105 <section>
1106 <title>Timing</title>
1107
1108 <para>
1109 The timing tab contains settings related to the timing of your
1110 content, as shown in <xref linkend="fig-timing-tab-detail"/>.
1111 </para>
1112
1113 <figure id="fig-timing-tab-detail">
1114   <title>Timing settings tab</title>
1115   <mediaobject>
1116     <imageobject>
1117        <imagedata fileref="screenshots/timing-tab&scs;"/>
1118     </imageobject>
1119   </mediaobject>
1120 </figure>
1121
1122 <para>
1123 Most of the timing tab's entries are <emphasis>time-codes</emphasis>.
1124 These are expressed as four numbers, as shown in <xref
1125 linkend="fig-timecode"/>.
1126 </para>
1127
1128 <figure id="fig-timecode">
1129   <title>Timecode</title>
1130   <mediaobject>
1131     <imageobject>
1132        <imagedata fileref="diagrams/timecode&dia;"/>
1133     </imageobject>
1134   </mediaobject>
1135 </figure>
1136
1137 <para>
1138 <guilabel>Position</guilabel> is the time at which this piece of
1139 content should start within the DCP.  In most cases, this will be
1140 <code>0:0:0:0</code> to make the content start at the beginning of the
1141 DCP.
1142 </para>
1143
1144 <para>
1145 <guilabel>Full length</guilabel> is the length of the piece of
1146 content.  This can only be set for still-image content: for video or
1147 sound content, it is fixed by the nature of the content file.  If
1148 still-image content is being used you can set the length for which it
1149 should be displayed using this control.
1150 </para>
1151
1152 <para>
1153 <guilabel>Trim from start</guilabel> specifies the amount that should be trimmed from the start of the content.
1154 </para>
1155
1156 <para>
1157 <guilabel>Trim from end</guilabel> specifies the amount that should be trimmed from the end of the content.
1158 </para>
1159
1160 <para>
1161 <guilabel>Play length</guilabel> indicates how long this piece of
1162 content will be once the trims have been applied.  This will be equal
1163 to the full length minus <guilabel>trim-from-start</guilabel> and minus <guilabel>trim-from-end</guilabel>.
1164 </para>
1165
1166 <para>
1167 <guilabel>Video frame rate</guilabel> specifies the frame rate for
1168 still-image content.  It can also be used to override the detected
1169 frame rate of other content if DCP-o-matic has got it wrong.
1170 </para>
1171
1172 <para>
1173 Each timecode control has a <guilabel>Set</guilabel> which you should
1174 click when you have entered a new value for a timecode.  The
1175 <guilabel>Set</guilabel> button will make DCP-o-matic take account of
1176 any changes to the corresponding timecode.
1177 </para>
1178
1179 </section>
1180
1181
1182 <!-- ============================================================== -->
1183 <section>
1184 <title>Video processing pipeline</title>
1185
1186 <para>
1187 This section gives a little more detail about how DCP-o-matic process
1188 video as it takes it from a source and puts it into a DCP.
1189 </para>
1190
1191 <para>
1192 Consider, as a somewhat over-the-top example, that we have a 720 x 576
1193 image which is letterboxed with 36 black pixels each at the top and
1194 bottom, and the video content within the letterbox should be presented
1195 in the DCP at ratio of 2.39:1 within a 1.85:1 frame (such as might
1196 happen with a trailer).  The source image is shown in <xref
1197 linkend="fig-pipeline1"/>.
1198 </para>
1199
1200 <figure id="fig-pipeline1">
1201   <title>Example image to demonstrate video processing</title>
1202   <mediaobject>
1203     <imageobject>
1204        <imagedata scale="100" fileref="diagrams/pipeline1&dia;"/>
1205     </imageobject>
1206   </mediaobject>
1207 </figure>
1208
1209 <para>
1210 DCP-o-matic runs through the following steps when preparing an image for a DCP:
1211 </para>
1212
1213 <itemizedlist>
1214 <listitem>Crop</listitem>
1215 <listitem>Scale</listitem>
1216 <listitem>Place in container</listitem>
1217 </itemizedlist>
1218
1219 <para>
1220 First, some amount of the image can be cropped.  This is almost always
1221 used to remove black borders (letterboxing and/or pillarboxing) around
1222 images.
1223 </para>
1224
1225 <para>
1226 In our example image, we would use 36 pixels of crop from the top and
1227 bottom.  This would give the new image shown in <xref
1228 linkend="fig-pipeline2"/>.
1229 </para>
1230
1231 <figure id="fig-pipeline2">
1232   <title>Example image after cropping</title>
1233   <mediaobject>
1234     <imageobject>
1235        <imagedata scale="100" fileref="diagrams/pipeline2&dia;"/>
1236     </imageobject>
1237   </mediaobject>
1238 </figure>
1239
1240 <para>
1241 The next step is to scale the image.  Since this content should be
1242 presented in a 2.39:1 aspect ratio inside a 1.85:1 DCP we would select
1243 <guilabel>Scope</guilabel> from the <guilabel>Scale to</guilabel>
1244 option in the <guilabel>Video</guilabel> tab and
1245 <guilabel>Flat</guilabel> from the <guilabel>Container</guilabel>
1246 option in the <guilabel>DCP</guilabel> tab.
1247 </para>
1248
1249 <para>The <guilabel>Scale to</guilabel> option should always be set to
1250 the aspect ratio at which the content should be seen.  The
1251 <guilabel>Container</guilabel> option should be set to the preset that
1252 you want to use on the projector.  Of course, these two settings will
1253 often be the same.
1254 </para>
1255
1256 <para>
1257 Given the scaling and container information, DCP-o-matic will look at
1258 the DCP's container size, and then scale the source image up until one
1259 or both of its dimensions (width, height or both) fits the size of the
1260 container, all the while preserving the desired aspect ratio.
1261 </para>
1262
1263 <para>
1264 In our example here, the DCP's container is specified as 1.85:1 (so
1265 that the DCP will play back correctly using the projector's
1266 &lsquo;Flat&rsquo; preset).  At 2K, 1.85:1 is 1998 pixels by 1080.
1267 Scaling the source up whilst preserving its 1.85:1 aspect ratio will
1268 result in the image hitting the sides of the container first, at a
1269 size of 1998 x 836.  This gives us a new version of the image as shown
1270 in <xref linkend="fig-pipeline3"/>.
1271 </para>
1272
1273 <figure id="fig-pipeline3">
1274   <title>Example image after cropping and scaling</title>
1275   <mediaobject>
1276     <imageobject>
1277        <imagedata scale="100" fileref="diagrams/pipeline3&dia;"/>
1278     </imageobject>
1279   </mediaobject>
1280 </figure>
1281
1282 <para>
1283 The final step is to place the image into the DCP.  In this case,
1284 since we have a 2.39:1 image that should be presented as a 1.85:1 DCP,
1285 we have set the <guilabel>container</guilabel> in the
1286 <guilabel>DCP</guilabel> tab to be Scope.  Since the content has been
1287 scaled to 1998 x 836, and a Flat container is 1998 x 1080, there will
1288 be some black bars at the top and bottom of the image.  DCP-o-matic
1289 shares out this black equally, as shown in <xref
1290 linkend="fig-pipeline3"/>.
1291 </para>
1292
1293 <figure id="fig-pipeline4">
1294   <title>Example image in the DCP</title>
1295   <mediaobject>
1296     <imageobject>
1297        <imagedata scale="100" fileref="diagrams/pipeline4&dia;"/>
1298     </imageobject>
1299   </mediaobject>
1300 </figure>
1301
1302 </section>
1303
1304 </chapter>
1305
1306 <chapter xml:id="ch-dcp" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
1307 <title>DCP settings</title>
1308
1309 <para>
1310 This chapter describes the settings that apply to the whole DCP.  The
1311 controls for these settings are in the <guilabel>DCP</guilabel> tab of
1312 the main window, as shown in <xref linkend="fig-dcp-tab"/>.
1313 </para>
1314
1315 <figure id="fig-dcp-tab">
1316   <title>DCP settings tab</title>
1317   <mediaobject>
1318     <imageobject>
1319        <imagedata fileref="screenshots/dcp-tab&scs;"/>
1320     </imageobject>
1321   </mediaobject>
1322 </figure>
1323
1324 <para>
1325 The first thing here is the name.  This is generally set to the title
1326 of the film that is being encoded.  If <guilabel>Use ISDCF
1327 name</guilabel> is not ticked, the name that you specify will be used
1328 as-is for the name of the DCP.  If <guilabel>Use ISDCF name</guilabel>
1329 is ticked, the name that you enter will be used as part of a
1330 ISDCF-compliant name.
1331 </para>
1332
1333 <para>
1334 Underneath the name field is a preview of the name that the DCP will
1335 get.  To use a ISDCF-compliant name, tick the <guilabel>Use ISDCF
1336 name</guilabel> check-box.  The ISDCF name will be composed using details
1337 of your content's soundtrack, the current date and other things that
1338 can be specified in the ISDCF name details dialogue box, which you can
1339 open by clicking on the <guilabel>Details</guilabel> button.
1340 </para>
1341
1342 <para>
1343 If you want to take the ISDCF-compliant name that DCP-o-matic
1344 generates and modify it, click <guilabel>Copy as name</guilabel> and
1345 the ISDCF name will be copied into the <guilabel>Name</guilabel> box.
1346 You can then edit it as you wish.  The DCP name should not matter (in
1347 that it should not affect how the DCP ingests or plays) but
1348 projectionists will appreciate it if you use the standard naming
1349 scheme as it makes it easier to identify details of the content.
1350 </para>
1351
1352 <para>
1353 The <guilabel>Content Type</guilabel> option can be
1354 &lsquo;feature&rsquo;, &lsquo;trailer&rsquo; or whatever; select the
1355 required type from the drop-down list.  On some projection systems
1356 this will affect where your content appears in the projector's server
1357 user interface, so take care to select an appropriate type.
1358 </para>
1359
1360 <para>
1361 The <guilabel>Signed</guilabel> check-box sets whether or not the DCP
1362 is signed.  This is rarely important; if in doubt, tick it.
1363 </para>
1364
1365 <para>
1366 The <guilabel>Encrypted</guilabel> check-box will set whether the DCP
1367 should be encrypted or not.  If this is ticked, the DCP will require a
1368 KDM to play back.  Encryption is discussed in <xref
1369 linkend="ch-encryption"/>.
1370 </para>
1371
1372 <para>
1373 If you use encryption DCP-o-matic will generate a random encryption
1374 key for you.  To specify your own key, click the
1375 <guilabel>Edit..</guilabel> button next to the key.
1376 </para>
1377
1378 <para>
1379 The <guilabel>Standard</guilabel> option specifies which of the two
1380 DCP standards DCP-o-matic should use.  If in doubt, use SMPTE (the
1381 more modern of the two).
1382 </para>
1383
1384 <para>
1385 At the bottom of the DCP tab are a further two tabs, one each to
1386 contain the settings for the DCP's video and audio parts.
1387 </para>
1388
1389 <para>
1390 The <guilabel>Container</guilabel> option sets the ratio of the image
1391 in the DCP.  If this ratio is different to the ratio used for any
1392 content, DCP-o-matic will pad the content with black.  In simple cases
1393 this should be set to the same ratio as that for the the primary piece
1394 of video content.  Alternatively, you might want to pillarbox a small
1395 format into a Flat container: in this case, select the small format
1396 for the content's ratio and &lsquo;Flat&rsquo; for the DCP.
1397 </para>
1398
1399 <para>
1400 The <guilabel>Frame Rate</guilabel> control sets the frame rate of
1401 your DCP.  This can be a little tricky to get right.  Ideally, you
1402 want it to be the same as the video content that you are using.  If it
1403 is not the same, DCP-o-matic must resort to some tricks to alter your
1404 content to fit the specified frame rate.  Frame rates are discussed in
1405 more detail in <xref linkend="ch-frame-rates"/>.
1406 </para>
1407
1408 <para>
1409 The <guilabel>Use best</guilabel> button sets the DCP video frame rate
1410 to what DCP-o-matic thinks is the best given the content that you have
1411 added.
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 <para>
1468 This upmixing algorithm is due to Gérald Maruccia.
1469 </para>
1470 </listitem>
1471 <listitem>Stereo to 5.1 up-mixer B &mdash; this uses a different approach:
1472 <itemizedlist>
1473   <listitem>DCP L is input L.</listitem>
1474   <listitem>DCP R is input R.</listitem>
1475   <listitem>DCP C is input L + input R taken down by 3dB.</listitem>
1476   <listitem>DCP Lfe is DCP C bandpass filtered between 20Hz and 150Hz.</listitem>
1477   <listitem>DCP Ls and Rs are input L - input R with a 20ms delay.</listitem>
1478 </itemizedlist>
1479 </listitem>
1480 </itemizedlist>
1481
1482 <!-- ============================================================== -->
1483 <section>
1484 <title>Show audio</title>
1485
1486 <para>
1487 The <guilabel>Show Audio</guilabel> button will instruct DCP-o-matic
1488 to examine the audio in your content and plot a graph of its level
1489 over time.  This can be useful for getting a rough idea of how loud
1490 the sound will be in the cinema auditorium.  A typical plot is shown
1491 in <xref linkend="fig-audio-plot"/>
1492 </para>
1493
1494 <figure id="fig-audio-plot">
1495   <title>Audio plot</title>
1496   <mediaobject>
1497     <imageobject>
1498        <imagedata fileref="screenshots/audio-plot&scs;"/>
1499     </imageobject>
1500   </mediaobject>
1501 </figure>
1502
1503 <para>
1504 The plot gives the audio level (vertical axis, in dB) with time
1505 (horizontal axis).  0dB represents full scale, so if there is anything
1506 near this you are in danger of clipping the projector's audio outputs.
1507 </para>
1508
1509 <para>
1510 There are two plot types: the peak level and the RMS, which can be
1511 shown or hidden using the check-boxes on the right hand side of the
1512 window.
1513 </para>
1514
1515 <para>
1516 The channel check-boxes will show or hide the plot(s) for
1517 the corresponding channels in the DCP.
1518 </para>
1519
1520 <para>
1521 The smoothing slider applies a variable degree of temporal smoothing
1522 to the plots, which can make them easier to read in some cases.
1523 </para>
1524
1525 <para>
1526 Obviously the audio plot is no substitute for listening in an
1527 auditorium, but it can be useful to get levels in the right rough area.
1528 </para>
1529
1530 </section>
1531
1532 </chapter>
1533
1534 <chapter xml:id="ch-encryption" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
1535 <title>Encryption</title>
1536
1537 <para>
1538 It is not required that DCPs be encrypted, but they can be.  This
1539 chapter discusses the basic principles of DCP encryption, and how
1540 DCP-o-matic can create encrypted DCPs and KDMs for them.
1541 </para>
1542
1543
1544 <!-- ============================================================== -->
1545 <section>
1546 <title>Basics</title>
1547
1548 <para>
1549 DCPs can be encrypted.  This means that the picture and sound data are
1550 encoded in such a way that only cinemas &lsquo;approved&rsquo; by the
1551 DCP's creators can read them.  In particular, this means copies of the
1552 DCP can be distributed by insecure means: if an ne'er-do-well called
1553 Mallory obtains a hard drive containing an encrypted DCP, there is no
1554 way that he can play it.  Only those cinemas who receive a correct key
1555 delivery message (KDM) can play the DCP.
1556 </para>
1557
1558
1559 <!-- ============================================================== -->
1560 <section>
1561 <title>How it works (in a nutshell)</title>
1562
1563 <para>
1564 This section attempts to summarise how DCP encryption works.  You can
1565 skip it if you like.  You may need some knowledge of encryption
1566 methods to understand it.
1567 </para>
1568
1569 <para>
1570 We suppose that we are trying to send a DCP to
1571 Alice's cinema without a troublemaker called Mallory being able to
1572 watch it himself.
1573 </para>
1574
1575 <para>
1576 There are two main families of encryption techniques.  The first,
1577 symmetric-key encryption, allows us to encode some data using some
1578 numeric key.  After encoding, no-one can decode the data unless they
1579 know the key.
1580 </para>
1581
1582 <para>
1583 The first step in a DCP encryption is to encode its data with some key
1584 using symmetric-key encryption.  The encrypted DCP can then be sent
1585 anywhere, safe in the knowledge that even if Mallory got hold of a
1586 copy, he could not decrypt it.
1587 </para>
1588
1589 <para>
1590 Alice, however, needs to know the key so she can play the DCP in her
1591 cinema.  A simple approach might be for us to send Alice the key.
1592 However, if Mallory can intercept the DCP, he might also be able to
1593 intercept our communication of the key to Alice.  Furthermore, if Alice
1594 happened to know Mallory, she could just send him a copy of the key.
1595 </para>
1596
1597 <para>
1598 The clever bit in the process requires the use of public-key
1599 encryption.  With this technique we can encrypt a block of data using
1600 some &lsquo;public&rsquo; key.  That data can then only be decrypted
1601 using a corresponding private key which is
1602 <emphasis>different</emphasis> to the public key.  The private and
1603 public keys form a pair which are related mathematically, but it is
1604 extremely hard (or rather, virtually impossible) to derive the private
1605 key from the public key.
1606 </para>
1607
1608 <para>
1609 Public-key encryption allows us to distribute the DCP's key to Alice
1610 securely.  The manufacturer of Alice's projector generates a public
1611 and private key.  They hide the private key deep inside the bowels of
1612 the projector (inside an integrated circuit) where no-one can read it.
1613 They then make the public key available to anyone who is interested.
1614 </para>
1615
1616 <para>
1617 We take our DCP's symmetric key and encrypt it using the public key of
1618 Alice's projector.  We send the result to Alice over email (using a
1619 format called a Key Delivery Message, or KDM).  Her projector then
1620 decrypts our message using its private key, yielding the magic
1621 symmetric key which can decrypt the DCP.
1622 </para>
1623
1624 <para>
1625 If is fine if Mallory intercepts our email to Alice, since the only
1626 key which can decrypt the message is the private key buried inside
1627 Alice's projector.  The projector manufacturer is very careful that
1628 no-one ever finds out what this key is.  Our DCP is secure: only Alice
1629 can play it back, since only her projector knows the key (even Alice
1630 does not).
1631 </para>
1632
1633 </section>
1634 </section>
1635
1636
1637 <!-- ============================================================== -->
1638 <section>
1639 <title>Encryption using DCP-o-matic</title>
1640
1641 <para>
1642 There are two steps to distributing an encrypted DCP.  First, the
1643 DCP's data must be encrypted, and secondly KDMs must be generated for
1644 those cinemas that are allowed to play the DCP.
1645 </para>
1646
1647 <para>
1648 The first part is simple: ticking the <guilabel>Encrypted</guilabel>
1649 box in the <guilabel>DCP</guilabel> tab of DCP-o-matic will encrypt
1650 the DCP using a random key that DCP-o-matic generates.  The key will
1651 be written to the film's metadata file, which should be kept
1652 secure.
1653 </para>
1654
1655 <para>
1656 A DCP that is generated with the <guilabel>Encrypted</guilabel> box
1657 ticked will not play on any projector as-is (it will be marked as
1658 &lsquo;locked&rsquo;, or whatever the projector manufacturer's term
1659 is).
1660 </para>
1661
1662 <para>
1663 The second part is to generate KDMs for the cinemas that you wish to
1664 allow to play your DCP.  This is done using the <guilabel>Make
1665 KDMs</guilabel> option on the <guilabel>Jobs</guilabel> menu.  This
1666 will open the KDM dialogue box, as shown in <xref linkend="fig-kdm"/>.
1667 </para>
1668
1669 <figure id="fig-kdm">
1670   <title>KDM dialog</title>
1671   <mediaobject>
1672     <imageobject>
1673       <imagedata fileref="screenshots/kdm&scs;"/>
1674     </imageobject>
1675   </mediaobject>
1676 </figure>
1677
1678 <para>
1679 In order to generate KDMs for a particular projector, you need to know
1680 its <emphasis>certificate</emphasis>.  These are usually made
1681 available by the projector manufacturers as text files with a
1682 <code>.pem</code> extension.
1683 </para>
1684
1685 <para>
1686 DCP-o-matic can store these certificates to make life easier.  It
1687 stores details of cinemas and screens within those cinemas.  Each
1688 screen has a certificate for its projector.  DCP-o-matic can generate
1689 KDMs for any screens that it knows about.
1690 </para>
1691
1692 <para>
1693 To add a cinema, click <guilabel>Add Cinema...</guilabel>.  This opens
1694 a dialogue box into which you can enter the cinema's name, and
1695 optionally an email address.  This email address can be used to
1696 get DCP-o-matic to deliver KDMs via email.
1697 </para>
1698
1699 <para>
1700 Once you have added a cinema, select it by clicking on its name, then
1701 click <guilabel>Add Screen...</guilabel>.  The resulting dialogue
1702 allows you to enter a name for the screen and load in its certificate
1703 from a file.  The certificate should be in SHA256 PEM format.
1704 </para>
1705
1706 <para>
1707 Alternatively, certificates for projection systems made by some
1708 manufacturers can be downloaded from databases provided by the
1709 manufacturer.  Currently this is supported for Doremi and Dolby
1710 equipment.  If you are targeting a screen with equipment by one of
1711 these manufacturers you can select Doremi or Dolby from the
1712 <guilabel>Server manufacturer</guilabel> selection and then click
1713 <guilabel>Download</guilabel>.  In the next dialogue box, enter
1714 details of the screen and click <guilabel>Download</guilabel> and, all
1715 being well, the certificate will be fetched.
1716 </para>
1717
1718 <para>
1719 Using the download system you will need to know the serial number of
1720 the media server in use in the screen.  Most cinema projection or
1721 technical departments will know these serial numbers.
1722 </para>
1723
1724 <para>
1725 Note that the reliability of the manufacturers' certificate databases
1726 cannot be guaranteed.  It is vital that KDMs are tested by the
1727 destination cinema will in advance of show time to identify any
1728 problems.
1729 </para>
1730
1731 <para>
1732 Once you have set up all the screens that you need KDMs for, select
1733 the CPL that you want to create the KDM for.  You can use the
1734 drop-down list to select the CPLs in the current film project, or load
1735 a CPL from somewhere else.  Select the cinemas and/or screens that you
1736 want KDMs for and fill in the start and end dates and times.
1737 </para>
1738
1739 <para>
1740 You must also select the type of KDM that you want to generate.  If in
1741 doubt, use <guilabel>Modified Transitional 1</guilabel>.
1742 </para>
1743
1744 <para>
1745 Finally, choose what you want to do with the KDMs.  They can be
1746 written to disk, to a location that you can specify by clicking
1747 <guilabel>Browse</guilabel>.  Alternatively, if you choose
1748 <guilabel>Send by email</guilabel> the KDMs will be zipped up and
1749 emailed to the appropriate cinema email addresses.  Click OK to
1750 generate the KDMs.
1751 </para>
1752
1753 </section>
1754
1755 </chapter>
1756
1757
1758
1759 <!-- ============================================================== -->
1760 <chapter xml:id="ch-preferences" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
1761 <title>Preferences</title>
1762
1763 <para>
1764 DCP-o-matic provides a few preferences which can be used to modify its
1765 behaviour.  This chapter explains those options.
1766 </para>
1767
1768
1769 <!-- ============================================================== -->
1770 <section>
1771 <title>The preferences dialogue</title>
1772
1773 <para>
1774 The preferences dialogue is opened by choosing
1775 <guilabel>Preferences...</guilabel> from the <guilabel>Edit</guilabel>
1776 menu.  The dialogue is split into seven tabs.
1777 </para>
1778
1779 <!-- ============================================================== -->
1780 <section>
1781 <title>General</title>
1782
1783 <para>
1784 The general tab is shown in <xref linkend="fig-prefs-general"/>.
1785 </para>
1786
1787 <figure id="fig-prefs-general">
1788   <title>General preferences</title>
1789   <mediaobject>
1790     <imageobject>
1791       <imagedata fileref="screenshots/prefs-general&scs;"/>
1792     </imageobject>
1793   </mediaobject>
1794 </figure>
1795
1796
1797 <!-- ============================================================== -->
1798 <section>
1799 <title>Language</title>
1800
1801 <para>
1802 If you tick the <guilabel>Set Language</guilabel> checkbox and choose
1803 a language from the list, that language will be used for DCP-o-matic.
1804 You will need to restart DCP-o-matic to see the new language.
1805 </para>
1806
1807 <para>
1808 The translations for DCP-o-matic have been contributed by helpful
1809 users.  If your language is not on the last, head to <ulink
1810 url="http://dcpomatic.com/i18n.php">the DCP-o-matic website</ulink> to
1811 read about how to contribute a translation.
1812 </para>
1813 </section>
1814
1815
1816 <!-- ============================================================== -->
1817 <section>
1818 <title>Threads</title>
1819
1820 <para>
1821 When DCP-o-matic is encoding DCPs it can use multiple parallel threads
1822 to speed things up.  Set this value to the number of threads
1823 DCP-o-matic should use.  This should normally be the number of
1824 processors (or processor cores) in your machine.  DCP-o-matic will try
1825 to set this up correctly when you run it for the first time.
1826 </para>
1827
1828 </section>
1829
1830 <!-- ============================================================== -->
1831 <section>
1832 <title>Updates</title>
1833
1834 <para>
1835 The <guilabel>Check for updates on startup</guilabel> option, if
1836 enabled, will tell DCP-o-matic to check on <ulink
1837 url="http://dcpomatic.com/">dcpomatic.com</ulink> to see if there any
1838 newer versions of DCP-o-matic then the one you are running.  If so, a
1839 dialogue box will open with a link to download the new version.
1840 available
1841 </para>
1842
1843 <para>
1844 The <guilabel>Check for testing updates as well as stable
1845 ones</guilabel> option will also check for test updates as well as
1846 those that are formally &lsquo;released&rsquo;. This is useful if you
1847 like to live on the bleeding edge!
1848 </para>
1849 </section>
1850
1851 <!-- ============================================================== -->
1852 <section>
1853 <title>Issuer and creator</title>
1854
1855 <para>
1856 With these controls you can set the issuer and creator strings that
1857 will be put into the DCPs which you create.
1858 </para>
1859 </section>
1860
1861 </section>
1862
1863 <!-- ============================================================== -->
1864 <section>
1865 <title>Defaults</title>
1866
1867 <para>
1868 The defaults tab is shown in <xref linkend="fig-prefs-defaults"/>.
1869 </para>
1870
1871 <figure id="fig-prefs-defaults">
1872   <title>Defaults preferences</title>
1873   <mediaobject>
1874     <imageobject>
1875       <imagedata fileref="screenshots/prefs-defaults&scs;"/>
1876     </imageobject>
1877   </mediaobject>
1878 </figure>
1879
1880 <para>
1881 The options in this tab simply allow you to set up default values for
1882 various properties of new films.
1883 </para>
1884
1885 </section>
1886
1887 <!-- ============================================================== -->
1888 <section>
1889 <title>Servers</title>
1890
1891 <para>
1892 The servers tab is shown in <xref linkend="fig-prefs-servers"/>.
1893 </para>
1894
1895 <figure id="fig-prefs-servers">
1896   <title>Servers preferences</title>
1897   <mediaobject>
1898     <imageobject>
1899       <imagedata fileref="screenshots/prefs-servers&scs;"/>
1900     </imageobject>
1901   </mediaobject>
1902 </figure>
1903
1904 <para>
1905 If <guilabel>Use all servers</guilabel> is ticked DCP-o-matic will
1906 locate encoding servers automatically (see <xref
1907 linkend="ch-servers"/>).
1908 </para>
1909
1910 <para>
1911 Instead of this (or in addition) servers can be specified explicitly.
1912 To add a server, click <guilabel>Add...</guilabel> and enter the host
1913 name or IP address of the server to use.
1914 </para>
1915
1916 </section>
1917
1918
1919 <!-- ============================================================== -->
1920 <section xml:id="sec-prefs-keys">
1921 <title>Keys</title>
1922
1923 <para>
1924 The Keys tab (shown in <xref linkend="fig-prefs-keys"/>) holds options
1925 related to the keys and certificates used in some parts of DCP
1926 creation.
1927 </para>
1928
1929 <figure id="fig-prefs-keys">
1930   <title>Keys preferences</title>
1931   <mediaobject>
1932     <imageobject>
1933       <imagedata fileref="screenshots/prefs-keys&scs;"/>
1934     </imageobject>
1935   </mediaobject>
1936 </figure>
1937
1938 <para>
1939 At the top of the tab is the chain of certificates that will be used
1940 to sign DCPs and KDMs.  DCP-o-matic creates a random chain when you
1941 first run it and if you are happy to use this chain you can ignore the
1942 preferences.  Otherwise, you can add or remove certificates from the
1943 chain using the <guilabel>Add...</guilabel> and
1944 <guilabel>Remove</guilabel> buttons.
1945 </para>
1946
1947 <para>
1948 If you want DCP-o-matic to re-create the certificate chain (using new,
1949 random certificates) click <guilabel>Re-make
1950 certificates...</guilabel> and specify your organisation and common
1951 names in the dialogue box that opens.
1952 </para>
1953
1954 <para>
1955 Underneath the certificate chain is the private key that corresponds
1956 to the leaf certificate in the chain.  You can specify your own
1957 private key by clicking <guilabel>Load...</guilabel>.  You must do
1958 this if you change the leaf certificate, so that the leaf private key
1959 corresponds to the public key held in the leaf certificate.
1960 </para>
1961
1962 <para>
1963 Underneath the details of the certificate chain and private key for
1964 signing of DCPs and KDMs is a second chain and key which is used by
1965 DCP-o-matic when you import an encrypted DCP as a piece of content.
1966 The leaf certificate of this chain contains the public key that should
1967 be used when targeting a KDM at DCP-o-matic.
1968 </para>
1969
1970 <para>
1971 If you want to import an encrypted DCP you will need to give the
1972 decryption certificate to the distributor of the DCP so that they can
1973 generate a DKDM for you.  You can save this certificate to disk by
1974 clicking <guilabel>Export DCP decryption certificate</guilabel>.  As
1975 with the signing chain, DCP-o-matic will create a certificate chain
1976 and private key for you.  You can also choose to load your own
1977 certificates and key or re-make the chain and key with new, random
1978 values.
1979 </para>
1980
1981 </section>
1982
1983 <!-- ============================================================== -->
1984 <section xml:id="sec-prefs-tms">
1985 <title>TMS</title>
1986 <titleabbrev xml:id="sec-prefs-tms-short">TMS preferences</titleabbrev>
1987
1988 <para>
1989 The TMS tab (shown in <xref linkend="fig-prefs-tms"/>) gives some
1990 options for specifying details about your theatre management system
1991 (TMS).  If you do this, and your TMS accepts SSH or FTP connections,
1992 you can upload DCPs directly from DCP-o-matic to the TMS using the
1993 <guilabel>Send DCP to TMS</guilabel> option in the
1994 <guilabel>Jobs</guilabel> menu.
1995 </para>
1996
1997 <figure id="fig-prefs-tms">
1998   <title>TMS preferences</title>
1999   <mediaobject>
2000     <imageobject>
2001       <imagedata fileref="screenshots/prefs-tms&scs;"/>
2002     </imageobject>
2003   </mediaobject>
2004 </figure>
2005
2006 <para>
2007 <guilabel>Protocol</guilabel> should be set to SCP or FTP as
2008 appropriate for your TMS.  We know that the Arts Alliance Media (AAM)
2009 and the Doremi ranges uses SCP connections, and that Dolby's TMSs use
2010 FTP.  Do let us know if you use any other type of TMS with the
2011 <guilabel>Send DCP to TMS</guilabel> feature.
2012 </para>
2013
2014 <para>
2015 <guilabel>TMS IP address</guilabel> should be set to the IP address of
2016 your TMS, <guilabel>TMS target path</guilabel> to the place that DCPs
2017 should be uploaded to (which will be relative to the home directory of
2018 the SSH or FTP user).  Finally, the user name and password are the
2019 credentials required to log into the TMS via SSH or FTP.
2020 </para>
2021
2022 <para>
2023 Note that for this to work on Doremi servers you will need to set the
2024 <code>PasswordAuthentication</code> option in your server's
2025 <code>sshd_config</code> to <code>yes</code>.
2026 </para>
2027
2028 </section>
2029
2030
2031 <!-- ============================================================== -->
2032 <section>
2033 <title>KDM email</title>
2034
2035 <para>
2036 The KDM email is shown in <xref linkend="fig-prefs-kdm-email"/>.
2037 </para>
2038
2039 <figure id="fig-prefs-kdm-email">
2040   <title>KDM email preferences</title>
2041   <mediaobject>
2042     <imageobject>
2043       <imagedata fileref="screenshots/prefs-kdm-email&scs;"/>
2044     </imageobject>
2045   </mediaobject>
2046 </figure>
2047
2048 <para>
2049 This is a template for the email that is used to send KDMs out to
2050 cinemas.  You can change it to say whatever you like.  A few
2051 &lsquo;magic&rsquo; strings will be replaced by information from the
2052 KDM that is being sent:
2053 </para>
2054
2055 <table>
2056 <title>&lsquo;Magic&rsquo; KDM strings</title>
2057 <tgroup cols='2' align='left' colsep='1' rowsep='1'>
2058 <tbody>
2059 <row>
2060 <entry><code>$CPL_NAME</code></entry><entry>DCP title</entry>
2061 </row>
2062 <row>
2063 <entry><code>$CINEMA_NAME</code></entry><entry>Cinema name</entry>
2064 </row>
2065 <row>
2066 <entry><code>$SCREENS</code></entry><entry>Name of screen or screens that KDMs are being generated for</entry>
2067 </row>
2068 <row>
2069 <entry><code>$START_TIME</code></entry><entry>The time from which the KDMs are valid</entry>
2070 </row>
2071 <row>
2072 <entry><code>$END_TIME</code></entry><entry>The time until which the KDMs are valid</entry>
2073 </row>
2074 </tbody>
2075 </tgroup>
2076 </table>
2077
2078 <para>
2079 The <guilabel>Reset to default text</guilabel> will replace the current KDM email with DCP-o-matic's default.
2080 </para>
2081
2082 </section>
2083
2084
2085 <!-- ============================================================== -->
2086 <section xml:id="sec-prefs-advanced">
2087 <title>Advanced</title>
2088 <titleabbrev xml:id="sec-prefs-advanced-short">Advanced preferences</titleabbrev>
2089
2090 <para>
2091 The advanced preferences are shown in <xref linkend="fig-prefs-advanced"/>.
2092 </para>
2093
2094 <figure id="fig-prefs-advanced">
2095   <title>Advanced preferences</title>
2096   <mediaobject>
2097     <imageobject>
2098       <imagedata fileref="screenshots/prefs-advanced&scs;"/>
2099     </imageobject>
2100   </mediaobject>
2101 </figure>
2102
2103 <para>
2104 <guilabel>Maximum JPEG2000 bandwidth</guilabel> specifies the maximum
2105 bit-rate of JPEG2000 that DCP-o-matic will allow you to create.  You
2106 are advised to leave this at 250Mbit/s in normal use for maximum DCP
2107 compatibility.
2108 </para>
2109
2110 <para>
2111 <guilabel>Allow any DCP frame rate</guilabel> removes the limits on
2112 the DCP video frame rates that DCP-o-matic will create.  This may be
2113 useful for experimentation.  Again, you are strongly advised to leave
2114 this unticked for normal use.
2115 </para>
2116
2117 <para>
2118 <guilabel>Only servers encode</guilabel> makes DCP-o-matic encode
2119 JPEG2000 data only on encoding servers and not on the host.  We
2120 suggest you leave this un-ticked unless you have a good reason to do otherwise.
2121 </para>
2122
2123 <para>
2124 The four checkboxes labelled <guilabel>Log</guilabel> control what
2125 sort of messages DCP-o-matic writes to its log file when creating a
2126 DCP.  It is useful to leave <guilabel>General</guilabel>,
2127 <guilabel>Warnings</guilabel> and <guilabel>Errors</guilabel> ticked
2128 as this makes the log files useful for tracking down bugs.
2129 </para>
2130
2131 <para>
2132 The <guilabel>Timing</guilabel> checkbox will enable extra log entries
2133 to allow developers to investigate and optimize the speed of
2134 DCP-o-matic.  It will significantly increase the size of the log files
2135 that are generated, so in normal use it is best to leave this
2136 unticked.
2137 </para>
2138
2139 </section>
2140 </section>
2141 </chapter>
2142
2143 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en" xml:id="ch-frame-rates">
2144 <title>Frame rates</title>
2145
2146 <para>
2147 In an ideal world, a DCP would be created using content at the same
2148 video frame and audio sampling rates as the DCP.  This is not,
2149 however, always possible.
2150 </para>
2151
2152
2153 <!-- ============================================================== -->
2154 <section>
2155 <title>DCP frame rate limitations</title>
2156
2157 <para>
2158 There are some limitations to video and audio frame rates in DCPs.  This is
2159 complicated by the fact that not all projectors will play DCPs at the
2160 same frame rates.  It is possible to create a DCP which one projector will
2161 play fine, but another (of a different type) will refuse to play, or
2162 even refuse to ingest.
2163 </para>
2164
2165
2166 <!-- ============================================================== -->
2167 <section>
2168 <title>Guaranteed rates</title>
2169
2170 <para>
2171 The only rates that are (pretty much) guaranteed to work on all DCI
2172 projectors are 24 frames per second (fps) for video and 48kHz or 96kHz
2173 for audio.  If you are sending your DCPs to unknown places it wise to
2174 consider using these rates if at all possible.
2175 </para>
2176
2177 </section>
2178
2179
2180 <!-- ============================================================== -->
2181 <section>
2182 <title>Other often-supported rates</title>
2183 <para>
2184 Many projectors now in the wild support additional video frame rates:
2185 25, 30 and 48 fps.
2186 </para>
2187 </section>
2188
2189
2190 <!-- ============================================================== -->
2191 <section>
2192 <title>Adapting content to fit the DCP rate</title>
2193
2194 <para>
2195 DCP-o-matic has a few tricks to allow you to use content that is not
2196 in one of the &lsquo;approved&rsquo; rates.
2197 </para>
2198
2199 <para>
2200 Audio is easy: DCP-o-matic can resample to 48kHz from any source rate
2201 with minimal loss in quality.
2202 </para>
2203
2204 <para>
2205 Video rate conversion is harder.  DCP-o-matic's basic strategy to deal
2206 with a non-supported content rate is to run it at the wrong speed, and
2207 to adjust the audio to keep it in sync.
2208 </para>
2209
2210 <para>Let us consider the example of a 25fps source for which you want
2211 to create a 24fps DCP.  DCP-o-matic will put the frames from the
2212 source directly into the DCP without modification, but will tell the
2213 projector to play them back at 24fps.  This means that the DCP's video
2214 will run slightly slower than the original.
2215 </para>
2216
2217 <para>
2218 If DCP-o-matic did nothing else, the result of this would be that the
2219 audio would be running at the original speed with the video running
2220 slowly.  Hence the audio would drift slowly out of sync.  To avoid
2221 this, DCP-o-matic also resamples the audio such that the projector
2222 will play it too slow by the same amount.  Hence it will sound
2223 slightly different but will remain in sync with the video.
2224 </para>
2225
2226 <para>
2227 For very low or high frame rates, DCP-o-matic can also skip or duplicate frames.
2228 </para>
2229
2230 </section>
2231 </section>
2232
2233
2234 <!-- ============================================================== -->
2235 <section>
2236 <title>Setting up</title>
2237
2238 <para>
2239 The <guilabel>Frame Rate</guilabel> control in the
2240 <guilabel>DCP</guilabel> tab sets the video frame rate that the DCP
2241 will use.  Clicking <guilabel>Use best</guilabel> sets the rate to
2242 what DCP-o-matic thinks is the best for your content.  With this
2243 button, DCP-o-matic assumes that the whole range of frame rates (24,
2244 25, 30 and 48fps) are allowable.
2245 </para>
2246
2247 <para>
2248 After this, the <guilabel>Video</guilabel> tab for each piece of
2249 content will give a summary of what DCP-o-matic is doing with that
2250 content.
2251 </para>
2252
2253 <para>
2254 If you want to experiment with other non-standard frame rates, you can
2255 do so by ticking the <guilabel>Allow any DCP frame rate</guilabel> in
2256 the <guilabel>Advanced</guilabel> tab of the preferences dialogue (see the
2257 <xref linkend="sec-prefs-advanced" endterm="sec-prefs-advanced-short"/>).  You are strongly advised to
2258 use this only on your own equipment, and only for experimentation
2259 purposes.
2260 </para>
2261
2262 </section>
2263
2264 </chapter>
2265
2266
2267 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en" xml:id="ch-servers">
2268 <title>Encoding servers</title>
2269
2270 <para>
2271 One way to increase the speed of DCP encoding is to use more
2272 than one machine at the same time.  An instance of DCP-o-matic can
2273 offload some of the time-consuming JPEG2000 encoding to any number of
2274 other machines on a network.  To do this, one &lsquo;master&rsquo;
2275 machine runs DCP-o-matic, and the &lsquo;server&rsquo; machines run
2276 a small program called <code>dcpomatic_server</code>.
2277 </para>
2278
2279 <para>
2280 The master and server machines do not need to be the same type, so you
2281 can mix Windows PCs, Macs and Linux machines as you wish.
2282 </para>
2283
2284
2285 <!-- ============================================================== -->
2286 <section>
2287 <title>Running the servers</title>
2288
2289 <para>
2290 There are two options for the encoding server;
2291 <code>dcpomatic_server_cli</code>, which runs on the command line, and
2292 <code>dcpomatic_server</code>, which has a simple GUI.  The command line
2293 version is well-suited to headless servers, especially on Linux, and
2294 the GUI version works best on Windows where it will put an icon in the
2295 system tray.
2296 </para>
2297
2298 <para>
2299 To run the command line version, simply enter:
2300 </para>
2301
2302 <programlisting>
2303 dcpomatic2_server_cli
2304 </programlisting>
2305
2306 <para>
2307 at a command prompt.  If you are running the program on a machine with
2308 a multi-core processor, you can run multiple parallel encoding threads
2309 by doing something like:
2310 </para>
2311
2312 <programlisting>
2313 dcpomatic2_server_cli -t 4
2314 </programlisting>
2315
2316 <para>
2317 to run 4 threads in parallel.
2318 </para>
2319
2320 <para>
2321 To run the GUI version on windows, run the &lsquo;DCP-o-matic encode
2322 server&rsquo; from the start menu.  An icon will appear in the system
2323 tray; right-click it to open a menu from whence you can quit the
2324 server or open a window to show its status.
2325 </para>
2326
2327 <para>If you would rather not bother installing DCP-o-matic on your
2328 server computers, the other option is to use the live-CD
2329 image that you can download from the <ulink
2330 url="http://dcpomatic.com/">DCP-o-matic web site.</ulink></para>
2331
2332 <para>Either burn the image to CD, or write it to a USB stick (using
2333 something like <ulink
2334 url="http://unetbootin.sourceforge.net/">unetbootin</ulink>).  Boot a
2335 PC from the CD or USB stick and it becomes a DCP-o-matic server
2336 without touching your standard operating system install.
2337 </para>
2338
2339 </section>
2340
2341 <!-- ============================================================== -->
2342 <section>
2343 <title>Setting up DCP-o-matic</title>
2344
2345 <para>
2346 DCP-o-matic periodically looks on the local network for servers.  Any
2347 that it finds are given work to do during encodes.  Selecting
2348 <guilabel>Encoding Servers</guilabel> from the
2349 <guilabel>Tools</guilabel> menu brings up a window which shows that
2350 servers that DCP-o-matic has found.
2351 </para>
2352
2353 </section>
2354
2355 <!-- ============================================================== -->
2356 <section>
2357 <title>Some notes about encode servers</title>
2358
2359 <para>
2360 DCP-o-matic does not mind if servers come and go; if a server
2361 disappears, DCP-o-matic will stop sending work to it, and will check
2362 it every minute or so in case it has come back online.
2363 </para>
2364
2365 <para>
2366 You will probably find that using a 1Gb/s or faster network will
2367 provide a significant speed-up compared to a 100Mb/s network.
2368 </para>
2369
2370 </section>
2371
2372 </chapter>
2373
2374 <chapter xml:id="ch-files" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
2375 <title>Generated files</title>
2376
2377 <para>
2378 DCP-o-matic generates a number of files as it makes a DCP.  <xref
2379 linkend="fig-file-structure"/> shows the files that might be generated
2380 after you have created a DCP for a film called &lsquo;DCP Test&rsquo;.
2381 </para>
2382
2383 <figure id="fig-file-structure">
2384   <title>Creating a new film</title>
2385   <mediaobject>
2386     <imageobject>
2387       <imagedata fileref="diagrams/file-structure&dia;"/>
2388     </imageobject>
2389   </mediaobject>
2390 </figure>
2391
2392 <para>
2393 The <code>DCP Test</code> folder is the one that you specify when you
2394 select the <guilabel>New Film</guilabel> option from DCP-o-matic's
2395 menu.  Everything is stored inside this folder.
2396 </para>
2397
2398 <para>
2399 DCP-o-matic generates some working files as it goes along.  These are as follows:
2400 <itemizedlist>
2401
2402 <listitem><code>log</code> is a list of notes that DCP-o-matic makes as it goes
2403 along.  This can be useful for debugging purposes if something goes
2404 wrong.</listitem>
2405
2406 <listitem><code>metadata</code> stores the settings that you have made
2407 for this film: things like cropping, output format and so on.</listitem>
2408
2409 <listitem><code>video</code> is where DCP-o-matic writes the DCP's
2410 video data as it encodes it.</listitem>
2411
2412 <listitem><code>analysis</code> is used to keep the results of audio analysis runs.</listitem>
2413
2414 <listitem><code>info</code> contains details of each video frame that
2415 DCP-o-matic has written so far.  This is used when an encoding
2416 operation is interrupted and DCP-o-matic must resume it.</listitem>
2417 </itemizedlist>
2418 </para>
2419
2420 <para>
2421 Following this is the DCP itself:
2422 <code>DCP-TEST_EN-XX_UK-U_51_2K_CSY_20130218_CSY_OV</code>.  This
2423 contains some small XML files, which describe the DCP, and two large
2424 MXF files, which contain the DCP's audio and video data.  This folder
2425 (<code>DCP-TEST_EN-XX_...</code>) is what you should ingest, or pass
2426 to the cinema which is showing your DCP.
2427 </para>
2428
2429 </chapter>
2430
2431 <chapter>
2432 <title>Loose ends</title>
2433
2434 <para>
2435 This chapter collects a few notes on bits of DCP-o-matic that do not fit elsewhere in the manual.
2436 </para>
2437
2438
2439 <!-- ============================================================== -->
2440 <section>
2441 <title>Resuming encodes</title>
2442
2443 <para>
2444 If you cancel a DCP encoding run half-way through, or your computer
2445 crashes... fear not.  DCP-o-matic takes care to ensure that, in most
2446 cases, it can resume encoding from where it left off.  When you
2447 re-start a DCP creation, using the same settings are a previous run,
2448 DCP-o-matic will first check that the existing picture frames are
2449 correct, and then resume from where it left off.  The checking of
2450 existing frames does take some time, but it is much faster than
2451 running a full re-encode.
2452 </para>
2453
2454 <para>
2455 This resumption is achieved by writing a digest (hash) to disk for
2456 every image frame that is written.  On resumption, the existing MXF
2457 file for image data is read and its contents checked against the
2458 hashes.
2459 </para>
2460
2461 </section>
2462
2463 </chapter>
2464
2465 </book>