Tidy up manual changes.
[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>Ubuntu Linux</title>
89
90 <para>
91 You can install DCP-o-matic on Ubuntu 12.04 (&lsquo;Precise
92 Pangolin&rsquo;), 12.10 (&lsquo;Quantal Quetzal&rsquo;) or 13.04
93 (&lsquo;Raring Ringtail&rsquo;) using <code>.deb</code> packages:
94 download the appropriate package from <ulink
95 url="http://dcpomatic.com">http://dcpomatic.com</ulink> and
96 double-click it.  Ubuntu will install the necessary bits and pieces
97 and set DCP-o-matic up for you.
98 </para>
99
100 </section>
101
102 <section>
103 <title>Other Linux distributions</title>
104
105 <para>
106 Installation on non-Ubuntu Linux is currently a little involved, as
107 there are no packages available (yet); you will have to compile it
108 from source.  If you are using a non-Ubuntu distribution, do let me
109 know via the <ulink url="mailto:dcpomatic@carlh.net">mailing
110 list</ulink> and I will see about building some packages.
111 </para>
112
113 <para>
114 The following dependencies are required:
115 <itemizedlist>
116 <listitem><ulink url="http://ffmpeg.org/">FFmpeg</ulink></listitem>
117 <listitem><ulink url="http://www.mega-nerd.com/libsndfile/">libsndfile</ulink></listitem>
118 <listitem><ulink url="http://www.openssl.org/">OpenSSL</ulink></listitem>
119 <listitem><ulink url="http://www.openjpeg.org/">libopenjpeg</ulink></listitem>
120 <listitem><ulink url="http://www.imagemagick.org/script/index.php">ImageMagick</ulink></listitem>
121 <listitem><ulink url="http://www.boost.org/">Boost</ulink></listitem>
122 <listitem><ulink url="http://www.libssh.org/">libssh</ulink></listitem>
123 <listitem><ulink url="http://www.gtk.org/">GTK</ulink></listitem>
124 <listitem><ulink url="http://www.wxwidgets.org/">wxWidgets</ulink></listitem>
125 <listitem><ulink url="http://carlh.net/software/libdcp/">libdcp</ulink></listitem>
126 </itemizedlist>
127 </para>
128
129 <para>
130 Once you have installed the development packages for the dependencies,
131 download the source code from <ulink
132 url="http://carlh.net/software/dcpomatic">http://carlh.net</ulink>,
133 unpack it and run the following commands from inside the source
134 directory:
135 </para>
136
137 <programlisting>
138 ./waf configure
139 ./waf build
140 sudo ./waf install
141 </programlisting>
142
143 <para>
144 With any luck, this will build and install DCP-o-matic on your system.  To run it, enter:
145 </para>
146
147 <programlisting>
148 dcpomatic
149 </programlisting>
150
151 <para>
152 in a shell.
153 </para>
154
155 </section>
156 </chapter>
157
158 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
159 <title>Creating a video DCP</title>
160
161 <para>
162 In this chapter we will see how to create a video DCP using
163 DCP-o-matic.  We will gloss over some of the finer details, which are
164 explained in later chapters.
165 </para>
166
167 <section>
168 <title>Creating a new film</title>
169
170 <para>
171 Let's make a very simple DCP to see how DCP-o-matic works.  First, we
172 need some content.  Download the low-resolution trailer for the open
173 movie <ulink url="http://sintel.org/">Sintel</ulink> from <ulink
174 url="http://ftp.nluug.nl/ftp/graphics/blender/apricot/trailer/Sintel_Trailer1.480p.DivX_Plus_HD.mkv">their
175 website</ulink>.  Generally, of course, one would want to use the
176 highest-resolution material available, but for this test we will use
177 the low-resolution version to save everyone's bandwidth bills.
178 </para>
179
180 <para>
181 Now, start DCP-o-matic and its window will open.  First, we will
182 create a new &lsquo;film&rsquo;.  A &lsquo;film&rsquo; is how DCP-o-matic refers to
183 a piece of content, along with some settings, which we will make into
184 a DCP.  DCP-o-matic stores its data in a folder on your disk while it
185 creates the DCP.  You can create a new film by selecting
186 <guilabel>New</guilabel> from the <guilabel>File</guilabel> menu, as
187 shown in <xref linkend="fig-file-new"/>.
188 </para>
189
190 <figure id="fig-file-new"> 
191   <title>Creating a new film</title> 
192   <mediaobject>
193     <imageobject> 
194       <imagedata fileref="screenshots/file-new&scs;"/>
195     </imageobject> 
196   </mediaobject>
197 </figure>
198
199 <para>
200 This will open a dialogue box for the new film, as shown in <xref
201 linkend="fig-video-new-film"/>.
202 </para>
203
204 <figure id="fig-video-new-film"> 
205   <title>Dialogue box for creating a new film</title> 
206   <mediaobject>
207     <imageobject> 
208       <imagedata fileref="screenshots/video-new-film&scs;"/>
209     </imageobject> 
210   </mediaobject>
211 </figure>
212
213 <para>
214 In this dialogue box you can choose a name for the film.  This will be
215 used to name the folder to store its data in, and also as the initial
216 name for the DCP itself.  You can also choose whereabouts you want to create
217 the film.  In the example from the figure, DCP-o-matic will create a
218 folder called &lsquo;DCP Test&rsquo; inside my home folder (carl) into which it
219 will write its working files.
220 </para>
221
222 <para>
223 If you always create your DCPs in a particular folder, you can use
224 DCP-o-matic's <guilabel>Preferences</guilabel> to make life a little
225 easier by setting the default folder that DCP-o-matic will offer in this dialogue.
226 See <xref linkend="ch-preferences"/>.
227 </para>
228
229 </section>
230
231 <section>
232 <title>Selecting content</title>
233
234 <para>
235 The next step is to set the content that you want to use.  Click the
236 content selector, as shown in <xref
237 linkend="fig-click-content-selector"/>, and a file chooser will
238 open for you to select the content file to use, as shown in <xref
239 linkend="fig-video-select-content-file"/>.
240 </para>
241
242 <figure id="fig-click-content-selector">
243   <title>Opening the content selector</title> 
244   <mediaobject>
245     <imageobject> 
246       <imagedata fileref="screenshots/click-content-selector&scs;"/>
247     </imageobject> 
248   </mediaobject>
249 </figure>
250
251 <figure id="fig-video-select-content-file"> 
252   <title>Selecting a video content file</title> 
253   <mediaobject>
254     <imageobject> 
255       <imagedata fileref="screenshots/video-select-content-file&scs;"/>
256     </imageobject> 
257   </mediaobject>
258 </figure>
259
260 <para>
261 Select your content file and click <guilabel>Open</guilabel>.  In this
262 case we are using the Sintel trailer that we downloaded earlier.
263 </para>
264
265 <para>
266 When you do this, DCP-o-matic will take a look at your file.  After a
267 short while (when the progress bar at the bottom right of the window
268 has finished), you can look through your content using the slider to
269 the right of the window, as shown in <xref linkend="fig-examine-thumbs"/>.
270 </para>
271
272 <figure id="fig-examine-thumbs"> 
273   <title>Examining the content</title>
274   <mediaobject>
275     <imageobject> 
276       <imagedata fileref="screenshots/examine-thumbs&scs;"/>
277     </imageobject> 
278   </mediaobject>
279 </figure>
280
281 <para>
282 Dragging the slider will move through your video.  You can also click
283 the <guilabel>Play</guilabel> button to play the content back.  Note
284 that there will be no sound, and playback might not be entirely
285 accurate (it may be slightly slower or faster than it should be, for
286 example).  This player is really only intended for brief inspection of
287 content; if you need to check it more thoroughly, use another player
288 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>.
289 </para>
290
291 </section>
292
293 <section>
294 <title>Setting up</title>
295
296 <para>
297 Now there are a few things to set up to describe how the DCP should be
298 created.  The settings are divided into four tabs: film, video, audio and subtitles.
299 </para>
300
301 <section>
302 <title>Film tab</title>
303
304 <para>
305 The &lsquo;film&rsquo; tab contains settings that pertain to the whole film, as shown in <xref linkend="fig-film-tab"/>.
306 </para>
307
308 <figure id="fig-film-tab"> 
309   <title>Film settings tab</title>
310   <mediaobject>
311     <imageobject> 
312       <imagedata fileref="screenshots/film-tab&scs;"/>
313     </imageobject> 
314   </mediaobject>
315 </figure>
316
317 <para>
318 The first thing here is the name.  This is generally set to the title
319 of the film that is being encoded.  If <guilabel>Use DCI
320 name</guilabel> is not ticked, the name that you specify will be used
321 as-is for the name of the DCP.  If <guilabel>Use DCI name</guilabel>
322 is ticked, the name that you enter will be used as part of a
323 DCI-compliant name.
324 </para>
325
326 <para>
327 Underneath the name field is a preview of the name that the DCP will
328 get.  To use a DCI-compliant name, tick the <guilabel>Use DCI
329 name</guilabel> checkbox.  The DCI name will be composed using details
330 of your content's soundtrack, the current date and other things that
331 can be specified in the DCI name details dialogue box, which you can
332 open by clicking on the <guilabel>Details</guilabel> button.
333 </para>
334
335 <para>
336 If the DCP name is long, it may not all be visible.  You can see the
337 full name by hovering the mouse pointer over the partial name.
338 </para>
339
340 <para>
341 The <guilabel>Trust content's header</guilabel> button starts off
342 checked, and this means that DCP-o-matic will use the content's header
343 information to determine its length.  If, for some reason, this header
344 length is wrong, uncheck the <guilabel>Trust content's
345 header</guilabel> button and DCP-o-matic will run through the content
346 to find its exact length.  This may take a while for large pieces of content.
347 </para>
348
349 <para>
350 Next up is the content type.  This can be
351 &lsquo;feature&rsquo;, &lsquo;trailer&rsquo; or whatever; select the
352 required type from the drop-down list.
353 </para>
354
355 <para>
356 The <guilabel>trim frames</guilabel> settings allow you to trim frames
357 from the beginning and end of the content; any trimmed frames will not
358 be included in the DCP.
359 </para>
360
361 </section>
362
363 <section>
364 <title>Video tab</title>
365
366 <para>
367 This tab contains settings related to the picture in your DCP, as shown in <xref linkend="fig-video-tab"/>.
368 </para>
369
370 <figure id="fig-video-tab"> 
371   <title>Video settings tab</title>
372   <mediaobject>
373     <imageobject> 
374       <imagedata fileref="screenshots/video-tab&scs;"/>
375     </imageobject> 
376   </mediaobject>
377 </figure>
378
379 <para>
380 The first option on this tab is the format.  This will govern the
381 shape that DCP-o-matic will make your image into.  Select the aspect
382 ratio that your content should be presented in.  The &lsquo;4:3 within
383 Flat&rsquo; and &lsquo;16:9 within Flat&rsquo; settings will put the
384 image at the specified ratio within a Flat (1.85:1) frame, so that you
385 can project the DCP using your projector's Flat preset.
386 </para>
387
388 <para>
389 The remaining options can often be left alone, but may sometimes be
390 useful.  The &lsquo;crop&rsquo; settings can be used to crop your
391 content, which can be used to remove black borders from round the
392 edges of DVD images, for example.  The specified number of pixels will
393 be trimmed from each edge, and the content image in the right of the
394 window will be updated to show the effect of the crop.
395 </para>
396
397 <para>
398 The &lsquo;filters&rsquo; settings allow you to apply various video
399 filters to the image.  These may be useful to try to improve
400 poor-quality sources like DVDs.  We will discuss filtering later in the manual.
401 <!-- XXX: link -->
402 </para>
403
404 <para>
405 The &lsquo;scaler&rsquo; is the method that will be used to scale up
406 your content to the required size for the DCP, if required.  We will
407 discuss the options in more detail later; Bicubic is a fine choice in
408 most situations.
409 <!-- XXX: link -->
410 </para>
411
412 <para>
413 The &lsquo;colour look-up table&rsquo; specifies the colour space that
414 your input content will be expected to be in.  If in doubt, leave it
415 set to &lsquo;sRGB&rsquo;.
416 </para>
417
418 <para>
419 Finally, the &lsquo;JPEG2000 bandwidth&rsquo; setting changes how big the final
420 image files used within the DCP will be.  Larger numbers will give
421 better quality, but correspondingly larger DCPs.  The bandwidth can be
422 between 50 and 250 megabits per second (MBps).
423 </para>
424
425 </section>
426
427 <section>
428 <title>Audio tab</title>
429
430 <para>
431 This tab contains settings related to the sound in your DCP, as shown in <xref linkend="fig-audio-tab"/>.
432 </para>
433
434 <figure id="fig-audio-tab"> 
435   <title>Audio settings tab</title>
436   <mediaobject>
437     <imageobject> 
438       <imagedata fileref="screenshots/audio-tab&scs;"/>
439     </imageobject> 
440   </mediaobject>
441 </figure>
442
443
444 <para>
445 &lsquo;Audio Gain&rsquo; is used to alter the volume of the
446 soundtrack.  The specified gain (in dB) will be applied to each sound
447 channel before it is written to the DCP.
448 </para>
449
450 <para>
451 If you use a sound processor that DCP-o-matic knows about, it can help
452 you calculate changes in gain that you should apply.  Say, for
453 example, that you make a test DCP and find that you have to run it at
454 volume 5 instead of volume 7 to get a good sound level in the screen.
455 If this is the case, click the <guilabel>Calculate...</guilabel>
456 button next to the audio gain entry, and the dialogue box in <xref
457 linkend="fig-calculate-audio-gain"/> will open.
458 </para>
459
460 <figure id="fig-calculate-audio-gain"> 
461   <title>Calculating audio gain</title>
462   <mediaobject>
463     <imageobject> 
464       <imagedata fileref="screenshots/calculate-audio-gain&scs;"/>
465     </imageobject> 
466   </mediaobject>
467 </figure>
468
469 <para>
470 For our example, put 5 in the first box and 7 in the second and click
471 <guilabel>OK</guilabel>.  DCP-o-matic will calculate the audio gain
472 that it should apply to make this happen.  Then you can re-make the
473 DCP (this will be reasonably fast, as the video data will already have
474 been done) and it should play back at the correct volume with 7 on
475 your sound-rack fader.
476 </para>
477
478 <para>
479 Current versions of DCP-o-matic only know about the Dolby CP750.  If
480 you use a different sound processor, and know the gain curve of its
481 volume control, <ulink url="mailto:cth@carlh.net">get in
482 touch</ulink>.
483 </para>
484
485 <para>
486 &lsquo;Audio Delay&rsquo; is used to adjust the synchronisation
487 between audio and video.  A positive delay will move the audio later
488 with respect to the video, and a negative delay will move it earlier.
489 </para>
490
491 <para>
492 By default the <guilabel>Use content&lsquo;s audio</guilabel> button
493 will be selected.  This means that the DCP will use one of the
494 soundtracks from your content file; you can select the soundtrack that
495 you wish to use from the drop-down box.
496 </para>
497
498 <para>
499 Note that if your content's audio is mono, DCP-o-matic will place it
500 in the centre channel in the DCP.
501 </para>
502
503 <para>
504 Alternatively, you can supply different sound files by clicking the
505 <guilabel>Use external audio</guilabel> button and choosing a WAV file
506 for any channels that you want to appear in the DCP.  These files can
507 be any bit depth and sampling rate, and will be re-sampled and
508 bit-depth converted if required.
509 </para>
510
511 </section>
512 <section>
513 <title>Subtitles tab</title>
514
515 <para>
516 This tab contains settings related to subtitles in your DCP, as shown in <xref linkend="fig-subtitles-tab"/>.
517 </para>
518
519 <figure id="fig-subtitles-tab"> 
520   <title>Subtitle settings tab</title>
521   <mediaobject>
522     <imageobject> 
523       <imagedata fileref="screenshots/subtitles-tab&scs;"/>
524     </imageobject> 
525   </mediaobject>
526 </figure>
527
528 <para>
529 DCP-o-matic will extract subtitles from the content, if present, and
530 they can be &lsquo;burnt into&rsquo; the DCP (that is, they are
531 included in the image and not overlaid by the projector).  Note that
532 DVD and Blu-Ray subtitles are stored as bitmaps, so it is not possible
533 (automatically) to use non-burnt-in subtitles with these sources.
534 Select the <guilabel>With Subtitles</guilabel> checkbox to enable
535 subtitles.  The <guilabel>offset</guilabel> control moves the
536 subtitles up and down the image, and the <guilabel>scale</guilabel>
537 control changes their size.
538 </para>
539
540 <para>
541 Future versions of DCP-o-matic will hopefully include the option to
542 use text subtitles (as is the norm with most professionally-mastered
543 DCPs).
544 </para>
545
546 </section>
547 </section>
548
549 <section>
550 <title>Making the DCP</title>
551
552 <para>
553 Now that we have set everything up, choose <guilabel>Make
554 DCP</guilabel> from the <guilabel>Jobs</guilabel> menu.  DCP-o-matic
555 will encode your DCP.  This may take some time (many hours in some
556 cases).  While the job is in progress, DCP-o-matic will update you on
557 how it is getting on with the progress bar in the bottom of its window, as shown in <xref linkend="fig-making-dcp"/>.
558 </para>
559
560 <figure id="fig-making-dcp">
561   <title>Making the DCP</title>
562   <mediaobject>
563     <imageobject> 
564       <imagedata fileref="screenshots/making-dcp&scs;"/>
565     </imageobject> 
566   </mediaobject>
567 </figure>
568
569 <para>
570 When it has finished, the DCP will end up on your disk inside the
571 film's folder.  You can then copy this to a projector via a USB
572 stick, hard-drive or network connection.  See <xref
573 linkend="ch-files"/> for details about the files that DVD-o-matic creates.
574 </para>
575
576 <para>
577 Alternatively, if you have a projector or TMS that is accessible via
578 SCP across your network, you can upload the content directly from
579 DCP-o-matic.  See <xref linkend="sec-tms-upload"/>.
580 </para>
581
582 </section>
583 </chapter>
584
585
586 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
587 <title>Creating a still-image DCP</title>
588
589 <para>
590 DCP-o-matic can also be used to create DCPs of a still image, perhaps
591 for an advertisement or an on-screen announcement.  This chapter shows you
592 how to do it.
593 </para>
594
595 <para>
596 As with video DCPs, the first step is to create a new
597 &lsquo;Film&rsquo;; select <guilabel>New</guilabel> from the
598 <guilabel>File</guilabel> menu and the new film dialogue will open as
599 shown in <xref linkend="fig-still-new-film"/>.
600 </para>
601
602 <figure id="fig-still-new-film"> 
603   <title>Dialogue box for creating a new film</title> 
604   <mediaobject>
605     <imageobject> 
606       <imagedata fileref="screenshots/still-new-film&scs;"/>
607     </imageobject> 
608   </mediaobject>
609 </figure>
610
611 <para>
612 Enter a name and click <guilabel>OK</guilabel>.  Then we set up the
613 content; click the content selector as before, and this time we will
614 choose an image file, as shown in <xref
615 linkend="fig-still-select-content-file"/>.
616 </para>
617
618 <figure id="fig-still-select-content-file"> 
619   <title>Selecting a still content file</title> 
620   <mediaobject>
621     <imageobject> 
622       <imagedata fileref="screenshots/still-select-content-file&scs;"/>
623     </imageobject> 
624   </mediaobject>
625 </figure>
626
627 <para>
628 Setting up for a still image DCP is somewhat simpler than for a video;
629 the tabs are all the same, but many options are removed and a few are added.
630 </para>
631
632 <para>
633 As with video, you can select a content type and the format (ratio)
634 that your image should be presented in.  It will be scaled and padded
635 to fit the selected ratio, but in such a way that the pixel aspect
636 ratio is preserved.  In other words, the image will not be stretched,
637 merely scaled; if you want to stretch your image, you will need to do
638 so in a separate program before importing it into DCP-o-matic.  You
639 can also crop your image, if you so choose, and then set a duration
640 (in seconds) that the image should appear on screen.
641 </para>
642
643 <para>
644 Still-image DCPs can include sound; this can be added from the
645 <guilabel>Audio</guilabel> tab.  If your specified duration is shorter
646 than the audio, the audio will be cut off at the duration; if it is
647 longer, silence will be added after your audio.
648 </para>
649
650 <para>
651 Finally, as with video, you can choose <guilabel>Make DCP</guilabel>
652 from the <guilabel>Jobs</guilabel> menu to create your DCP.  This will
653 be much quicker than creating a video DCP, as DCP-o-matic only needs
654 to encode a single frame which it can then repeat.
655 </para>
656
657 </chapter>
658
659
660 <chapter xml:id="ch-preferences" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
661 <title>Preferences</title>
662
663 <para>
664 DCP-o-matic provides a few preferences which can be used to modify its
665 behaviour.  This chapter explains those options.
666 </para>
667
668 <section>
669 <title>The preferences dialogue</title>
670
671 <para>
672 The preferences dialogue is opened by choosing
673 <guilabel>Preferences...</guilabel> from the <guilabel>Edit</guilabel>
674 menu.  The dialogue is shown in <xref linkend="fig-prefs"/>.
675 </para>
676
677 <figure id="fig-prefs"> 
678   <title>Preferences</title> 
679   <mediaobject>
680     <imageobject> 
681       <imagedata fileref="screenshots/prefs&scs;"/>
682     </imageobject> 
683   </mediaobject>
684 </figure>
685
686 <section>
687 <title>TMS setup</title>
688
689 <para>
690 The first part of the dialogue gives some options for specifying
691 details about your TMS.  If you do this, and your TMS accepts SSH
692 connections, you can upload DCPs directly from DCP-o-matic to the TMS.
693 This is discussed in <xref linkend="sec-tms-upload"/>.
694 </para>
695
696 <para>
697 <guilabel>TMS IP address</guilabel> should be set to the IP address of
698 your TMS, <guilabel>TMS target path</guilabel> to the place that DCPs
699 should be uploaded to (which will be relative to the home directory of
700 the SSH user).  Finally, the user name and password are the
701 credentials required to log into the TMS via SSH.
702 </para>
703 </section>
704
705 <section>
706 <title>Threads</title>
707
708 <para>
709 When DCP-o-matic is encoding DCPs it can use multiple parallel threads
710 to speed things up.  Set this value to the number of threads
711 DCP-o-matic should use.  This would typically be set to the number of
712 processors (or processor cores) in your machine.
713 </para>
714
715 </section>
716
717 <section>
718 <title>Default directory for new films</title>
719
720 <para>
721 This is the directory (folder) which DCP-o-matic will suggest initially as a place to put new films.
722 </para>
723
724 </section>
725
726 <section>
727 <title>A/B options</title>
728
729 <para>
730 These options are for DCP-o-matic's special mode of making A/B
731 comparison DCPs for checking the performance of video filters.  Their
732 use is described in <xref linkend="sec-ab"/>.
733 </para>
734
735 </section>
736
737 <section>
738 <title>Encoding servers</title>
739
740 <para>
741 If you have spare machines sitting around on your network not doing
742 much, they can be pressed into service to speed up DCP encodes.  This
743 is done by running a small server program on the machine, which will
744 encode video sent to it by the &lsquo;master&rsquo; DCP-o-matic.  This
745 option is described in more detail in <xref linkend="sec-servers"/>.
746 Use these preferences to specify the encoding servers that should be
747 used.
748 </para>
749
750 </section>
751
752 </section>
753 </chapter>
754
755 <chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
756 <title>Advanced topics</title>
757
758 <para>This chapter describes some parts of DCP-o-matic that are
759 probably not essential, but which you might find useful in some
760 circumstances.
761 </para>
762
763 <section>
764 <title>Filtering</title>
765
766 <para>
767 DCP-o-matic offers a variety of filters that can be applied to your
768 video content.  You can set up the filters by clicking the
769 <guilabel>Edit</guilabel> button next to the filters entry in the
770 setup area of the DCP-o-matic window; this opens the filters selector
771 as shown in <xref linkend="fig-filters"/>.
772 </para>
773
774 <figure id="fig-filters"> 
775   <title>Filters selector</title> 
776   <mediaobject>
777     <imageobject> 
778       <imagedata fileref="screenshots/filters&scs;"/>
779     </imageobject> 
780   </mediaobject>
781 </figure>
782
783 <para>
784 After changing the filters setup, you will need to regenerate the DCP
785 to see the effect on the cinema screen.  The preview in DCP-o-matic
786 will update itself whenever filters are changed, though of course this
787 image is much smaller and of lower resolution than a projected image!
788 </para>
789
790 </section>
791
792 <section>
793 <title>Scaling</title>
794
795 <para>
796 If your source material is not of the DCI-specified size, or if it
797 uses non-square pixels, DCP-o-matic will need to scale it.  The
798 algorithm used to scale is set up by the <guilabel>Scaler</guilabel>
799 entry in the film setup area.  We think &lsquo;Bicubic&rsquo; is the
800 best all-round option, but tests are ongoing.
801 </para>
802
803 </section>
804
805 <section xml:id="sec-tms-upload">
806 <title>TMS upload</title>
807
808 <para>
809 If you have configured details of a TMS in the preferences dialogue
810 (<xref linkend="ch-preferences"/>) you can upload a completed DCP
811 straight to your TMS buy choosing <guilabel>Send DCP to TMS</guilabel>
812 from the <guilabel>Jobs</guilabel> menu.
813 </para>
814
815 </section>
816
817
818 <section xml:id="sec-ab">
819 <title>A/B comparison</title>
820
821 <para>
822 When evaluating the effects of different filters or scalers on the
823 image quality, A/B mode might be useful.  In this mode, DCP-o-matic
824 will generate a DCP where the left half of the image uses some
825 &lsquo;reference&rsquo; filtering and scaling, and the right half of
826 the image uses a different set of filters and a different scaler.
827 This DCP can then be played back on a projector and the image quality
828 evaluated.
829 </para>
830
831 <para>
832 To enable A/B mode, click the A/B checkbox in the setup area of the
833 DCP-o-matic window.  When you generate your DCP, the left half of the
834 screen will use the filters and scaler specified in the <xref
835 linkend="ch-preferences">preferences</xref> dialogue, and the right
836 half will use the filters and scaler specified in the film setup.
837 </para>
838
839 </section>
840
841 <section xml:id="sec-servers">
842 <title>Encoding servers</title>
843
844 <para>
845 One way to increase the speed of DCP encoding is to use more
846 than one machine at the same time.  An instance of DCP-o-matic can
847 offload some of the time-consuming JPEG2000 encoding to any number of
848 other machines on a network.  To do this, one &lsquo;master&rsquo;
849 machine runs DCP-o-matic, and the &lsquo;server&rsquo; machines run
850 a small program called &lsquo;servomatic&rsquo;.
851 </para>
852
853 <section>
854 <title>Running the servers</title>
855
856 <para>
857 There are two options for the encoding server;
858 <code>servomatic_cli</code>, which runs on the command line, and
859 <code>servomatic_gui</code>, which has a simple GUI.  The command line
860 version is well-suited to headless servers, especially on Linux, and
861 the GUI version works best on Windows where it will put an icon in the
862 system tray.
863 </para>
864
865 <para>
866 To run the command line version, simply enter:
867 </para>
868
869 <programlisting>
870 servomatic_cli
871 </programlisting>
872
873 <para>
874 at a command prompt.  If you are running the program on a machine with
875 a multi-core processor, you can run multiple parallel encoding threads
876 by doing something like:
877 </para>
878
879 <programlisting>
880 servomatic_cli -t 4
881 </programlisting>
882
883 <para>
884 to run 4 threads in parallel.
885 </para>
886
887 <para>
888 To run the GUI version on windows, run the &lsquo;DCP-o-matic encode
889 server&rsquo; from the start menu.  An icon will appear in the system
890 tray; right-click it to open a menu from whence you can quit the
891 server or open a window to show its status.
892 </para>
893
894 </section>
895 <section>
896 <title>Setting up DCP-o-matic</title>
897
898 <para>
899 Once your servers are running, you need to tell your master
900 DCP-o-matic instance about them.  Start DCP-o-matic and open the
901 <guilabel>Preferences</guilabel> dialog from the
902 <guilabel>Edit</guilabel> menu.  At the bottom of this dialog is a
903 section where you can add, edit and remove encoding servers.  For each
904 encoding server you need only specify its IP address and the number of
905 threads that it is running, so that DCP-o-matic knows how many
906 parallel encode jobs to send to the server.
907 </para>
908
909 <para>
910 Once this is done, any encodes that you start will split the workload
911 up between the master machine and the servers.
912 </para>
913
914 </section>
915 <section>
916 <title>Some notes about encode servers</title>
917
918 <para>
919 DCP-o-matic does not mind if servers come and go; if a server
920 disappears, DCP-o-matic will stop sending work to it, and will check
921 it every minute or so in case it has come back online.
922 </para>
923
924 <para>
925 You will probably find that using a 1Gb/s or faster network will
926 provide a significant speed-up compared to a 100Mb/s network.
927 </para>
928
929 <para>
930 Making changes to the server configuration in the master DCP-o-matic
931 will have no effect while an encode is running; the changes will only
932 be noticed when a new encode is started.
933 </para>
934
935 </section>
936 </section>
937
938 </chapter>
939
940 <chapter xml:id="ch-files" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
941 <title>Generated files</title>
942
943 <para>
944 DCP-o-matic generates a number of files as it makes a DCP.  <xref
945 linkend="fig-file-structure"/> shows the files that might be generated
946 after you have created a DCP for a film called &lsquo;DCP Test&rsquo;.
947 </para>
948
949 <figure id="fig-file-structure"> 
950   <title>Creating a new film</title> 
951   <mediaobject>
952     <imageobject> 
953       <imagedata fileref="diagrams/file-structure&dia;"/>
954     </imageobject> 
955   </mediaobject>
956 </figure>
957
958 <para>
959 The <code>DCP Test</code> folder is the one that you specify when you
960 select the <guilabel>New Film</guilabel> option from DCP-o-matic's
961 menu.  Everything is stored inside this folder.
962 </para>
963
964 <para>
965 DCP-o-matic generates some working files as it goes along.  These are as follows:
966 <itemizedlist>
967
968 <listitem><code>log</code> is a list of notes that DCP-o-matic makes as it goes
969 along.  This can be useful for debugging purposes if something goes
970 wrong.</listitem>
971
972 <listitem><code>metadata</code> stores the settings that you have made
973 for this film: things like cropping, output format and so on.</listitem>
974
975 <listitem><code>video</code> is where DCP-o-matic writes the DCP's
976 video data as it encodes it.</listitem>
977
978 <listitem><code>analysis</code> is used to keep the results of audio analysis runs.</listitem>
979
980 <listitem><code>info</code> contains details of each video frame that
981 DCP-o-matic has written so far.  This is used when an encoding
982 operation is interrupted and DCP-o-matic must resume it.</listitem>
983 </itemizedlist>
984 </para>
985
986 <para>
987 Following this is the DCP itself:
988 <code>DCP-TEST_EN-XX_UK-U_51_2K_CSY_20130218_CSY_OV</code>.  This
989 contains some small XML files, which describe the DCP, and two large
990 MXF files, which contain the DCP's audio and video data.  This folder
991 (<code>DCP-TEST_EN-XX_...</code>) is what you should ingest, or pass
992 to the cinema which is showing your DCP.
993 </para>
994
995 </chapter>
996
997
998 </book>