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