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