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