Some manual updates.
[dcpomatic.git] / doc / manual / dcpomatic.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE book [
3 <!ENTITY % sgml.features "IGNORE">
4 <!ENTITY % xml.features "INCLUDE">
5 <!ENTITY % dbcent PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.5//EN"
6    "/usr/share/xml/docbook/schema/dtd/4.5/dbcentx.mod">
7 %dbcent;
8 <!ENTITY % extensions SYSTEM "extensions.ent">
9 %extensions;
10 ]>
11 <book xmlns="http://docbook.org/ns/docbook" xmlns:mml="http://www.w3.org/1998/Math/MathML" version="5.0" xml:lang="en">
12
13 <!-- 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.  Note
346 that there will be no sound, 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="30" 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>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 </itemizedlist>
523
524 <para>
525 To add one or more movie, sound, still-image or subtitle files, select
526 <guilabel>Add file(s)...</guilabel> and choose them from the selector.
527 </para>
528
529 <para>
530 To add a directory (folder) of images, choose <guilabel>Add
531 folder...</guilabel> and choose the directory from the selector.
532 DCP-o-matic will open a small dialogue box where you can enter the
533 frame rate that your image sequence should be run at.
534 </para>
535
536 <para>
537 You can remove a piece of content by clicking on its name and then
538 clicking the <guilabel>Remove</guilabel> button.
539 </para>
540
541 </section>
542
543
544 <!-- ============================================================== -->
545 <section>
546 <title>Content Properties</title>
547
548 <para>
549 Below the content list are the controls to set content properties.  To
550 adjust the properties for a piece of content, click its name in the
551 content list.  The content property controls will then become active
552 for that piece of content.
553 </para>
554
555 <para>
556 If you want to change the properties for multiple pieces of content at
557 the same time, select the content in the list by clicking the first
558 piece then clicking the other pieces with <keycap>shift</keycap> key
559 held down.  Note that not all settings can be changed in this way.
560 </para>
561
562 <para>
563 The content properties are split up into four sections:
564 <guilabel>Video</guilabel>, <guilabel>Audio</guilabel>,
565 <guilabel>Subtitles</guilabel> and <guilabel>Timing</guilabel>.  Not
566 all of these sections will be active for all content types.  The controls
567 in each section are described below.
568 </para>
569
570 </section>
571
572
573 <!-- ============================================================== -->
574 <section>
575 <title>Video</title>
576
577 <para>
578 The <guilabel>Video</guilabel> tab controls properties of the image, as shown in <xref linkend="fig-video-tab"/>.
579 </para>
580
581 <figure id="fig-video-tab"> 
582   <title>Video settings tab</title>
583   <mediaobject>
584     <imageobject> 
585        <imagedata fileref="screenshots/video-tab&scs;"/>
586     </imageobject> 
587   </mediaobject>
588 </figure>
589
590
591 <!-- ============================================================== -->
592 <section>
593 <title>Image type</title>
594
595 <para>
596 The first option on this tab is the &lsquo;type&rsquo; of the video.
597 This specifies how DCP-o-matic should interpret the video's image.
598 <guilabel>2D</guilabel> is the default; this just takes the video
599 image as a standard 2D frame.  The <guilabel>3D
600 left/right</guilabel> option tells DCP-o-matic to interpret the frame as a
601 left-right pair, as shown in <xref linkend="fig-3d-left-right"/>.
602 </para>
603
604 <figure id="fig-3d-left-right"> 
605   <title>3D left/right image type</title>
606   <mediaobject>
607     <imageobject> 
608        <imagedata scale="100" fileref="diagrams/3d-left-right&dia;"/>
609     </imageobject> 
610   </mediaobject>
611 </figure>
612
613 <para>
614 Alternatively the <guilabel>3D top/bottom</guilabel> option tells
615 DCP-o-matic to see the frame as a top-bottom pair, as shown in <xref
616 linkend="fig-3d-top-bottom"/>.
617 </para>
618
619 <figure id="fig-3d-top-bottom"> 
620   <title>3D top/bottom image type</title>
621   <mediaobject>
622     <imageobject> 
623        <imagedata scale="100" fileref="diagrams/3d-top-bottom&dia;"/>
624     </imageobject> 
625   </mediaobject>
626 </figure>
627
628 <para>
629 Another option is <guilabel>3D alternate</guilabel> which takes the
630 first frame of the content as for the left eye, the second for the
631 right eye, the third for the left, and so on.  Finally, you can
632 specify <guilabel>3D left only</guilabel> or <guilabel>3D right
633 only</guilabel> if this content contains only the the left or right
634 eye images.  This is useful when you have the left and right eye image
635 sets in different files; you can specify one content as <guilabel>3D
636 left only</guilabel> and another as <guilabel>3D right only</guilabel>
637 and DCP-o-matic will pick up the appropriate frames from each.
638 </para>
639
640 </section>
641
642
643 <!-- ============================================================== -->
644 <section>
645 <title>Filtering</title>
646
647 <para>
648 The &lsquo;filters&rsquo; settings allow you to apply various video
649 filters to the image.  These may be useful to try to improve
650 poor-quality sources like DVDs.  You can set up the filters by clicking the
651 <guilabel>Edit</guilabel> button next to the filters entry in the
652 setup area of the DCP-o-matic window; this opens the filters selector
653 as shown in <xref linkend="fig-filters"/>.
654 </para>
655
656 <figure id="fig-filters"> 
657   <title>Filters selector</title> 
658   <mediaobject>
659     <imageobject> 
660       <imagedata fileref="screenshots/filters&scs;"/>
661     </imageobject> 
662   </mediaobject>
663 </figure>
664
665 <para>
666 After changing the filters setup, you will need to regenerate the DCP
667 to see the effect on the cinema screen.  The preview in DCP-o-matic
668 will update itself whenever filters are changed, though of course this
669 image is much smaller and of lower resolution than a projected image!
670 </para>
671 </section>
672
673
674
675 <!-- ============================================================== -->
676 <section>
677 <title>Colour conversion</title>
678
679 <para>
680 The <guilabel>Colour conversion</guilabel> setting specifies what
681 colour transforms and gamma correction DCP-o-matic will use when
682 converting the selected content into the XYZ colourspace for the DCP.
683 </para>
684
685 <para>
686 The easiest way to select the required conversion is to choose one of
687 DCP-o-matic's presets.  DCP-o-matic knows how to convert from four
688 common colourspaces: sRGB, Rec. 601, Rec. 709 and P3.  If you do not
689 know which preset you should use, refer to the suggestions in <xref
690 linkend="tab-colour-conversion"/>.
691 </para>
692
693 <table id="tab-colour-conversion">
694 <title>Suggested colour conversion settings</title>
695 <tgroup cols='2' align='left' colsep='1' rowsep='1'>
696 <colspec colwidth='1*'/>
697 <colspec colwidth='5*'/>
698 <tbody>
699 <row>
700 <entry>sRGB</entry><entry>Still images in RGB, e.g. photographs</entry>.
701 </row>
702 <row>
703 <entry>Rec. 601</entry><entry>Standard-definition content (lower than about 1000 pixels across) including DVD rips.</entry>
704 </row>
705 <row>
706 <entry>Rec. 709</entry><entry>High-definition content including Blu-Ray rips.</entry>
707 </row>
708 <row>
709 <entry>P3</entry><entry>Content explicitly graded to P3.</entry>
710 </row>
711 </tbody>
712 </tgroup>
713 </table>
714
715 <para>
716 For other required colour conversions, and if you know what you are
717 doing, you can choose <guilabel>Custom</guilabel> which will open the full
718 colour conversion editing dialogue box:
719 </para>
720
721 <figure id="fig-colour-conversion">
722   <title>Dialogue box for custom colour conversion</title> 
723   <mediaobject>
724     <imageobject> 
725       <imagedata fileref="screenshots/colour-conversion&scs;"/>
726     </imageobject> 
727   </mediaobject>
728 </figure>
729
730 <para>
731 Alternatively, choose <guilabel>None</guilabel> if your source files
732 are already in the XYZ colour space and require no conversion.
733 </para>
734
735 <para>
736 DCP-o-matic's colour conversion processes are discussed in much more
737 detail in a separate document <ulink
738 url="http://dcpomatic.com/manual/colour.pdf">colour.pdf</ulink>.
739 </para>
740
741 </section>
742
743 <!-- ============================================================== -->
744 <section>
745 <title>Other settings</title>
746
747 <para>
748 The <guilabel>crop</guilabel> settings can be used to crop your content,
749 which can be used to remove black borders from round the edges of DVD
750 images, for example.  The specified number of pixels will be trimmed
751 from each edge, and the content image in the right of the window will
752 be updated to show the effect of the crop.
753 </para>
754
755 <para>
756 The <guilabel>fade in</guilabel> and <guilabel>fade out</guilabel>
757 settings can be used to apply linear fades into and out of a piece of
758 content.  Specify the time for each, clicking <guilabel>Set</guilabel>
759 after making any changes.
760 </para>
761
762 <para>
763 The <guilabel>Scale to</guilabel> option governs the shape that
764 DCP-o-matic will scale the content's image into.  Select the aspect
765 ratio that your content should be presented in.
766 </para>
767
768 </section>
769
770 <!-- ============================================================== -->
771 <section>
772 <title>Video description</title>
773
774 <para>
775 At the bottom of the video tab is a short description of what will
776 happen to your video with the current settings.  In the example of
777 <xref linkend="fig-video-tab"/>, DCP-o-matic is telling you that the
778 video file is 1920x1080 pixels and it has square pixels (a pixel
779 aspect ratio of 1.00) hence its display aspect ratio is 1.78:1.  Since
780 the controls specify &lsquo;16.9&rsquo; for the ratio, DCP-o-matic
781 does not scale the image but pads it to the DCP's container ratio of
782 1.85:1.  For a 2K DCP this is 1998x1080 pixels.
783 </para>
784
785 <para>
786 This description also gives the frame rate of the content and what
787 will happen to it when it is played at the DCP's frame rate.
788 <!-- XXX: link to more detailed discussion of this -->
789 </para>
790
791 </section>
792
793 </section>
794
795
796 <!-- ============================================================== -->
797 <section>
798 <title>Audio</title>
799
800 <para>
801 The <guilabel>Audio</guilabel> tab controls properties of the image, as shown in <xref linkend="fig-audio-tab"/>.
802 </para>
803
804 <figure id="fig-audio-tab"> 
805   <title>Audio settings tab</title>
806   <mediaobject>
807     <imageobject> 
808        <imagedata fileref="screenshots/audio-tab&scs;"/>
809     </imageobject> 
810   </mediaobject>
811 </figure>
812
813
814 <!-- ============================================================== -->
815 <section>
816 <title>The audio map</title>
817
818 <para>
819 The section at the bottom of the audio tab is the &lsquo;audio
820 map&rsquo;.  This governs how sound from the content will be arranged
821 in the DCP.
822 </para>
823
824 <para>
825 Down the left-hand side of the map is the list of audio channels in
826 the currently-selected piece of content.  Along the top is each
827 channel in the DCP.  A green box means that the corresponding
828 content channel will be copied into the corresponding DCP channel.
829 </para>
830
831 <para>
832 When content channels are copied into DCP channels they can be done
833 with variable gain.  If, for example, you want to copy a channel
834 as-is, you can set a gain of 0dB.  Alternatively, if you want to mix
835 two channels into one, you may want to use a gain of -6dB on each one
836 to prevent clipping when the two channels are added.
837 </para>
838
839 <para>
840 The green boxes of the audio mapping view tell you (very roughly) how
841 much gain is applied to each channel.  A full-height box means 0dB
842 (i.e. unity) gain.  Any less height indicates lower gain.
843 </para>
844
845 <para>
846 To map one channel to another with 0dB gain, click in the empty box
847 and it will turn green to reflect the mapping.  A second click will
848 turn the mapping back off.  To set some other gain, right-click on the
849 box to open the gain menu.  This allows you to set
850 <guilabel>Off</guilabel> (no mapping or negative infinity gain),
851 <guilabel>Full</guilabel> (0dB gain), -6dB gain or
852 <guilabel>Edit</guilabel> which allows you to set the required gain
853 precisely.
854 </para>
855
856 <para>
857 Consider, for example, the case in <xref linkend="fig-audio-map-eg1"/>.
858 </para>
859
860 <figure id="fig-audio-map-eg1">
861   <title>Audio map example 1</title>
862   <mediaobject>
863     <imageobject> 
864        <imagedata fileref="screenshots/audio-map-eg1&scs;"/>
865     </imageobject> 
866   </mediaobject>
867 </figure>
868
869 <para>
870 Here, we have two channels in the source which are mapped to left and
871 right, respectively, in the DCP.  The full green boxes show that the
872 mapping is at unity gain (0dB) in each case.  Imagine that we modify
873 the settings to those shown in <xref linkend="fig-audio-map-eg2"/>
874 </para>
875
876 <figure id="fig-audio-map-eg2">
877   <title>Audio map example 2</title>
878   <mediaobject>
879     <imageobject> 
880        <imagedata fileref="screenshots/audio-map-eg2&scs;"/>
881     </imageobject> 
882   </mediaobject>
883 </figure>
884
885 <para>
886 We now have the content's streams mapped to left and right and also
887 mixed together and placed in the DCP's centre channel.  The smaller
888 green boxes on the centre mappings show that those channels are added
889 with some non-unity gain; you can see by hovering the mouse pointer
890 over those boxes that the gain for content channels 1 and 2 is -6dB
891 when being sent to the centre channel and 0dB when being sent to left
892 and right.
893 </para>
894
895 <figure id="fig-audio-map-eg3">
896   <title>Audio map example 3</title>
897   <mediaobject>
898     <imageobject> 
899        <imagedata fileref="screenshots/audio-map-eg3&scs;"/>
900     </imageobject> 
901   </mediaobject>
902 </figure>
903
904 <para>
905 As a final example, the map in <xref linkend="fig-audio-map-eg3"/>
906 shows the mapping of a 5.1 source into a 5.1 DCP.
907 </para>
908
909 </section>
910
911
912 <!-- ============================================================== -->
913 <section>
914 <title>Other controls</title>
915
916 <para>
917 &lsquo;Audio Gain&rsquo; is used to alter the volume of the
918 soundtrack.  The specified gain (in dB) will be applied to each sound
919 channel of your content before it is written to the DCP.
920 </para>
921
922 <para>
923 If you use a sound processor that DCP-o-matic knows about, it can help
924 you calculate changes in gain that you should apply.  Say, for
925 example, that you make a test DCP and find that you have to run it at
926 volume 5 instead of volume 7 to get a good sound level in the screen.
927 If this is the case, click the <guilabel>Calculate...</guilabel>
928 button next to the audio gain entry, and the dialogue box in <xref
929 linkend="fig-calculate-audio-gain"/> will open.
930 </para>
931
932 <figure id="fig-calculate-audio-gain"> 
933   <title>Calculating audio gain</title>
934   <mediaobject>
935     <imageobject> 
936       <imagedata fileref="screenshots/calculate-audio-gain&scs;"/>
937     </imageobject> 
938   </mediaobject>
939 </figure>
940
941 <para>
942 For our example, put 5 in the first box and 7 in the second and click
943 <guilabel>OK</guilabel>.  DCP-o-matic will calculate the audio gain
944 that it should apply to make this happen.  Then you can re-make the
945 DCP (this will be reasonably fast, as the video data will already have
946 been done) and it should play back at the correct volume with 7 on
947 your sound-rack fader.
948 </para>
949
950 <para>
951 Current versions of DCP-o-matic only know about the Dolby CP650 and
952 CP750.  If you use a different sound processor, and know the gain
953 curve of its volume control, <ulink url="mailto:carl@dcpomatic.com">get in
954 touch</ulink>.
955 </para>
956
957 <para>
958 <guilabel>Audio Delay</guilabel> is used to adjust the synchronisation
959 between audio and video.  A positive delay will move the audio later
960 with respect to the video, and a negative delay will move it earlier.
961 </para>
962
963 <para>
964 The <guilabel>Audio Stream</guilabel> option allows you to select the
965 audio stream to use, if the content contains more than one.  There
966 might be different soundtrack languages, for example.
967 </para>
968
969 </section>
970 </section>
971
972
973 <!-- ============================================================== -->
974 <section>
975 <title>Subtitles</title>
976
977 <para>
978 The subtitles tab contains settings related to subtitles in your
979 content, as shown in <xref linkend="fig-subtitles-tab"/>.
980 </para>
981
982 <figure id="fig-subtitles-tab"> 
983   <title>Subtitle settings tab</title>
984   <mediaobject>
985     <imageobject> 
986        <imagedata fileref="screenshots/subtitles-tab&scs;"/>
987     </imageobject> 
988   </mediaobject>
989 </figure>
990
991 <para>
992 DCP-o-matic will extract subtitles from the content, if present, and
993 they can be &lsquo;burnt into&rsquo; the DCP (that is, they are
994 included in the image and not overlaid by the projector).
995 </para>
996
997 <para>
998 Select the <guilabel>With Subtitles</guilabel> check-box to enable
999 subtitles.
1000 </para>
1001
1002 <para>
1003 The <guilabel>X Offset</guilabel> and <guilabel>Y Offset</guilabel>
1004 controls move the subtitles around within the image.  The offsets are
1005 expressed as a percentage of the video frame size; 100% X offset is
1006 the entire width of the frame, and 100% Y offset is the entire height.
1007 Hence, to move the subtitles down by half the frame height you would
1008 use a Y offset of 50%.
1009 </para>
1010
1011 <para>
1012 The <guilabel>X Scale</guilabel> and <guilabel>Y Scale</guilabel>
1013 controls scale the subtitles.  Scale values of 1 make the subtitles
1014 the same size (relative to the size of the image) as they are on the
1015 original.  Values lower than 1 make them smaller, and values higher
1016 make them larger.  You can stretch the subtitles in either direction
1017 by specifying different values for X and Y scale.  Subtitles from DVD
1018 and Blu Ray sources are frequently larger (relative to the video
1019 frame) than those typically used for DCP, so it is often useful to
1020 scale such subtitles down using these controls.
1021 </para>
1022
1023 <para>
1024 The <guilabel>Stream</guilabel> control changes the subtitle stream
1025 that is used when the content has more than one.
1026 </para>
1027
1028 </section>
1029
1030
1031 <!-- ============================================================== -->
1032 <section>
1033 <title>Timing</title>
1034
1035 <para>
1036 The timing tab contains settings related to the timing of your
1037 content, as shown in <xref linkend="fig-timing-tab-detail"/>.
1038 </para>
1039
1040 <figure id="fig-timing-tab-detail"> 
1041   <title>Timing settings tab</title>
1042   <mediaobject>
1043     <imageobject> 
1044        <imagedata fileref="screenshots/timing-tab&scs;"/>
1045     </imageobject> 
1046   </mediaobject>
1047 </figure>
1048
1049 <para>
1050 Most of the timing tab's entries are <emphasis>time-codes</emphasis>.
1051 These are expressed as four numbers, as shown in <xref
1052 linkend="fig-timecode"/>.
1053 </para>
1054
1055 <figure id="fig-timecode"> 
1056   <title>Timecode</title>
1057   <mediaobject>
1058     <imageobject> 
1059        <imagedata fileref="diagrams/timecode&dia;"/>
1060     </imageobject> 
1061   </mediaobject>
1062 </figure>
1063
1064 <para>
1065 <guilabel>Position</guilabel> is the time at which this piece of
1066 content should start within the DCP.  In most cases, this will be
1067 <code>0:0:0:0</code> to make the content start at the beginning of the
1068 DCP.
1069 </para>
1070
1071 <para>
1072 <guilabel>Full length</guilabel> is the length of the piece of
1073 content.  This can only be set for still-image content: for video or
1074 sound content, it is fixed by the nature of the content file.  If
1075 still-image content is being used you can set the length for which it
1076 should be displayed using this control.
1077 </para>
1078
1079 <para>
1080 <guilabel>Trim from start</guilabel> specifies the amount that should be trimmed from the start of the content.
1081 </para>
1082
1083 <para>
1084 <guilabel>Trim from end</guilabel> specifies the amount that should be trimmed from the end of the content.
1085 </para>
1086
1087 <para>
1088 <guilabel>Play length</guilabel> indicates how long this piece of
1089 content will be once the trims have been applied.  This will be equal
1090 to the full length minus <guilabel>trim-from-start</guilabel> and minus <guilabel>trim-from-end</guilabel>.
1091 </para>
1092
1093 <para>
1094 <guilabel>Video frame rate</guilabel> specifies the frame rate for still-image content.
1095 </para>
1096
1097 <para>
1098 Each timecode control has a <guilabel>Set</guilabel> which you should
1099 click when you have entered a new value for a timecode.  The
1100 <guilabel>Set</guilabel> button will make DCP-o-matic take account of
1101 any changes to the corresponding timecode.
1102 </para>
1103
1104 </section>
1105
1106
1107 <!-- ============================================================== -->
1108 <section>
1109 <title>Video processing pipeline</title>
1110
1111 <para>
1112 This section gives a little more detail about how DCP-o-matic process
1113 video as it takes it from a source and puts it into a DCP.
1114 </para>
1115
1116 <para>
1117 Consider, as a somewhat over-the-top example, that we have a 720 x 576
1118 image which is letterboxed with 36 black pixels each at the top and
1119 bottom, and the video content within the letterbox should be presented
1120 in the DCP at ratio of 2.39:1 within a 1.85:1 frame (such as might
1121 happen with a trailer).  The source image is shown in <xref
1122 linkend="fig-pipeline1"/>.
1123 </para>
1124
1125 <figure id="fig-pipeline1"> 
1126   <title>Example image to demonstrate video processing</title>
1127   <mediaobject>
1128     <imageobject> 
1129        <imagedata scale="100" fileref="diagrams/pipeline1&dia;"/>
1130     </imageobject> 
1131   </mediaobject>
1132 </figure>
1133
1134 <para>
1135 DCP-o-matic runs through the following steps when preparing an image for a DCP:
1136 </para>
1137
1138 <itemizedlist>
1139 <listitem>Crop</listitem>
1140 <listitem>Scale</listitem>
1141 <listitem>Place in container</listitem>
1142 </itemizedlist>
1143
1144 <para>
1145 First, some amount of the image can be cropped.  This is almost always
1146 used to remove black borders (letterboxing and/or pillarboxing) around
1147 images.
1148 </para>
1149
1150 <para>
1151 In our example image, we would use 36 pixels of crop from the top and
1152 bottom.  This would give the new image shown in <xref
1153 linkend="fig-pipeline2"/>.
1154 </para>
1155
1156 <figure id="fig-pipeline2"> 
1157   <title>Example image after cropping</title>
1158   <mediaobject>
1159     <imageobject> 
1160        <imagedata scale="100" fileref="diagrams/pipeline2&dia;"/>
1161     </imageobject> 
1162   </mediaobject>
1163 </figure>
1164
1165 <para>
1166 The next step is to scale the image.  Since this content should be
1167 presented in a 2.39:1 aspect ratio inside a 1.85:1 DCP we would select
1168 <guilabel>Scope</guilabel> from the <guilabel>Scale to</guilabel>
1169 option in the <guilabel>Video</guilabel> tab and
1170 <guilabel>Flat</guilabel> from the <guilabel>Container</guilabel>
1171 option in the <guilabel>DCP</guilabel> tab.
1172 </para>
1173
1174 <para>The <guilabel>Scale to</guilabel> option should always be set to
1175 the aspect ratio at which the content should be seen.  The
1176 <guilabel>Container</guilabel> option should be set to the preset that
1177 you want to use on the projector.  Of course, these two settings will
1178 often be the same.
1179 </para>
1180
1181 <para>
1182 Given the scaling and container information, DCP-o-matic will look at
1183 the DCP's container size, and then scale the source image up until one
1184 or both of its dimensions (width, height or both) fits the size of the
1185 container, all the while preserving the desired aspect ratio.
1186 </para>
1187
1188 <para>
1189 In our example here, the DCP's container is specified as 1.85:1 (so
1190 that the DCP will play back correctly using the projector's
1191 &lsquo;Flat&rsquo; preset).  At 2K, 1.85:1 is 1998 pixels by 1080.
1192 Scaling the source up whilst preserving its 1.85:1 aspect ratio will
1193 result in the image hitting the sides of the container first, at a
1194 size of 1998 x 836.  This gives us a new version of the image as shown
1195 in <xref linkend="fig-pipeline3"/>.
1196 </para>
1197
1198 <figure id="fig-pipeline3"> 
1199   <title>Example image after cropping and scaling</title>
1200   <mediaobject>
1201     <imageobject> 
1202        <imagedata scale="100" fileref="diagrams/pipeline3&dia;"/>
1203     </imageobject> 
1204   </mediaobject>
1205 </figure>
1206
1207 <para>
1208 The final step is to place the image into the DCP.  In this case,
1209 since we have a 2.39:1 image that should be presented as a 1.85:1 DCP,
1210 we have set the <guilabel>container</guilabel> in the
1211 <guilabel>DCP</guilabel> tab to be Scope.  Since the content has been
1212 scaled to 1998 x 836, and a Flat container is 1998 x 1080, there will
1213 be some black bars at the top and bottom of the image.  DCP-o-matic
1214 shares out this black equally, as shown in <xref
1215 linkend="fig-pipeline3"/>.
1216 </para>
1217
1218 <figure id="fig-pipeline4"> 
1219   <title>Example image in the DCP</title>
1220   <mediaobject>
1221     <imageobject> 
1222        <imagedata scale="100" fileref="diagrams/pipeline4&dia;"/>
1223     </imageobject> 
1224   </mediaobject>
1225 </figure>
1226
1227 </section>
1228
1229 </chapter>
1230
1231 <chapter xml:id="ch-dcp" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
1232 <title>DCP settings</title>
1233
1234 <para>
1235 This chapter describes the settings that apply to the whole DCP.  The
1236 controls for these settings are in the <guilabel>DCP</guilabel> tab of
1237 the main window, as shown in <xref linkend="fig-dcp-tab"/>.
1238 </para>
1239
1240 <figure id="fig-dcp-tab"> 
1241   <title>DCP settings tab</title>
1242   <mediaobject>
1243     <imageobject> 
1244        <imagedata fileref="screenshots/dcp-tab&scs;"/>
1245     </imageobject> 
1246   </mediaobject>
1247 </figure>
1248
1249 <para>
1250 The first thing here is the name.  This is generally set to the title
1251 of the film that is being encoded.  If <guilabel>Use ISDCF
1252 name</guilabel> is not ticked, the name that you specify will be used
1253 as-is for the name of the DCP.  If <guilabel>Use ISDCF name</guilabel>
1254 is ticked, the name that you enter will be used as part of a
1255 ISDCF-compliant name.  
1256 </para>
1257
1258 <para>
1259 Underneath the name field is a preview of the name that the DCP will
1260 get.  To use a ISDCF-compliant name, tick the <guilabel>Use ISDCF
1261 name</guilabel> check-box.  The ISDCF name will be composed using details
1262 of your content's soundtrack, the current date and other things that
1263 can be specified in the ISDCF name details dialogue box, which you can
1264 open by clicking on the <guilabel>Details</guilabel> button.
1265 </para>
1266
1267 <para>
1268 If you want to take the ISDCF-compliant name that DCP-o-matic
1269 generates and modify it, click <guilabel>Copy as name</guilabel> and
1270 the ISDCF name will be copied into the <guilabel>Name</guilabel> box.
1271 You can then edit it as you wish.  The DCP name should not matter (in
1272 that it should not affect how the DCP ingests or plays) but
1273 projectionists will appreciate it if you use the standard naming
1274 scheme as it makes it easier to identify details of the content.
1275 </para>
1276
1277 <para>
1278 If the DCP name is long, it may not all be visible.  You can see the
1279 full name by hovering the mouse pointer over the partial name.
1280 </para>
1281
1282 <para>
1283 The <guilabel>Container</guilabel> option sets the ratio of the image
1284 in the DCP.  If this ratio is different to the ratio used for any
1285 content, DCP-o-matic will pad the content with black.  In simple cases
1286 this should be set to the same ratio as that for the the primary piece
1287 of video content.  Alternatively, you might want to pillarbox a small
1288 format into a Flat container: in this case, select the small format
1289 for the content's ratio and &lsquo;Flat&rsquo; for the DCP.
1290 </para>
1291
1292 <para>
1293 Next up is the content type.  This can be
1294 &lsquo;feature&rsquo;, &lsquo;trailer&rsquo; or whatever; select the
1295 required type from the drop-down list.
1296 </para>
1297
1298 <para>
1299 The <guilabel>Frame Rate</guilabel> control sets the frame rate of
1300 your DCP.  This can be a little tricky to get right.  Ideally, you
1301 want it to be the same as the video content that you are using.  If it
1302 is not the same, DCP-o-matic must resort to some tricks to alter your
1303 content to fit the specified frame rate.  Frame rates are discussed in
1304 more detail in <xref linkend="ch-frame-rates"/>.
1305 </para>
1306
1307 <para>
1308 The <guilabel>Use best</guilabel> button sets the DCP video frame rate
1309 to what DCP-o-matic thinks is the best given the content that you have
1310 added.
1311 </para>
1312
1313 <para>
1314 The <guilabel>Signed</guilabel> check-box sets whether or not the DCP
1315 is signed.  This is rarely important; if in doubt, tick it.
1316 </para>
1317
1318 <para>
1319 The <guilabel>Encrypted</guilabel> check-box will set whether the DCP
1320 should be encrypted or not.  If this is ticked, the DCP will require a
1321 KDM to play back.  Encryption is discussed in <xref
1322 linkend="ch-encryption"/>.
1323 </para>
1324
1325 <para>
1326 If you use encryption DCP-o-matic will generate a random encryption
1327 key for you.  To specify your own key, click the
1328 <guilabel>Edit..</guilabel> button next to the key.
1329 </para>
1330
1331 <para>
1332 The <guilabel>Audio Channels</guilabel> control sets the number of
1333 audio channels that the DCP will have.  If the DCP has any channels
1334 for which there is no content audio they will be replaced by silence.
1335 You can only set an even number of channels here, since that is
1336 required by the DCI standard.  If you want an odd number of channels,
1337 set the DCP channel count to one greater than you need and the
1338 unused channel will be filled with silence.
1339 </para>
1340
1341 <para>
1342 The <guilabel>3D</guilabel> button will set your DCP to 3D mode if it
1343 is checked.  A 3D DCP will then be created, and any 2D content will be
1344 made 3D compatible by repeating the same frame for both left and right
1345 eyes.  A 3D DCP can be played back on many 3D systems (e.g. Dolby 3D,
1346 Real-D etc.) but not on a 2D system.
1347 </para>
1348
1349 <para>
1350 The <guilabel>Resolution</guilabel> tab allows you to choose the
1351 resolution for your DCP.  Use 2K unless you have content that is of
1352 high enough resolution to be worth presenting in 4K.
1353 </para>
1354
1355 <para>
1356 The <guilabel>JPEG2000 bandwidth</guilabel>; setting changes how big
1357 the final image files used within the DCP will be.  Larger numbers
1358 will give better quality, but correspondingly larger DCPs.  The
1359 bandwidth can be between 50 and 250 megabits per second (Mbit/s).
1360 Most commercial DCPs use bit rates between 75 and 125 MBit/s.
1361 </para>
1362
1363 <para>
1364 The <guilabel>Standard</guilabel> option specifies which of the two
1365 DCP standards DCP-o-matic should use.  If in doubt, use SMPTE (the
1366 more modern of the two).
1367 </para>
1368
1369 <para>
1370 Finally, the <guilabel>Scaler</guilabel> is the method that will be used to scale up
1371 your content for the DCP, if required.  Bicubic is a fine choice in
1372 most situations.
1373 </para>
1374
1375 <!-- ============================================================== -->
1376 <section>
1377 <title>Show audio</title>
1378
1379 <para>
1380 The <guilabel>Show Audio</guilabel> button will instruct DCP-o-matic
1381 to examine the audio in your content and plot a graph of its level
1382 over time.  This can be useful for getting a rough idea of how loud
1383 the sound will be in the cinema auditorium.  A typical plot is shown
1384 in <xref linkend="fig-audio-plot"/>
1385 </para>
1386
1387 <figure id="fig-audio-plot"> 
1388   <title>Audio plot</title>
1389   <mediaobject>
1390     <imageobject> 
1391        <imagedata fileref="screenshots/audio-plot&scs;"/>
1392     </imageobject> 
1393   </mediaobject>
1394 </figure>
1395
1396 <para>
1397 The plot gives the audio level (vertical axis, in dB) with time
1398 (horizontal axis).  0dB represents full scale, so if there is anything
1399 near this you are in danger of clipping the projector's audio outputs.
1400 </para>
1401
1402 <para>
1403 There are two plot types: the peak level and the RMS, which can be
1404 shown or hidden using the check-boxes on the right hand side of the
1405 window.
1406 </para>
1407
1408 <para>
1409 The channel check-boxes will show or hide the plot(s) for
1410 the corresponding channels in the DCP.
1411 </para>
1412
1413 <para>
1414 The smoothing slider applies a variable degree of temporal smoothing
1415 to the plots, which can make them easier to read in some cases.
1416 </para>
1417
1418 <para>
1419 Obviously the audio plot is no substitute for listening in an
1420 auditorium, but it can be useful to get levels in the right rough area.
1421 </para>
1422
1423 </section>
1424
1425 </chapter>
1426
1427 <chapter xml:id="ch-encryption" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
1428 <title>Encryption</title>
1429
1430 <para>
1431 It is not required that DCPs be encrypted, but they can be.  This
1432 chapter discusses the basic principles of DCP encryption, and how
1433 DCP-o-matic can create encrypted DCPs and KDMs for them.
1434 </para>
1435
1436
1437 <!-- ============================================================== -->
1438 <section>
1439 <title>Basics</title>
1440
1441 <para>
1442 DCPs can be encrypted.  This means that the picture and sound data are
1443 encoded in such a way that only cinemas &lsquo;approved&rsquo; by the
1444 DCP's creators can read them.  In particular, this means copies of the
1445 DCP can be distributed by insecure means: if an ne'er-do-well called
1446 Mallory obtains a hard drive containing an encrypted DCP, there is no
1447 way that he can play it.  Only those cinemas who receive a correct key
1448 delivery message (KDM) can play the DCP.
1449 </para>
1450
1451
1452 <!-- ============================================================== -->
1453 <section>
1454 <title>How it works (in a nutshell)</title>
1455
1456 <para>
1457 This section attempts to summarise how DCP encryption works.  You can
1458 skip it if you like.  You may need some knowledge of encryption
1459 methods to understand it.
1460 </para>
1461
1462 <para>
1463 We suppose that we are trying to distribute a DCP, to
1464 Alice's cinema, without a troublemaker called Mallory being able to
1465 watch it himself.
1466 </para>
1467
1468 <para>
1469 There are two main families of encryption techniques.  The first,
1470 symmetric-key encryption, allows us to encode some data using some
1471 numeric key.  After encoding, no-one can decode the data unless they
1472 know the key.
1473 </para>
1474
1475 <para>
1476 The first step in a DCP encryption is to encode its data with some key
1477 using symmetric-key encryption.  The encrypted DCP can then be sent
1478 anywhere, safe in the knowledge that even if Mallory got hold of a
1479 copy, he could not decrypt it.
1480 </para>
1481
1482 <para>
1483 Alice, however, needs to know the key so she can play the DCP in her
1484 cinema.  A simple approach might be for us to send Alice the key.
1485 However, if Mallory can intercept the DCP, he might also be able to
1486 intercept our communication of the key to Alice.  Furthermore, if Alice
1487 happened to know Mallory, she could just send him a copy of the key.
1488 </para>
1489
1490 <para>
1491 The clever bit in DCP encryption requires the use of public-key
1492 encryption.  With this technique we can encrypt a block of data using
1493 some &lsquo;public&rsquo; key.  That data can then only be decrypted
1494 using a <emphasis>different</emphasis> &lsquo;private&rsquo; key.  The
1495 private and public keys are related mathematically, but it is
1496 extremely hard (or rather, virtually impossible) to derive the private
1497 key from the public key.
1498 </para>
1499
1500 <para>
1501 Public-key encryption allows us to distribute the DCP's key to Alice
1502 securely.  The manufacturer of Alice's projector generates a public
1503 and private key.  They hide the private key deep inside the bowels of
1504 the projector (inside an integrated circuit) where no-one can read it.
1505 They then make the public key available to anyone who is interested.
1506 </para>
1507
1508 <para>
1509 We take our DCP's symmetric key and encrypt it using the public key of
1510 Alice's projector.  We send the result to Alice over email (using a
1511 format called a Key Delivery Message, or KDM).  Her projector then
1512 decrypts our message using its private key, yielding the magic
1513 symmetric key which can decrypt the DCP.
1514 </para>
1515
1516 <para>
1517 If is fine if Mallory intercepts our email to Alice, since the only
1518 key which can decrypt the message is the private key buried inside
1519 Alice's projector.  The projector manufacturer is very careful that
1520 no-one ever finds out what this key is.  Our DCP is secure: only Alice
1521 can play it back, since only her projector knows the key (even Alice
1522 does not).
1523 </para>
1524
1525 </section>
1526 </section>
1527
1528
1529 <!-- ============================================================== -->
1530 <section>
1531 <title>Encryption using DCP-o-matic</title>
1532
1533 <para>
1534 There are two steps to distributing an encrypted DCP.  First, the
1535 DCP's data must be encrypted, and secondly KDMs must be generated for
1536 those cinemas that are allowed to play the DCP.
1537 </para>
1538
1539 <para>
1540 The first part is simple: ticking the <guilabel>Encrypted</guilabel>
1541 box in the <guilabel>DCP</guilabel> tab of DCP-o-matic will encrypt
1542 the DCP using a random key that DCP-o-matic generates.  The key will
1543 be written to the film's metadata file, which should be kept
1544 secure.
1545 </para>
1546
1547 <para>
1548 A DCP that is generated with the <guilabel>Encrypted</guilabel> box
1549 ticked will not play on any projector as-is (it will be marked as
1550 &lsquo;locked&rsquo;, or whatever the projector manufacturer's term
1551 is).
1552 </para>
1553
1554 <para>
1555 The second part is to generate KDMs for the cinemas that you wish to
1556 allow to play your DCP.  This is done using the <guilabel>Make
1557 KDMs</guilabel> option on the <guilabel>Jobs</guilabel> menu.  This
1558 will open the KDM dialogue box, as shown in <xref linkend="fig-kdm"/>.
1559 </para>
1560
1561 <figure id="fig-kdm">
1562   <title>KDM dialog</title> 
1563   <mediaobject>
1564     <imageobject> 
1565       <imagedata fileref="screenshots/kdm&scs;"/>
1566     </imageobject> 
1567   </mediaobject>
1568 </figure>
1569
1570 <para>
1571 In order to generate KDMs for a particular projector, you need to know
1572 its <emphasis>certificate</emphasis>.  These are usually made
1573 available by the projector manufacturers as text files with a
1574 <code>.pem</code> extension.
1575 </para>
1576
1577 <para>
1578 DCP-o-matic can store these certificates to make life easier.  It
1579 stores details of cinemas and screens within those cinemas.  Each
1580 screen has a certificate for its projector.  DCP-o-matic can generate
1581 KDMs for any screens that it knows about.
1582 </para>
1583
1584 <para>
1585 To add a cinema, click <guilabel>Add Cinema...</guilabel>.  This opens
1586 a dialogue box into which you can enter the cinema's name, and
1587 optionally an email address.  This email address can be used to
1588 get DCP-o-matic to deliver KDMs via email, but it is optional.
1589 </para>
1590
1591 <para>
1592 Once you have added a cinema, select it by clicking on its name, then
1593 click <guilabel>Add Screen...</guilabel>.  The resulting dialogue
1594 allows you to enter a name for the screen and load in its certificate
1595 from a file.  The certificate should be in SHA256 PEM format.
1596 </para>
1597
1598 <para>
1599 Alternatively, certificates for projection systems made by some
1600 manufacturers can be downloaded from databases provided by the
1601 manufacturer.  Currently this is supported for Doremi and Dolby
1602 equipment.  If you are targeting a screen with equipment by one of
1603 these manufacturers you can select Doremi or Dolby from the
1604 <guilabel>Server manufacturer</guilabel> selection and then click
1605 <guilabel>Download</guilabel>.  In the next dialogue box, enter
1606 details of the screen and click <guilabel>Download</guilabel> and, all
1607 being well, the certificate will be fetched.
1608 </para>
1609
1610 <para>
1611 Using the download system you will need to know the serial number of
1612 the media server in use in the screen.  Most cinema projection or
1613 technical departments will know these serial numbers.
1614 </para>
1615
1616 <para>
1617 Note that the reliability of the manufacturers' certificate databases
1618 cannot be guaranteed.  It is vital that KDMs are tested by the
1619 destination cinema will in advance of show time to identify any
1620 problems.
1621 </para>
1622
1623 <para>
1624 Once you have set up all the screens that you need KDMs for, select
1625 the CPL that you want to create the KDM for.  You can use the
1626 drop-down list to select the CPLs in the current film project, or load
1627 a CPL from somewhere else.  Select the cinemas and/or screens that you
1628 want KDMs for and fill in the start and end dates and times.
1629 </para>
1630
1631 <para>
1632 You must also select the type of KDM that you want to generate.  If in
1633 doubt, use <guilabel>Modified Transitional 1</guilabel>.
1634 </para>
1635
1636 <para>
1637 Finally, choose what you want to do with the KDMs.  They can be
1638 written to disk, to a location that you can specify by clicking
1639 <guilabel>Browse</guilabel>.  Alternatively, if you choose
1640 <guilabel>Send by email</guilabel> the KDMs will be zipped up and
1641 emailed to the appropriate cinema email addresses.  Click OK to
1642 generate the KDMs.
1643 </para>
1644
1645 </section>
1646
1647 </chapter>
1648
1649
1650
1651 <!-- ============================================================== -->
1652 <chapter xml:id="ch-preferences" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
1653 <title>Preferences</title>
1654
1655 <para>
1656 DCP-o-matic provides a few preferences which can be used to modify its
1657 behaviour.  This chapter explains those options.
1658 </para>
1659
1660
1661 <!-- ============================================================== -->
1662 <section>
1663 <title>The preferences dialogue</title>
1664
1665 <para>
1666 The preferences dialogue is opened by choosing
1667 <guilabel>Preferences...</guilabel> from the <guilabel>Edit</guilabel>
1668 menu.  The dialogue is split into seven tabs.
1669 </para>
1670
1671 <!-- ============================================================== -->
1672 <section>
1673 <title>General</title>
1674
1675 <para>
1676 The general tab is shown in <xref linkend="fig-prefs-general"/>.
1677 </para>
1678
1679 <figure id="fig-prefs-general"> 
1680   <title>General preferences</title> 
1681   <mediaobject>
1682     <imageobject> 
1683       <imagedata fileref="screenshots/prefs-general&scs;"/>
1684     </imageobject> 
1685   </mediaobject>
1686 </figure>
1687
1688
1689 <!-- ============================================================== -->
1690 <section>
1691 <title>Language</title>
1692
1693 <para>
1694 If you tick the <guilabel>Set Language</guilabel> checkbox and choose
1695 a language from the list, that language will be used for DCP-o-matic.
1696 You will need to restart DCP-o-matic to see the new language.
1697 </para>
1698
1699 <para>
1700 The translations for DCP-o-matic have been contributed by helpful
1701 users.  If your language is not on the last, head to <ulink
1702 url="http://dcpomatic.com/i18n.php">the DCP-o-matic website</ulink> to
1703 read about how to contribute a translation.
1704 </para>
1705 </section>
1706
1707
1708 <!-- ============================================================== -->
1709 <section>
1710 <title>Threads</title>
1711
1712 <para>
1713 When DCP-o-matic is encoding DCPs it can use multiple parallel threads
1714 to speed things up.  Set this value to the number of threads
1715 DCP-o-matic should use.  This should normally be the number of
1716 processors (or processor cores) in your machine.  DCP-o-matic will try
1717 to set this up correctly when you run it for the first time.
1718 </para>
1719
1720 </section>
1721
1722 <!-- ============================================================== -->
1723 <section>
1724 <title>Updates</title>
1725
1726 <para>
1727 The <guilabel>Check for updates on startup</guilabel> option, if
1728 enabled, will tell DCP-o-matic to check on <ulink
1729 url="http://dcpomatic.com/">dcpomatic.com</ulink> to see if there any
1730 newer versions of DCP-o-matic then the one you are running.  If so, a
1731 dialogue box will open with a link to download the new version.
1732 available
1733 </para>
1734
1735 <para>
1736 The <guilabel>Check for testing updates as well as stable
1737 ones</guilabel> option will also check for test updates as well as
1738 those that are formally &lsquo;released&rsquo;. This is useful if you
1739 like to live on the bleeding edge!
1740 </para>
1741 </section>
1742
1743 </section>
1744
1745 <!-- ============================================================== -->
1746 <section>
1747 <title>Defaults</title>
1748
1749 <para>
1750 The defaults tab is shown in <xref linkend="fig-prefs-defaults"/>.
1751 </para>
1752
1753 <figure id="fig-prefs-defaults">
1754   <title>Defaults preferences</title> 
1755   <mediaobject>
1756     <imageobject> 
1757       <imagedata fileref="screenshots/prefs-defaults&scs;"/>
1758     </imageobject> 
1759   </mediaobject>
1760 </figure>
1761
1762 <para>
1763 The options in this tab simply allow you to set up default values for
1764 various properties of new films.
1765 </para>
1766
1767 </section>
1768
1769 <!-- ============================================================== -->
1770 <section>
1771 <title>Servers</title>
1772
1773 <para>
1774 The servers tab is shown in <xref linkend="fig-prefs-servers"/>.
1775 </para>
1776
1777 <figure id="fig-prefs-servers">
1778   <title>Servers preferences</title> 
1779   <mediaobject>
1780     <imageobject> 
1781       <imagedata fileref="screenshots/prefs-servers&scs;"/>
1782     </imageobject> 
1783   </mediaobject>
1784 </figure>
1785
1786 <para>
1787 If <guilabel>Use all servers</guilabel> is ticked DCP-o-matic will
1788 locate encoding servers automatically (see <xref
1789 linkend="ch-servers"/>).
1790 </para>
1791
1792 <para>
1793 Instead of this (or in addition) servers can be specified explicitly.
1794 To add a server, click <guilabel>Add...</guilabel> and enter the host
1795 name or IP address of the server to use.
1796 </para>
1797
1798 </section>
1799
1800 <!-- ============================================================== -->
1801 <section xml:id="sec-prefs-colour">
1802 <title>Colour conversions</title>
1803
1804 <para>
1805 The colour conversions tab is shown in <xref linkend="fig-prefs-colour-conversions"/>.
1806 </para>
1807
1808 <figure id="fig-prefs-colour-conversions">
1809   <title>Colour conversions preferences</title> 
1810   <mediaobject>
1811     <imageobject> 
1812       <imagedata fileref="screenshots/prefs-colour-conversions&scs;"/>
1813     </imageobject> 
1814   </mediaobject>
1815 </figure>
1816
1817 <para>
1818 As part of the encoding process, DCP-o-matic has to convert the colour
1819 space of the source files that you use into XYZ, the colour space used
1820 by the DCI standard.
1821 </para>
1822
1823 <para>
1824 Colour conversion is discussed in more detail in a separate document
1825 <ulink url="http://dcpomatic.com/manual/colour.pdf">colour.pdf</ulink>.
1826 </para>
1827
1828 <para>
1829 These preferences control a list of presets which are suitable for
1830 converting from common input colour spaces to XYZ.
1831 </para>
1832
1833 </section>
1834
1835
1836 <!-- ============================================================== -->
1837 <section>
1838 <title>Keys</title>
1839
1840 <para>
1841 The Keys tab (shown in <xref linkend="fig-prefs-keys"/>) holds options
1842 related to the keys and certificates used in some parts of DCP
1843 creation.
1844 </para>
1845
1846 <figure id="fig-prefs-keys"> 
1847   <title>Keys preferences</title> 
1848   <mediaobject>
1849     <imageobject> 
1850       <imagedata fileref="screenshots/prefs-keys&scs;"/>
1851     </imageobject> 
1852   </mediaobject>
1853 </figure>
1854
1855 <para>
1856 At the top of the tab is the chain of certificates that will be used
1857 to sign DCPs and KDMs.  DCP-o-matic creates a random chain when you
1858 first run it, so if you are happy to use a randomly-generated chain
1859 you can ignore the preferences.  Otherwise, you can add or remove
1860 certificates from the chain using the <guilabel>Add...</guilabel> and
1861 <guilabel>Remove</guilabel> buttons.
1862 </para>
1863
1864 <para>
1865 If you want DCP-o-matic to re-create the certificate chain (using new,
1866 random certificates) click <guilabel>Re-make
1867 certificates...</guilabel> and specify your organisation and common
1868 names in the dialogue box that opens.
1869 </para>
1870
1871 <para>
1872 Underneath the certificate chain is the private key that corresponds
1873 to the leaf certificate in the chain.  You can specify your own
1874 private key by clicking <guilabel>Load...</guilabel>.  You must do
1875 this if you change the leaf certificate, so that the leaf private key
1876 corresponds to the public key held in the leaf certificate.
1877 </para>
1878
1879 <para>
1880 The bottom of the tab specifies the certificate and private key that
1881 is used to decrypt DCPs if they are imported as sources to
1882 DCP-o-matic.  If you want to import an encrypted DCP you will need to
1883 give the decryption certificate to the distributor of the DCP so that
1884 they can generate a DKDM for you.  As with the certificate chain,
1885 DCP-o-matic will create a certificate and private key for you.  You
1886 can also choose to load your own certificate and key.
1887 </para>
1888
1889 </section>
1890
1891 <!-- ============================================================== -->
1892 <section xml:id="sec-prefs-tms">
1893 <title>TMS</title>
1894 <titleabbrev xml:id="sec-prefs-tms-short">TMS preferences</titleabbrev>
1895
1896 <para>
1897 The TMS tab (shown in <xref linkend="fig-prefs-tms"/>) gives some
1898 options for specifying details about your theatre management system
1899 (TMS).  If you do this, and your TMS accepts SSH connections, you can
1900 upload DCPs directly from DCP-o-matic to the TMS using the
1901 <guilabel>Send DCP to TMS</guilabel> option in the
1902 <guilabel>Jobs</guilabel> menu.
1903 </para>
1904
1905 <figure id="fig-prefs-tms"> 
1906   <title>TMS preferences</title> 
1907   <mediaobject>
1908     <imageobject> 
1909       <imagedata fileref="screenshots/prefs-tms&scs;"/>
1910     </imageobject> 
1911   </mediaobject>
1912 </figure>
1913
1914 <para>
1915 <guilabel>TMS IP address</guilabel> should be set to the IP address of
1916 your TMS, <guilabel>TMS target path</guilabel> to the place that DCPs
1917 should be uploaded to (which will be relative to the home directory of
1918 the SSH user).  Finally, the user name and password are the
1919 credentials required to log into the TMS via SSH.
1920 </para>
1921 </section>
1922
1923
1924 <!-- ============================================================== -->
1925 <section>
1926 <title>KDM email</title>
1927
1928 <para>
1929 The KDM email is shown in <xref linkend="fig-prefs-kdm-email"/>.
1930 </para>
1931
1932 <figure id="fig-prefs-kdm-email"> 
1933   <title>KDM email preferences</title> 
1934   <mediaobject>
1935     <imageobject> 
1936       <imagedata fileref="screenshots/prefs-kdm-email&scs;"/>
1937     </imageobject> 
1938   </mediaobject>
1939 </figure>
1940
1941 <para>
1942 This is a template for the email that is used to send KDMs out to
1943 cinemas.  You can change it to say whatever you like.  A few
1944 &lsquo;magic&rsquo; strings will be replaced by information from the
1945 KDM that is being sent:
1946 </para>
1947
1948 <table>
1949 <title>&lsquo;Magic&rsquo; KDM strings</title>
1950 <tgroup cols='2' align='left' colsep='1' rowsep='1'>
1951 <tbody>
1952 <row>
1953 <entry><code>$CPL_NAME</code></entry><entry>DCP title</entry>
1954 </row>
1955 <row>
1956 <entry><code>$CINEMA_NAME</code></entry><entry>Cinema name</entry>
1957 </row>
1958 <row>
1959 <entry><code>$SCREENS</code></entry><entry>Name of screen or screens that KDMs are being generated for</entry>
1960 </row>
1961 <row>
1962 <entry><code>$START_TIME</code></entry><entry>The time from which the KDMs are valid</entry>
1963 </row>
1964 <row>
1965 <entry><code>$END_TIME</code></entry><entry>The time until which the KDMs are valid</entry>
1966 </row>
1967 </tbody>
1968 </tgroup>
1969 </table>
1970
1971 <para>
1972 The <guilabel>Reset to default text</guilabel> will replace the current KDM email with DCP-o-matic's default.
1973 </para>
1974
1975 </section>
1976
1977
1978 <!-- ============================================================== -->
1979 <section xml:id="sec-prefs-advanced">
1980 <title>Advanced</title>
1981 <titleabbrev xml:id="sec-prefs-advanced-short">Advanced preferences</titleabbrev>
1982
1983 <para>
1984 The advanced preferences are shown in <xref linkend="fig-prefs-advanced"/>.
1985 </para>
1986
1987 <figure id="fig-prefs-advanced"> 
1988   <title>Advanced preferences</title> 
1989   <mediaobject>
1990     <imageobject> 
1991       <imagedata fileref="screenshots/prefs-advanced&scs;"/>
1992     </imageobject> 
1993   </mediaobject>
1994 </figure>
1995
1996 <para>
1997 <guilabel>Maximum JPEG2000 bandwidth</guilabel> specifies the maximum
1998 bit-rate of JPEG2000 that DCP-o-matic will allow you to create.  You
1999 are advised to leave this at 250Mbit/s in normal use for maximum DCP
2000 compatibility.
2001 </para>
2002
2003 <para>
2004 <guilabel>Allow any DCP frame rate</guilabel> removes the limits on
2005 the DCP video frame rates that DCP-o-matic will create.  This may be
2006 useful for experimentation.  Again, you are strongly advised to leave
2007 this unticked for normal use.
2008 </para>
2009
2010 <para>
2011 The four checkboxes labelled <guilabel>Log</guilabel> control what
2012 sort of messages DCP-o-matic writes to its log file when creating a
2013 DCP.  It is useful to leave <guilabel>General</guilabel>,
2014 <guilabel>Warnings</guilabel> and <guilabel>Errors</guilabel> ticked
2015 as this makes the log files useful for tracking down bugs.
2016 </para>
2017
2018 <para>
2019 The <guilabel>Timing</guilabel> checkbox will enable extra log entries
2020 to allow developers to investigate and optimize the speed of
2021 DCP-o-matic.  It will significantly increase the size of the log files
2022 that are generated, so in normal use it is best to leave this
2023 unticked.
2024 </para>
2025
2026 </section>
2027 </section>
2028 </chapter>
2029
2030 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en" xml:id="ch-frame-rates">
2031 <title>Frame rates</title>
2032
2033 <para>
2034 In an ideal world, a DCP would be created using content at the same
2035 video frame and audio sampling rates as the DCP.  This is not,
2036 however, always possible.
2037 </para>
2038
2039
2040 <!-- ============================================================== -->
2041 <section>
2042 <title>DCP frame rate limitations</title>
2043
2044 <para>
2045 There are some limitations to video and audio frame rates in DCPs.  This is
2046 complicated by the fact that not all projectors will play DCPs at the
2047 same frame rates.  It is possible to create a DCP which one projector will
2048 play fine, but another (of a different type) will refuse to play, or
2049 even refuse to ingest.
2050 </para>
2051
2052
2053 <!-- ============================================================== -->
2054 <section>
2055 <title>Guaranteed rates</title>
2056
2057 <para>
2058 The only rates that are (pretty much) guaranteed to work on all DCI
2059 projectors are 24 frames per second (fps) for video and 48kHz or 96kHz
2060 for audio.  If you are sending your DCPs to unknown places it wise to
2061 consider using these rates if at all possible.
2062 </para>
2063
2064 </section>
2065
2066
2067 <!-- ============================================================== -->
2068 <section>
2069 <title>Other often-supported rates</title>
2070 <para>
2071 Many projectors now in the wild support additional video frame rates:
2072 25, 30 and 48 fps.
2073 </para>
2074 </section>
2075
2076
2077 <!-- ============================================================== -->
2078 <section>
2079 <title>Adapting content to fit the DCP rate</title>
2080
2081 <para>
2082 DCP-o-matic has a few tricks to allow you to use content that is not
2083 in one of the &lsquo;approved&rsquo; rates.
2084 </para>
2085
2086 <para>
2087 Audio is easy: DCP-o-matic can resample to 48kHz from any source rate
2088 with minimal loss in quality.
2089 </para>
2090
2091 <para>
2092 Video rate conversion is harder.  DCP-o-matic's basic strategy to deal
2093 with a non-supported content rate is to run it at the wrong speed, and
2094 to adjust the audio to keep it in sync.
2095 </para>
2096
2097 <para>Let us consider the example of a 25fps source for which you want
2098 to create a 24fps DCP.  DCP-o-matic will put the frames from the
2099 source directly into the DCP without modification, but will tell the
2100 projector to play them back at 24fps.  This means that the DCP's video
2101 will run slightly slower than the original.
2102 </para>
2103
2104 <para>
2105 If DCP-o-matic did nothing else, the result of this would be that the
2106 audio would be running at the original speed with the video running
2107 slowly.  Hence the audio would drift slowly out of sync.  To avoid
2108 this, DCP-o-matic also resamples the audio such that the projector
2109 will play it too slow by the same amount.  Hence it will sound
2110 slightly different but will remain in sync with the video.
2111 </para>
2112
2113 <para>
2114 For very low or high frame rates, DCP-o-matic can also skip or duplicate frames.
2115 </para>
2116
2117 </section>
2118 </section>
2119
2120
2121 <!-- ============================================================== -->
2122 <section>
2123 <title>Setting up</title>
2124
2125 <para>
2126 The <guilabel>Frame Rate</guilabel> control in the
2127 <guilabel>DCP</guilabel> tab sets the video frame rate that the DCP
2128 will use.  Clicking <guilabel>Use best</guilabel> sets the rate to
2129 what DCP-o-matic thinks is the best for your content.  With this
2130 button, DCP-o-matic assumes that the whole range of frame rates (24,
2131 25, 30 and 48fps) are allowable.
2132 </para>
2133
2134 <para>
2135 After this, the <guilabel>Video</guilabel> tab for each piece of
2136 content will give a summary of what DCP-o-matic is doing with that
2137 content.
2138 </para>
2139
2140 <para>
2141 If you want to experiment with other non-standard frame rates, you can
2142 do so by ticking the <guilabel>Allow any DCP frame rate</guilabel> in
2143 the <guilabel>Advanced</guilabel> tab of the preferences dialogue (see the
2144 <xref linkend="sec-prefs-advanced" endterm="sec-prefs-advanced-short"/>).  You are strongly advised to
2145 use this only on your own equipment, and only for experimentation
2146 purposes.
2147 </para>
2148
2149 </section>
2150
2151 </chapter>
2152
2153
2154 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en" xml:id="ch-servers">
2155 <title>Encoding servers</title>
2156
2157 <para>
2158 One way to increase the speed of DCP encoding is to use more
2159 than one machine at the same time.  An instance of DCP-o-matic can
2160 offload some of the time-consuming JPEG2000 encoding to any number of
2161 other machines on a network.  To do this, one &lsquo;master&rsquo;
2162 machine runs DCP-o-matic, and the &lsquo;server&rsquo; machines run
2163 a small program called <code>dcpomatic_server</code>.
2164 </para>
2165
2166 <para>
2167 The master and server machines do not need to be the same type, so you
2168 can mix Windows PCs, Macs and Linux machines as you wish.
2169 </para>
2170
2171
2172 <!-- ============================================================== -->
2173 <section>
2174 <title>Running the servers</title>
2175
2176 <para>
2177 There are two options for the encoding server;
2178 <code>dcpomatic_server_cli</code>, which runs on the command line, and
2179 <code>dcpomatic_server</code>, which has a simple GUI.  The command line
2180 version is well-suited to headless servers, especially on Linux, and
2181 the GUI version works best on Windows where it will put an icon in the
2182 system tray.
2183 </para>
2184
2185 <para>
2186 To run the command line version, simply enter:
2187 </para>
2188
2189 <programlisting>
2190 dcpomatic2_server_cli
2191 </programlisting>
2192
2193 <para>
2194 at a command prompt.  If you are running the program on a machine with
2195 a multi-core processor, you can run multiple parallel encoding threads
2196 by doing something like:
2197 </para>
2198
2199 <programlisting>
2200 dcpomatic2_server_cli -t 4
2201 </programlisting>
2202
2203 <para>
2204 to run 4 threads in parallel.
2205 </para>
2206
2207 <para>
2208 To run the GUI version on windows, run the &lsquo;DCP-o-matic encode
2209 server&rsquo; from the start menu.  An icon will appear in the system
2210 tray; right-click it to open a menu from whence you can quit the
2211 server or open a window to show its status.
2212 </para>
2213
2214 <para>If you would rather not bother installing DCP-o-matic on your
2215 server computers, the other option is to use the live-CD
2216 image that you can download from the <ulink
2217 url="http://dcpomatic.com/">DCP-o-matic web site.</ulink></para>
2218
2219 <para>Either burn the image to CD, or write it to a USB stick (using
2220 something like <ulink
2221 url="http://unetbootin.sourceforge.net/">unetbootin</ulink>).  Boot a
2222 PC from the CD or USB stick and it becomes a DCP-o-matic server
2223 without touching your standard operating system install.
2224 </para>
2225
2226 </section>
2227
2228 <!-- ============================================================== -->
2229 <section>
2230 <title>Setting up DCP-o-matic</title>
2231
2232 <para>
2233 DCP-o-matic periodically looks on the local network for servers.  Any
2234 that it finds are given work to do during encodes.  Selecting
2235 <guilabel>Encoding Servers</guilabel> from the
2236 <guilabel>Tools</guilabel> menu brings up a window which shows that
2237 servers that DCP-o-matic has found.
2238 </para>
2239
2240 </section>
2241
2242 <!-- ============================================================== -->
2243 <section>
2244 <title>Some notes about encode servers</title>
2245
2246 <para>
2247 DCP-o-matic does not mind if servers come and go; if a server
2248 disappears, DCP-o-matic will stop sending work to it, and will check
2249 it every minute or so in case it has come back online.
2250 </para>
2251
2252 <para>
2253 You will probably find that using a 1Gb/s or faster network will
2254 provide a significant speed-up compared to a 100Mb/s network.
2255 </para>
2256
2257 </section>
2258
2259 </chapter>
2260
2261 <chapter xml:id="ch-files" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
2262 <title>Generated files</title>
2263
2264 <para>
2265 DCP-o-matic generates a number of files as it makes a DCP.  <xref
2266 linkend="fig-file-structure"/> shows the files that might be generated
2267 after you have created a DCP for a film called &lsquo;DCP Test&rsquo;.
2268 </para>
2269
2270 <figure id="fig-file-structure"> 
2271   <title>Creating a new film</title> 
2272   <mediaobject>
2273     <imageobject> 
2274       <imagedata fileref="diagrams/file-structure&dia;"/>
2275     </imageobject> 
2276   </mediaobject>
2277 </figure>
2278
2279 <para>
2280 The <code>DCP Test</code> folder is the one that you specify when you
2281 select the <guilabel>New Film</guilabel> option from DCP-o-matic's
2282 menu.  Everything is stored inside this folder.
2283 </para>
2284
2285 <para>
2286 DCP-o-matic generates some working files as it goes along.  These are as follows:
2287 <itemizedlist>
2288
2289 <listitem><code>log</code> is a list of notes that DCP-o-matic makes as it goes
2290 along.  This can be useful for debugging purposes if something goes
2291 wrong.</listitem>
2292
2293 <listitem><code>metadata</code> stores the settings that you have made
2294 for this film: things like cropping, output format and so on.</listitem>
2295
2296 <listitem><code>video</code> is where DCP-o-matic writes the DCP's
2297 video data as it encodes it.</listitem>
2298
2299 <listitem><code>analysis</code> is used to keep the results of audio analysis runs.</listitem>
2300
2301 <listitem><code>info</code> contains details of each video frame that
2302 DCP-o-matic has written so far.  This is used when an encoding
2303 operation is interrupted and DCP-o-matic must resume it.</listitem>
2304 </itemizedlist>
2305 </para>
2306
2307 <para>
2308 Following this is the DCP itself:
2309 <code>DCP-TEST_EN-XX_UK-U_51_2K_CSY_20130218_CSY_OV</code>.  This
2310 contains some small XML files, which describe the DCP, and two large
2311 MXF files, which contain the DCP's audio and video data.  This folder
2312 (<code>DCP-TEST_EN-XX_...</code>) is what you should ingest, or pass
2313 to the cinema which is showing your DCP.
2314 </para>
2315
2316 </chapter>
2317
2318 <chapter>
2319 <title>Loose ends</title>
2320
2321 <para>
2322 This chapter collects a few notes on bits of DCP-o-matic that do not fit elsewhere in the manual.
2323 </para>
2324
2325
2326 <!-- ============================================================== -->
2327 <section>
2328 <title>Resuming encodes</title>
2329
2330 <para>
2331 If you cancel a DCP encoding run half-way through, or your computer
2332 crashes... fear not.  DCP-o-matic takes care to ensure that, in most
2333 cases, it can resume encoding from where it left off.  When you
2334 re-start a DCP creation, using the same settings are a previous run,
2335 DCP-o-matic will first check that the existing picture frames are
2336 correct, and then resume from where it left off.  The checking of
2337 existing frames does take some time, but it is much faster than
2338 running a full re-encode.
2339 </para>
2340
2341 <para>
2342 This resumption is achieved by writing a digest (hash) to disk for
2343 every image frame that is written.  On resumption, the existing MXF
2344 file for image data is read and its contents checked against the
2345 hashes.
2346 </para>
2347
2348 </section>
2349
2350 </chapter>
2351
2352 </book>