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