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