Manual adjustments.
[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" version="5.0" xml:lang="en">
12
13 <bookinfo>
14 <title>DCP-o-matic</title>
15 <author><firstname>Carl</firstname><surname>Hetherington</surname></author>
16 </bookinfo>
17
18 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
19 <title>Introduction</title>
20
21 <para>
22 Hello, and welcome to DCP-o-matic!
23 </para>
24
25 <section>
26 <title>What is DCP-o-matic?</title>
27
28 <para>
29 DCP-o-matic is a program to generate <ulink
30 url="http://en.wikipedia.org/wiki/Digital_Cinema_Package">Digital
31 Cinema Packages</ulink> (DCPs) from DVDs, Blu-Rays, video files such as MP4
32 and AVI, or still images.  The resulting DCPs will play on modern digital
33 cinema projectors.
34 </para>
35
36 <para>
37 You might find it useful to make DVDs easier to present, to encode
38 independently-shot feature films, or to generate local advertising for
39 your cinema.
40 </para>
41
42 </section>
43
44 <section>
45 <title>Licence</title>
46
47 <para>
48 DCP-o-matic is licensed under the <ulink url="http://www.gnu.org/licenses/old-licenses/gpl-2.0.html">GNU GPL</ulink>.
49 </para>
50
51 </section>
52
53 <section>
54 <title>Acknowledgements</title>
55
56 <para>
57 This manual uses icons from the <ulink url="http://tango.freedesktop.org/">Tango Desktop Project</ulink>, with thanks.
58 </para>
59
60 </section>
61 </chapter>
62
63 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
64 <title>Installation</title>
65
66 <section>
67 <title>Windows</title>
68
69 <para>
70 To install DCP-o-matic on Windows, simply download the installer from
71 <ulink url="http://dcpomatic.com/">http://dcpomatic.com/</ulink>
72 and double-click it.  Click through the installer wizard, and
73 DCP-o-matic will be installed onto your machine.
74 </para>
75
76 <para>
77 If you are using a 32-bit version of Windows, you will need the 32-bit
78 installer.  For 64-bit Windows, either installer will work, but I
79 suggest you used the 64-bit version as it will allow DCP-o-matic to
80 use more memory.  You may find that DCP-o-matic crashes if you run
81 many parallel encoding threads (more than 4) on the 32-bit
82 version.
83 </para>
84
85 </section>
86
87 <section>
88 <title>Mac OS X</title>
89
90 <para>
91 DCP-o-matic will run on Mac OS X version 10.6 (Snow Leopard) and
92 higher.  To install it, download the <code>DMG</code> from <ulink
93 url="http://dcpomatic.com/">http://dcpomatic.com/</ulink> and double
94 click to open it.  Then drag the DCP-o-matic icon to your
95 <guilabel>Applications</guilabel> folder or wherever else you would
96 like to install it.
97 </para>
98
99 </section>
100
101 <section>
102 <title>Ubuntu Linux</title>
103
104 <para>
105 You can install DCP-o-matic on Ubuntu 12.04 (&lsquo;Precise
106 Pangolin&rsquo;), 12.10 (&lsquo;Quantal Quetzal&rsquo;) or 13.04
107 (&lsquo;Raring Ringtail&rsquo;) using <code>.deb</code> packages:
108 download the appropriate package from <ulink
109 url="http://dcpomatic.com/">http://dcpomatic.com/</ulink> and
110 double-click it.  Ubuntu will install the necessary bits and pieces
111 and set DCP-o-matic up for you.
112 </para>
113
114 </section>
115
116 <section>
117 <title>Other Linux distributions</title>
118
119 <para>
120 Installation on non-Ubuntu Linux is currently a little involved, as
121 there are no packages available (yet); you will have to compile it
122 from source.  If you are using a non-Ubuntu distribution, do let me
123 know via the <ulink url="mailto:dcpomatic@carlh.net">mailing
124 list</ulink> and I will see about building some packages.
125 </para>
126
127 <para>
128 The following dependencies are required:
129 <itemizedlist>
130 <listitem><ulink url="http://ffmpeg.org/">FFmpeg</ulink></listitem>
131 <listitem><ulink url="http://www.mega-nerd.com/libsndfile/">libsndfile</ulink></listitem>
132 <listitem><ulink url="http://www.openssl.org/">OpenSSL</ulink></listitem>
133 <listitem><ulink url="http://www.openjpeg.org/">libopenjpeg</ulink></listitem>
134 <listitem><ulink url="http://www.imagemagick.org/script/index.php">ImageMagick</ulink></listitem>
135 <listitem><ulink url="http://www.boost.org/">Boost</ulink></listitem>
136 <listitem><ulink url="http://www.libssh.org/">libssh</ulink></listitem>
137 <listitem><ulink url="http://www.gtk.org/">GTK</ulink></listitem>
138 <listitem><ulink url="http://www.wxwidgets.org/">wxWidgets</ulink></listitem>
139 <listitem><ulink url="http://carlh.net/software/libdcp/">libdcp</ulink></listitem>
140 </itemizedlist>
141 </para>
142
143 <para>
144 Once you have installed the development packages for the dependencies,
145 download the source code from <ulink
146 url="http://dcpomatic.com/">http://dcpomatic.com/</ulink>,
147 unpack it and run the following commands from inside the source
148 directory:
149 </para>
150
151 <programlisting>
152 ./waf configure
153 ./waf build
154 sudo ./waf install
155 </programlisting>
156
157 <para>
158 With any luck, this will build and install DCP-o-matic on your system.  To run it, enter:
159 </para>
160
161 <programlisting>
162 dcpomatic
163 </programlisting>
164
165 <para>
166 in a shell.
167 </para>
168
169 </section>
170 </chapter>
171
172 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
173 <title>Creating a video DCP</title>
174
175 <para>
176 In this chapter we will see how to create a video DCP using
177 DCP-o-matic.  We will gloss over the details and look at the basics.
178 </para>
179
180 <section>
181 <title>Creating a new film</title>
182
183 <para>
184 Let's make a very simple DCP to see how DCP-o-matic works.  First, we
185 need some content.  Download the low-resolution trailer for the open
186 movie <ulink url="http://sintel.org/">Sintel</ulink> from <ulink
187 url="http://ftp.nluug.nl/ftp/graphics/blender/apricot/trailer/Sintel_Trailer1.480p.DivX_Plus_HD.mkv">their
188 website</ulink>.  Generally, of course, one would want to use the
189 highest-resolution material available, but for this test we will use
190 the low-resolution version to save everyone's bandwidth bills.
191 </para>
192
193 <para>
194 Now, start DCP-o-matic and its window will open.  First, we will
195 create a new &lsquo;film&rsquo;.  A &lsquo;film&rsquo; is how DCP-o-matic refers to
196 some pieces of content, along with some settings, which we will make into
197 a DCP.  DCP-o-matic stores its data in a folder on your disk while it
198 creates the DCP.  You can create a new film by selecting
199 <guilabel>New</guilabel> from the <guilabel>File</guilabel> menu, as
200 shown in <xref linkend="fig-file-new"/>.
201 </para>
202
203 <figure id="fig-file-new">
204   <title>Creating a new film</title> 
205   <mediaobject>
206     <imageobject> 
207       <imagedata fileref="screenshots/file-new&scs;"/>
208     </imageobject> 
209   </mediaobject>
210 </figure>
211
212 <para>
213 This will open a dialogue box for the new film, as shown in <xref
214 linkend="fig-video-new-film"/>.
215 </para>
216
217 <figure id="fig-video-new-film">
218   <title>Dialogue box for creating a new film</title> 
219   <mediaobject>
220     <imageobject> 
221       <imagedata fileref="screenshots/video-new-film&scs;"/>
222     </imageobject> 
223   </mediaobject>
224 </figure>
225
226 <para>
227 In this dialogue box you can choose a name for the film.  This will be
228 used to name the folder to store its data in, and also as the initial
229 name for the DCP itself.  You can also choose whereabouts you want to create
230 the film.  In the example from the figure, DCP-o-matic will create a
231 folder called &lsquo;DCP Test&rsquo; inside my home folder (carl) into which it
232 will write its working files.
233 </para>
234
235 </section>
236
237 <section>
238 <title>Adding content</title>
239
240 <para>
241 The next step is to add the content that you want to use.  DCP-o-matic
242 can make DCPs from multiple pieces of content, but in this simple
243 example we will just use a single piece.  Click the <guilabel>Add
244 file(s)...</guilabel> button, as shown in <xref
245 linkend="fig-add-file"/>, and a file chooser will open for you to
246 select the content file to use, as shown in <xref
247 linkend="fig-video-select-content-file"/>.
248 </para>
249
250 <figure id="fig-add-content"> 
251   <title>Adding content</title> 
252   <mediaobject>
253     <imageobject> 
254       <imagedata fileref="screenshots/add-content&scs;"/>
255     </imageobject> 
256   </mediaobject>
257 </figure>
258
259 <figure id="fig-video-select-content-file"> 
260   <title>Selecting a video content file</title> 
261   <mediaobject>
262     <imageobject> 
263       <imagedata fileref="screenshots/video-select-content-file&scs;"/>
264     </imageobject> 
265   </mediaobject>
266 </figure>
267
268 <para>
269 Select your content file and click <guilabel>Open</guilabel>.  In this
270 case we are using the Sintel trailer that we downloaded earlier.
271 </para>
272
273 <para>
274 When you do this, DCP-o-matic will take a look at your file.  After a
275 short while (when the progress bar at the bottom right of the window
276 has finished), you can look through your content using the slider to
277 the right of the window, as shown in <xref linkend="fig-examine-content"/>.
278 </para>
279
280 <figure id="fig-examine-content"> 
281   <title>Examining the content</title>
282   <mediaobject>
283     <imageobject> 
284       <imagedata fileref="screenshots/examine-content&scs;"/>
285     </imageobject> 
286   </mediaobject>
287 </figure>
288
289 <para>
290 Dragging the slider will move through your video.  You can also click
291 the <guilabel>Play</guilabel> button to play the content back.  Note
292 that there will be no sound, and playback might not be entirely
293 accurate (it may be slightly slower or faster than it should be, for
294 example).  This player is really only intended for brief inspection of
295 content; if you need to check it more thoroughly, use another player
296 such as <ulink
297 url="http://projects.gnome.org/totem/index.html">Totem</ulink>, <ulink
298 url="http://www.mplayerhq.hu/design7/news.html">mplayer</ulink> or
299 <ulink url="http://www.videolan.org/vlc/index.html">VLC</ulink>.
300 </para>
301
302 </section>
303
304
305
306 <section>
307 <title>Making the DCP</title>
308
309 <para>In most cases, some adjustments would be made to DCP-o-matic's
310 settings once the content has been added.  For our simple test,
311 however, the default values will suffice, so we can go straight onto
312 making the DCP.</para>
313
314 <para>
315 Choose <guilabel>Make DCP</guilabel> from the
316 <guilabel>Jobs</guilabel> menu.  DCP-o-matic will encode your DCP.
317 This may take some time (many hours in some cases).  While the job is
318 in progress, DCP-o-matic will update you on how it is getting on with
319 the progress bar in the bottom of its window, as shown in <xref
320 linkend="fig-making-dcp"/>.
321 </para>
322
323 <figure id="fig-making-dcp">
324   <title>Making the DCP</title>
325   <mediaobject>
326     <imageobject> 
327       <imagedata fileref="screenshots/making-dcp&scs;"/>
328     </imageobject> 
329   </mediaobject>
330 </figure>
331
332 <para>
333 When it has finished, the DCP will end up on your disk inside the
334 film's folder.  You can then copy this to a projector via a USB
335 stick, hard-drive or network connection.  See <xref
336 linkend="ch-files"/> for details about the files that DVD-o-matic creates.
337 </para>
338
339 <para>
340 Alternatively, if you have a projector or TMS that is accessible via
341 SCP across your network, you can upload the content directly from
342 DCP-o-matic.  See <xref linkend="sec-tms-upload"/>.
343 </para>
344
345 </section>
346 </chapter>
347
348 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
349 <title>Creating a still-image DCP</title>
350
351 <para>
352 DCP-o-matic can also be used to create DCPs of one or more still images, perhaps
353 for an advertisement or an on-screen announcement.  This chapter shows you
354 how to do it.
355 </para>
356
357 <para>
358 As with video DCPs, the first step is to create a new
359 &lsquo;Film&rsquo;; select <guilabel>New</guilabel> from the
360 <guilabel>File</guilabel> menu and the new film dialogue will open as
361 shown in <xref linkend="fig-still-new-film"/>.
362 </para>
363
364 <figure id="fig-still-new-film"> 
365   <title>Dialogue box for creating a new film</title> 
366   <mediaobject>
367     <imageobject> 
368       <imagedata fileref="screenshots/still-new-film&scs;"/>
369     </imageobject> 
370   </mediaobject>
371 </figure>
372
373 <para>
374 Enter a name and click <guilabel>OK</guilabel>.  Now we need to add
375 the content.  As before, click <guilabel>Add file(s)...</guilabel>.
376 For our example, we will add a single image file, as shown in <xref
377 linkend="fig-still-select-content-file"/>.
378 </para>
379
380 <figure id="fig-still-select-content-file"> 
381   <title>Selecting a still content file</title> 
382   <mediaobject>
383     <imageobject> 
384       <imagedata fileref="screenshots/still-select-content-file&scs;"/>
385     </imageobject> 
386   </mediaobject>
387 </figure>
388
389 <para>
390 As with video DCPs, most of the default settings will be fine for a
391 simple test.  The one thing that you might wish to change is the
392 length of the still.  Select the <guilabel>Timing</guilabel> tab and
393 you will see a <guilabel>Length</guilabel> setting, as shown in <xref
394 linkend="fig-timing-tab"/>.
395 </para>
396
397 <figure id="fig-timing-tab"> 
398   <title>The timing tab</title>
399   <mediaobject>
400     <imageobject> 
401       <imagedata fileref="screenshots/timing-tab&scs;"/>
402     </imageobject> 
403   </mediaobject>
404 </figure>
405
406 <para>
407 This length is a &lsquo;timecode&rsquo;: it consists of four numbers.
408 The first is hours, the second minutes, the third seconds, and the
409 fourth frames.  Enter the duration that you want and then click <guilabel>Set</guilabel>.
410 </para>
411
412 <para>
413 Finally, as with video, you can choose <guilabel>Make DCP</guilabel>
414 from the <guilabel>Jobs</guilabel> menu to create your DCP.  This will
415 be much quicker than creating a video DCP, as DCP-o-matic only needs
416 to encode a single frame which it can then repeat.
417 </para>
418
419 </chapter>
420
421 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
422 <title>Handling content</title>
423
424 <para>
425 The previous chapters showed DCP generation using the default
426 settings.  DCP-o-matic offers a range of features to adjust the
427 content that goes into your DCP, and this describes those features in
428 detail.
429 </para>
430
431 <section>
432 <title>Adding and removing content</title>
433
434 <para>
435 At the top of the <guilabel>Content</guilabel> tab is a list of the
436 content that will go into our DCP.  There can be as many pieces of
437 content as you like, and they can be of the following types:
438 </para>
439
440 <itemizedlist>
441 <listitem>Movie &mdash; a file containing some video, probably some
442 audio and possibly some subtitles; for example, a MOV, MP4 or VOB.
443 </listitem>
444
445 <listitem>Sound &mdash; a file containing one or more channels of
446 audio; for example, a WAV or AIFF file.
447 </listitem>
448
449 <listitem>Still image &mdash; a file containing a single still image; for
450 example, a JPEG, PNG or TIFF file.
451 </listitem>
452
453 <listitem>Moving image &mdash; a directory containing many still
454 images which should be treated as the frames of a video.
455 </listitem>
456 </itemizedlist>
457
458 <para>
459 To add one or more movie, sound or still-image files, select
460 <guilabel>Add file(s)...</guilabel> and choose them from the selector.
461 To add a directory of images, choose <guilabel>Add
462 directory...</guilabel> and do similar.
463 </para>
464
465 <para>
466 You can remove a piece of content by clicking on its name and then
467 clicking the <guilabel>Remove</guilabel> button.
468 </para>
469
470 </section>
471
472 </chapter>
473
474 <chapter xml:id="ch-preferences" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
475 <title>Preferences</title>
476
477 <para>
478 DCP-o-matic provides a few preferences which can be used to modify its
479 behaviour.  This chapter explains those options.
480 </para>
481
482 <section>
483 <title>The preferences dialogue</title>
484
485 <para>
486 The preferences dialogue is opened by choosing
487 <guilabel>Preferences...</guilabel> from the <guilabel>Edit</guilabel>
488 menu.  The dialogue is shown in <xref linkend="fig-prefs"/>.
489 </para>
490
491 <figure id="fig-prefs"> 
492   <title>Preferences</title> 
493   <mediaobject>
494     <imageobject> 
495       <imagedata fileref="screenshots/prefs&scs;"/>
496     </imageobject> 
497   </mediaobject>
498 </figure>
499
500 <section>
501 <title>TMS setup</title>
502
503 <para>
504 The first part of the dialogue gives some options for specifying
505 details about your TMS.  If you do this, and your TMS accepts SSH
506 connections, you can upload DCPs directly from DCP-o-matic to the TMS.
507 This is discussed in <xref linkend="sec-tms-upload"/>.
508 </para>
509
510 <para>
511 <guilabel>TMS IP address</guilabel> should be set to the IP address of
512 your TMS, <guilabel>TMS target path</guilabel> to the place that DCPs
513 should be uploaded to (which will be relative to the home directory of
514 the SSH user).  Finally, the user name and password are the
515 credentials required to log into the TMS via SSH.
516 </para>
517 </section>
518
519 <section>
520 <title>Threads</title>
521
522 <para>
523 When DCP-o-matic is encoding DCPs it can use multiple parallel threads
524 to speed things up.  Set this value to the number of threads
525 DCP-o-matic should use.  This would typically be set to the number of
526 processors (or processor cores) in your machine.
527 </para>
528
529 </section>
530
531 <section>
532 <title>Default directory for new films</title>
533
534 <para>
535 This is the directory (folder) which DCP-o-matic will suggest initially as a place to put new films.
536 </para>
537
538 </section>
539
540 <section>
541 <title>A/B options</title>
542
543 <para>
544 These options are for DCP-o-matic's special mode of making A/B
545 comparison DCPs for checking the performance of video filters.  Their
546 use is described in <xref linkend="sec-ab"/>.
547 </para>
548
549 </section>
550
551 <section>
552 <title>Encoding servers</title>
553
554 <para>
555 If you have spare machines sitting around on your network not doing
556 much, they can be pressed into service to speed up DCP encodes.  This
557 is done by running a small server program on the machine, which will
558 encode video sent to it by the &lsquo;master&rsquo; DCP-o-matic.  This
559 option is described in more detail in <xref linkend="sec-servers"/>.
560 Use these preferences to specify the encoding servers that should be
561 used.
562 </para>
563
564 </section>
565
566 </section>
567 </chapter>
568
569 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
570 <title>Advanced topics</title>
571
572 <para>This chapter describes some parts of DCP-o-matic that are
573 probably not essential, but which you might find useful in some
574 circumstances.
575 </para>
576
577 <section>
578 <title>Filtering</title>
579
580 <para>
581 DCP-o-matic offers a variety of filters that can be applied to your
582 video content.  You can set up the filters by clicking the
583 <guilabel>Edit</guilabel> button next to the filters entry in the
584 setup area of the DCP-o-matic window; this opens the filters selector
585 as shown in <xref linkend="fig-filters"/>.
586 </para>
587
588 <figure id="fig-filters"> 
589   <title>Filters selector</title> 
590   <mediaobject>
591     <imageobject> 
592       <imagedata fileref="screenshots/filters&scs;"/>
593     </imageobject> 
594   </mediaobject>
595 </figure>
596
597 <para>
598 After changing the filters setup, you will need to regenerate the DCP
599 to see the effect on the cinema screen.  The preview in DCP-o-matic
600 will update itself whenever filters are changed, though of course this
601 image is much smaller and of lower resolution than a projected image!
602 </para>
603
604 </section>
605
606 <section>
607 <title>Scaling</title>
608
609 <para>
610 If your source material is not of the DCI-specified size, or if it
611 uses non-square pixels, DCP-o-matic will need to scale it.  The
612 algorithm used to scale is set up by the <guilabel>Scaler</guilabel>
613 entry in the film setup area.  We think &lsquo;Bicubic&rsquo; is the
614 best all-round option, but tests are ongoing.
615 </para>
616
617 </section>
618
619 <section xml:id="sec-tms-upload">
620 <title>TMS upload</title>
621
622 <para>
623 If you have configured details of a TMS in the preferences dialogue
624 (<xref linkend="ch-preferences"/>) you can upload a completed DCP
625 straight to your TMS buy choosing <guilabel>Send DCP to TMS</guilabel>
626 from the <guilabel>Jobs</guilabel> menu.
627 </para>
628
629 </section>
630
631
632 <section xml:id="sec-ab">
633 <title>A/B comparison</title>
634
635 <para>
636 When evaluating the effects of different filters or scalers on the
637 image quality, A/B mode might be useful.  In this mode, DCP-o-matic
638 will generate a DCP where the left half of the image uses some
639 &lsquo;reference&rsquo; filtering and scaling, and the right half of
640 the image uses a different set of filters and a different scaler.
641 This DCP can then be played back on a projector and the image quality
642 evaluated.
643 </para>
644
645 <para>
646 To enable A/B mode, click the A/B checkbox in the setup area of the
647 DCP-o-matic window.  When you generate your DCP, the left half of the
648 screen will use the filters and scaler specified in the <xref
649 linkend="ch-preferences">preferences</xref> dialogue, and the right
650 half will use the filters and scaler specified in the film setup.
651 </para>
652
653 </section>
654
655 <section xml:id="sec-servers">
656 <title>Encoding servers</title>
657
658 <para>
659 One way to increase the speed of DCP encoding is to use more
660 than one machine at the same time.  An instance of DCP-o-matic can
661 offload some of the time-consuming JPEG2000 encoding to any number of
662 other machines on a network.  To do this, one &lsquo;master&rsquo;
663 machine runs DCP-o-matic, and the &lsquo;server&rsquo; machines run
664 a small program called &lsquo;servomatic&rsquo;.
665 </para>
666
667 <section>
668 <title>Running the servers</title>
669
670 <para>
671 There are two options for the encoding server;
672 <code>servomatic_cli</code>, which runs on the command line, and
673 <code>servomatic_gui</code>, which has a simple GUI.  The command line
674 version is well-suited to headless servers, especially on Linux, and
675 the GUI version works best on Windows where it will put an icon in the
676 system tray.
677 </para>
678
679 <para>
680 To run the command line version, simply enter:
681 </para>
682
683 <programlisting>
684 servomatic_cli
685 </programlisting>
686
687 <para>
688 at a command prompt.  If you are running the program on a machine with
689 a multi-core processor, you can run multiple parallel encoding threads
690 by doing something like:
691 </para>
692
693 <programlisting>
694 servomatic_cli -t 4
695 </programlisting>
696
697 <para>
698 to run 4 threads in parallel.
699 </para>
700
701 <para>
702 To run the GUI version on windows, run the &lsquo;DCP-o-matic encode
703 server&rsquo; from the start menu.  An icon will appear in the system
704 tray; right-click it to open a menu from whence you can quit the
705 server or open a window to show its status.
706 </para>
707
708 </section>
709 <section>
710 <title>Setting up DCP-o-matic</title>
711
712 <para>
713 Once your servers are running, you need to tell your master
714 DCP-o-matic instance about them.  Start DCP-o-matic and open the
715 <guilabel>Preferences</guilabel> dialog from the
716 <guilabel>Edit</guilabel> menu.  At the bottom of this dialog is a
717 section where you can add, edit and remove encoding servers.  For each
718 encoding server you need only specify its IP address and the number of
719 threads that it is running, so that DCP-o-matic knows how many
720 parallel encode jobs to send to the server.
721 </para>
722
723 <para>
724 Once this is done, any encodes that you start will split the workload
725 up between the master machine and the servers.
726 </para>
727
728 </section>
729 <section>
730 <title>Some notes about encode servers</title>
731
732 <para>
733 DCP-o-matic does not mind if servers come and go; if a server
734 disappears, DCP-o-matic will stop sending work to it, and will check
735 it every minute or so in case it has come back online.
736 </para>
737
738 <para>
739 You will probably find that using a 1Gb/s or faster network will
740 provide a significant speed-up compared to a 100Mb/s network.
741 </para>
742
743 <para>
744 Making changes to the server configuration in the master DCP-o-matic
745 will have no effect while an encode is running; the changes will only
746 be noticed when a new encode is started.
747 </para>
748
749 </section>
750 </section>
751
752 </chapter>
753
754 <chapter xml:id="ch-files" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
755 <title>Generated files</title>
756
757 <para>
758 DCP-o-matic generates a number of files as it makes a DCP.  <xref
759 linkend="fig-file-structure"/> shows the files that might be generated
760 after you have created a DCP for a film called &lsquo;DCP Test&rsquo;.
761 </para>
762
763 <figure id="fig-file-structure"> 
764   <title>Creating a new film</title> 
765   <mediaobject>
766     <imageobject> 
767       <imagedata fileref="diagrams/file-structure&dia;"/>
768     </imageobject> 
769   </mediaobject>
770 </figure>
771
772 <para>
773 The <code>DCP Test</code> folder is the one that you specify when you
774 select the <guilabel>New Film</guilabel> option from DCP-o-matic's
775 menu.  Everything is stored inside this folder.
776 </para>
777
778 <para>
779 DCP-o-matic generates some working files as it goes along.  These are as follows:
780 <itemizedlist>
781
782 <listitem><code>log</code> is a list of notes that DCP-o-matic makes as it goes
783 along.  This can be useful for debugging purposes if something goes
784 wrong.</listitem>
785
786 <listitem><code>metadata</code> stores the settings that you have made
787 for this film: things like cropping, output format and so on.</listitem>
788
789 <listitem><code>video</code> is where DCP-o-matic writes the DCP's
790 video data as it encodes it.</listitem>
791
792 <listitem><code>analysis</code> is used to keep the results of audio analysis runs.</listitem>
793
794 <listitem><code>info</code> contains details of each video frame that
795 DCP-o-matic has written so far.  This is used when an encoding
796 operation is interrupted and DCP-o-matic must resume it.</listitem>
797 </itemizedlist>
798 </para>
799
800 <para>
801 Following this is the DCP itself:
802 <code>DCP-TEST_EN-XX_UK-U_51_2K_CSY_20130218_CSY_OV</code>.  This
803 contains some small XML files, which describe the DCP, and two large
804 MXF files, which contain the DCP's audio and video data.  This folder
805 (<code>DCP-TEST_EN-XX_...</code>) is what you should ingest, or pass
806 to the cinema which is showing your DCP.
807 </para>
808
809 </chapter>
810
811
812 </book>
813
814
815 <!--
816 OUTTAKES:
817
818
819 <para>
820 The folder that you choose should have plenty of free disc space
821 available.  As a very rough guide, you will need about 25Mb per second
822 of your DCP.  This works out at 1.5Gb per minute, or 90Gb per hour.
823 </para>
824
825 <para>
826 If you always create your DCPs in a particular folder, you can use
827 DCP-o-matic's <guilabel>Preferences</guilabel> to make life a little
828 easier by setting the default folder that DCP-o-matic will offer in this dialogue.
829 See <xref linkend="ch-preferences"/>.
830 </para>
831
832 <section>
833 <title>Setting up the content</title>
834
835 <para>
836 Now there are a few things to set up to describe how the content you just added should be used.
837 created.  The settings are divided into four tabs: video, audio, subtitles and timing.
838 </para>
839
840 <section>
841 <title>Video content tab</title>
842
843 <para>
844 This tab contains settings related to the video (i.e. the picture) of your content, as shown in <xref linkend="fig-video-tab"/>.
845 </para>
846
847 <figure id="fig-video-tab"> 
848   <title>Video settings tab</title>
849   <mediaobject>
850     <imageobject> 
851        XXX: content video tab
852     </imageobject> 
853   </mediaobject>
854 </figure>
855
856 <para>The default values in this tab are fine for our example, but the
857 options are described here anyway.</para>
858
859 <para>
860 The first option on this tab is the &lsquo;type&rsquo; of the video.
861 This specifies how DCP-o-matic should interpret the video's image.
862 <guilabel>2D</guilabel> is the default; this just takes the video
863 image as a standard 2D frame.  The other options allow the video to be
864 interpreted as 3D; this is described later in the manual.
865  XXX: link 
866 </para>
867
868 <para>
869 The &lsquo;crop&rsquo; settings can be used to crop your content,
870 which can be used to remove black borders from round the edges of DVD
871 images, for example.  The specified number of pixels will be trimmed
872 from each edge, and the content image in the right of the window will
873 be updated to show the effect of the crop.
874 </para>
875
876 <para>
877 The <guilabel>Scale to</guilabel> option governs the shape that
878 DCP-o-matic will scale the content's image into.  Select the aspect
879 ratio that your content should be presented in.
880 </para>
881
882 <para>
883 The &lsquo;filters&rsquo; settings allow you to apply various video
884 filters to the image.  These may be useful to try to improve
885 poor-quality sources like DVDs.  We will discuss filtering later in the manual.
886  XXX: link 
887 </para>
888 </section>
889
890 <section>
891 <title>Audio tab</title>
892
893 <para>
894 This tab contains settings related to the sound in your content, as shown in <xref linkend="fig-audio-tab"/>.
895 </para>
896
897 <figure id="fig-audio-tab"> 
898   <title>Audio settings tab</title>
899   <mediaobject>
900     <imageobject> 
901        XXX: content audio tab 
902     </imageobject> 
903   </mediaobject>
904 </figure>
905
906 <para>
907 Once again, these settings can be left at their defaults for our Sintel example.
908 </para>
909
910 <para>
911 The <guilabel>Show Audio</guilabel> button will instruct DCP-o-matic
912 to examine the audio in your content and plot a graph of its level
913 over time.  This can be useful for getting a rough idea of how loud
914 the sound will be in the cinema auditorium.  The audio graphic is
915 discussed in more detail later in the manual.
916  XXX: link 
917 </para>
918
919 <para>
920 &lsquo;Audio Gain&rsquo; is used to alter the volume of the
921 soundtrack.  The specified gain (in dB) will be applied to each sound
922 channel of your content before it is written to the DCP.
923 </para>
924
925 <para>
926 If you use a sound processor that DCP-o-matic knows about, it can help
927 you calculate changes in gain that you should apply.  Say, for
928 example, that you make a test DCP and find that you have to run it at
929 volume 5 instead of volume 7 to get a good sound level in the screen.
930 If this is the case, click the <guilabel>Calculate...</guilabel>
931 button next to the audio gain entry, and the dialogue box in <xref
932 linkend="fig-calculate-audio-gain"/> will open.
933 </para>
934
935 <figure id="fig-calculate-audio-gain"> 
936   <title>Calculating audio gain</title>
937   <mediaobject>
938     <imageobject> 
939       <imagedata fileref="screenshots/calculate-audio-gain&scs;"/>
940     </imageobject> 
941   </mediaobject>
942 </figure>
943
944 <para>
945 For our example, put 5 in the first box and 7 in the second and click
946 <guilabel>OK</guilabel>.  DCP-o-matic will calculate the audio gain
947 that it should apply to make this happen.  Then you can re-make the
948 DCP (this will be reasonably fast, as the video data will already have
949 been done) and it should play back at the correct volume with 7 on
950 your sound-rack fader.
951 </para>
952
953 <para>
954 Current versions of DCP-o-matic only know about the Dolby CP750.  If
955 you use a different sound processor, and know the gain curve of its
956 volume control, <ulink url="mailto:cth@carlh.net">get in
957 touch</ulink>.
958 </para>
959
960 <para>
961 <guilabel>Audio Delay</guilabel> is used to adjust the synchronisation
962 between audio and video.  A positive delay will move the audio later
963 with respect to the video, and a negative delay will move it earlier.
964 </para>
965
966 <para>
967 The <guilabel>Audio Stream</guilabel> option allows you to select the
968 audio stream to use, if the content contains more than one.  There
969 might be different soundtrack languages, for example.
970 </para>
971
972 <para>
973 The final section in the audio tab is the &lsquo;audio map&rsquo;.
974 This governs how sound from the content will be arranged in the DCP.
975 Our Sintel clip is in 5.1, so DCP-o-matic will default to assigning
976 each channel from the content to the appropriate DCP channel.  This
977 audio mapping is described in more detail later in the manual.
978  XXX: link 
979 </para>
980
981 </section>
982
983 <section>
984 <title>Subtitles tab</title>
985
986 <para>
987 This tab contains settings related to subtitles in your content, as shown in <xref linkend="fig-subtitles-tab"/>.
988 </para>
989
990 <figure id="fig-subtitles-tab"> 
991   <title>Subtitle settings tab</title>
992   <mediaobject>
993     <imageobject> 
994        XXX: subtitles tab 
995     </imageobject> 
996   </mediaobject>
997 </figure>
998
999 <para>
1000 DCP-o-matic will extract subtitles from the content, if present, and
1001 they can be &lsquo;burnt into&rsquo; the DCP (that is, they are
1002 included in the image and not overlaid by the projector).  Note that
1003 DVD and Blu-Ray subtitles are stored as bitmaps, so it is not possible
1004 (automatically) to use non-burnt-in subtitles with these sources.
1005 Select the <guilabel>With Subtitles</guilabel> checkbox to enable
1006 subtitles.  The <guilabel>offset</guilabel> control moves the
1007 subtitles up and down the image, and the <guilabel>scale</guilabel>
1008 control changes their size.
1009 </para>
1010
1011 <para>
1012 All being well, future versions of DCP-o-matic will include the option to
1013 use text subtitles (as is the norm with most professionally-mastered
1014 DCPs).
1015 </para>
1016
1017 </section>
1018 </section>
1019
1020 <section>
1021 <title>Setting up the DCP</title>
1022
1023 <para>
1024 Now that we have set up the content that will go into our DCP, we can
1025 set things up for the DCP itself.  This is done from the
1026 <guilabel>DCP</guilabel> tab which can be found at the top of the
1027 DCP-o-matic window (next to the <guilabel>Content</guilabel> tab).
1028 The DCP tab is shown in foo.
1029 </para>
1030
1031  XXX: DCP tab 
1032
1033 <para>
1034 The first thing here is the name.  This is generally set to the title
1035 of the film that is being encoded.  If <guilabel>Use DCI
1036 name</guilabel> is not ticked, the name that you specify will be used
1037 as-is for the name of the DCP.  If <guilabel>Use DCI name</guilabel>
1038 is ticked, the name that you enter will be used as part of a
1039 DCI-compliant name.  Set the name to something useful, like
1040 &lsquo;Sintel&rsquo;.
1041 </para>
1042
1043 <para>
1044 Underneath the name field is a preview of the name that the DCP will
1045 get.  To use a DCI-compliant name, tick the <guilabel>Use DCI
1046 name</guilabel> checkbox.  The DCI name will be composed using details
1047 of your content's soundtrack, the current date and other things that
1048 can be specified in the DCI name details dialogue box, which you can
1049 open by clicking on the <guilabel>Details</guilabel> button.
1050 </para>
1051
1052 <para>
1053 If the DCP name is long, it may not all be visible.  You can see the
1054 full name by hovering the mouse pointer over the partial name.
1055 </para>
1056
1057 <para>
1058 The <guilabel>Container</guilabel> option sets the ratio of the image
1059 in the DCP.  If this ratio is different to the ratio used for any
1060 content, DCP-o-matic will pad the content with black.  In simple cases
1061 this should be set to the same ratio as that for the the primary piece
1062 of video content.  Alternatively, you might want to pillarbox a small
1063 format into a Flat container: in this case, select the small format
1064 for the content's ratio and &lsquo;Flat&rsquo; for the DCP.
1065 </para>
1066
1067 <para>
1068 Next up is the content type.  This can be
1069 &lsquo;feature&rsquo;, &lsquo;trailer&rsquo; or whatever; select the
1070 required type from the drop-down list.
1071 </para>
1072
1073 <para>
1074 The <guilabel>Frame Rate</guilabel> control sets the frame rate of
1075 your DCP.  This can be a little tricky to get right.  Ideally, you
1076 want it to be the same as the video content that you are using.  If it
1077 is not the same, DCP-o-matic must resort to some tricks to alter your
1078 content to fit the specified frame rate.  Frame rates are discussed in more detail later.
1079  XXX: link 
1080 </para>
1081
1082 <para>
1083 The <guilabel>Use best</guilabel> button sets the DCP video frame rate
1084 to what DCP-o-matic thinks is the best given the content that you have
1085 added.
1086 </para>
1087
1088 <para>
1089 The <guilabel>Audio Channels</guilabel> control sets the number of
1090 audio channels that the DCP will have.  If the DCP has any channels
1091 for which there is no content audio they will be replaced by silence.
1092 </para>
1093
1094 <para>
1095 The <guilabel>3D</guilabel> button will set your DCP to 3D mode if it
1096 is checked.  This is discussed later.
1097  XXX: link 
1098 </para>
1099
1100 <para>
1101 The <guilabel>Resolution</guilabel> tab allows you to choose the
1102 resolution for your DCP.  Use 2K unless you have content that is of
1103 high enough resolution to be worth presenting in 4K.
1104 </para>
1105
1106 <para>
1107 The <guilabel>JPEG2000 bandwidth</guilabel>; setting changes how big the final
1108 image files used within the DCP will be.  Larger numbers will give
1109 better quality, but correspondingly larger DCPs.  The bandwidth can be
1110 between 50 and 250 megabits per second (MBps).
1111 </para>
1112
1113 <para>
1114 Finally, the <guilabel>scaler</guilabel> is the method that will be used to scale up
1115 your content to the required size for the DCP, if required.  We will
1116 discuss the options in more detail later; Bicubic is a fine choice in
1117 most situations.
1118  XXX: link 
1119 </para>
1120
1121 </section>
1122
1123
1124
1125 -->