annotate DOCS/xml/en/cd-dvd.xml @ 10656:dc8057623941

sync with man page, 'remove dvdnav stuff, it does not work anyway'
author nauj27
date Mon, 18 Aug 2003 10:55:40 +0000
parents 9ad3a27284d9
children eb339c10228e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1 <?xml version="1.0" encoding="iso-8859-1"?>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
2 <chapter id="cd-dvd">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
3 <title>CD/DVD usage</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
4
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
5 <sect1 id="drives">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
6 <title>CD/DVD drives</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
7 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
8 Linux documentation excerpt:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
9 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
10
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
11 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
12 Modern CD-ROM drives can attain very high head speeds, yet some CD-ROM drives
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
13 are capable of running at reduced speeds. There are several reasons that might
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
14 make you consider changing the speed of a CD-ROM drive:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
15 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
16
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
17 <itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
18 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
19 There have been reports of read errors at high speeds, especially
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
20 with badly pressed CD-ROMs. Reducing the speed can prevent data loss under
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
21 these circumstances.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
22 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
23
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
24 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
25 Many CD-ROM drives are annoyingly loud, a lower speed may reduce the noise.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
26 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
27 </itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
28
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
29 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
30 You can reduce the speed of IDE CD-ROM drives with <command>hdparm</command> or a
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
31 program called <command>setcd</command>. It works like this:
9776
861a40949bf3 fixes, some by Dmitry Baryshkov <lumag@qnc.ru>, some by me
nicolas
parents: 9675
diff changeset
32 <screen>hdparm -E <replaceable>[speed]</replaceable> <replaceable>[cdrom device]</replaceable></screen>
861a40949bf3 fixes, some by Dmitry Baryshkov <lumag@qnc.ru>, some by me
nicolas
parents: 9675
diff changeset
33 <screen>setcd -x <replaceable>[speed]</replaceable> <replaceable>[cdrom device]</replaceable></screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
34 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
35
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
36 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
37 You can also try
9776
861a40949bf3 fixes, some by Dmitry Baryshkov <lumag@qnc.ru>, some by me
nicolas
parents: 9675
diff changeset
38 <screen>echo current_speed:4 &gt; /proc/ide/<replaceable>[cdrom device]</replaceable>/settings</screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
39 but you will need root privileges. The following command may also help:
9776
861a40949bf3 fixes, some by Dmitry Baryshkov <lumag@qnc.ru>, some by me
nicolas
parents: 9675
diff changeset
40 <screen>echo file_readahead:2000000 &gt; /proc/ide/<replaceable>[cdrom device]</replaceable>/settings</screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
41 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
42
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
43 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
44 This sets prefetched file reading to 2MB, which helps with scratched CD-ROMs.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
45 If you set it to too high, the drive will continuously spin up and down, and
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
46 will dramatically decrease the performance.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
47 It is recommended that you also tune your CD-ROM drive with <command>hdparm</command>:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
48 <screen>hdparm -d1 -a8 -u1 <replaceable>cdrom device</replaceable></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
49 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
50
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
51 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
52 This enables DMA access, read-ahead, and IRQ unmasking (read the <command>hdparm</command>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
53 man page for a detailed explanation).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
54 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
55
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
56 <para>
9776
861a40949bf3 fixes, some by Dmitry Baryshkov <lumag@qnc.ru>, some by me
nicolas
parents: 9675
diff changeset
57 Please refer to &quot;<filename>/proc/ide/<replaceable>cdrom device</replaceable>/settings&quot;</filename>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
58 for fine-tuning your CD-ROM.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
59 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
60
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
61 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
62 SCSI drives do not have a uniform way of setting these parameters (Do you know one?
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
63 Tell us!) There is a tool that works for
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
64 <ulink url="http://das.ist.org/~georg/">Plextor SCSI drives</ulink>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
65 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
66
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
67 <para>FreeBSD:</para>
9776
861a40949bf3 fixes, some by Dmitry Baryshkov <lumag@qnc.ru>, some by me
nicolas
parents: 9675
diff changeset
68 <para>Speed: <command>cdcontrol [-f <replaceable>device</replaceable>] speed <replaceable>speed</replaceable></command></para>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
69 <para>DMA: <command>sysctl hw.ata.atapi_dma=1</command></para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
70 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
71
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
72 <sect1 id="dvd">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
73 <title>DVD playback</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
74 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
75 For the complete list of available options, please read the man page.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
76 The Syntax for a standard Digital Versatile Disc (DVD) is as follows:
10184
b6c63ab184a4 Changed a few remaining -dvd and -vcd options to dvd:// and vcd://.
diego
parents: 9776
diff changeset
77 <screen>mplayer dvd://<replaceable>&lt;track&gt;</replaceable> [-dvd-device <replaceable>&lt;device&gt;</replaceable>]</screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
78 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
79
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
80 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
81 Example:
10184
b6c63ab184a4 Changed a few remaining -dvd and -vcd options to dvd:// and vcd://.
diego
parents: 9776
diff changeset
82 <screen>mplayer dvd://1 -dvd-device /dev/hdc</screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
83 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
84
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
85 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
86 The default DVD device is <filename>/dev/dvd</filename>. If your setup
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
87 differs, make a symlink or specify the correct device on the command
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
88 line with the <option>-dvd-device</option> option.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
89 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
90
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
91 <formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
92 <title>New-style DVD support (mpdvdkit2)</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
93 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
94 <application>MPlayer</application> uses <systemitem>libdvdread</systemitem> and
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
95 <systemitem>libdvdcss</systemitem> for DVD decryption and playback. These two
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
96 libraries are contained in the <filename class="directory">libmpdvdkit2/</filename>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
97 subdirectory of the MPlayer source tree, you do not have to install them separately.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
98 We opted for this solution because we had to fix a <systemitem>libdvdread</systemitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
99 bug and apply a patch which adds
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
100 <emphasis role="bold">cracked CSS keys caching support</emphasis> to
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
101 <systemitem>libdvdcss</systemitem> This results in a large speed increase because the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
102 keys do not have to be cracked every time before playing.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
103 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
104 </formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
105
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
106 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
107 <application>MPlayer</application> can also use system-wide <systemitem>libdvdread</systemitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
108 and <systemitem>libdvdcss</systemitem> libraries, but this solution is
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
109 <emphasis role="bold">not</emphasis> recommended, as it can result in bugs,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
110 library incompatibilities and slower speed.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
111 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
112
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
113 <formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
114 <title>Old-style DVD support - OPTIONAL</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
115 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
116 Useful if you want to play encoded VOBs from <emphasis role="bold">hard disk</emphasis>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
117 Compile and install <emphasis role="bold">libcss</emphasis> 0.0.1 (not newer) for this
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
118 (If MPlayer fails to detect it, use the <option>-csslib /path/to/libcss.so</option>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
119 option). To use it, you need to be root, use a suid root MPlayer binary or let
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
120 MPlayer call the suid-root fibmap_mplayer wrapper program.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
121 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
122 </formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
123
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
124 <formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
125 <title>DVD structure</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
126 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
127 DVD disks have 2048 bytes per sector with ECC/CRC. They usually have an UDF
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
128 filesystem on a single track, containing various files (small .IFO and .BUK
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
129 files and big (1GB) .VOB files). They are real files and can be copied/played
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
130 from the mounted filesystem of an unencrypted DVD.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
131 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
132 </formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
133
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
134 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
135 The .IFO files contain the movie navigation information (chapter/title/angle
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
136 map, language table, etc) and are needed to read and interpret the .VOB content
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
137 (movie). The .BUK files are backups of them. They use
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
138 <emphasis role="bold">sectors</emphasis> everywhere, so you need to use raw
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
139 addressing of sectors of the disc to implement DVD navigation or decrypt the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
140 content.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
141 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
142
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
143 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
144 The whole old-style DVD support with <systemitem>libcss</systemitem> therefore
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
145 needs a mounted DVD filesystem and raw sector-based access to the device.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
146 Unfortunately you must (under Linux) be root to get the sector address of a
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
147 file. You have the following choices:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
148
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
149 <itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
150 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
151 Be root or use a suid-root <application>MPlayer</application> binary.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
152 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
153
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
154 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
155 Let <application>MPlayer</application> call the suid-root fibmap_mplayer
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
156 wrapper program to access the DVD (used in the old-style DVD playback over
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
157 <systemitem>libcss</systemitem>).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
158 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
159
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
160 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
161 Don't use the kernel's filesystem driver at all and reimplement it in
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
162 userspace. <systemitem>libdvdread</systemitem> 0.9.x and <systemitem>libmpdvdkit</systemitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
163 do this (new-style DVD support). The kernel UDF filesystem driver is not
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
164 needed as they already have their own builtin UDF filesystem driver.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
165 Also the DVD does not have to be mounted as only the raw sector-based
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
166 access is used.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
167 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
168 </itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
169 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
170
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
171 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
172 Sometimes <filename>/dev/dvd</filename> cannot be read by users, so the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
173 <systemitem>libdvdread</systemitem> authors implemented an emulation layer
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
174 which transfers sector addresses to filenames+offsets, to emulate raw
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
175 access on top of a mounted filesystem or even on a hard disk.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
176 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
177
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
178 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
179 <systemitem>libdvdread</systemitem> even accepts the mountpoint instead of
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
180 the device name for raw access and checks <filename>/proc/mounts</filename>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
181 to get the device name. It was developed for Solaris, where device names
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
182 are dynamically allocated.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
183 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
184
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
185 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
186 The default DVD device is <filename>/dev/dvd</filename>. If your setup differs,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
187 make a symlink, or specify the correct device on the command line with the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
188 <option>-dvd-device</option> option.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
189 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
190
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
191 <formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
192 <title>DVD authentication</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
193 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
194 The authentication and decryption method of the new-style DVD support is done
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
195 using a patched <systemitem>libdvdcss</systemitem> (see above). The method can
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
196 be specified through the environment variable <envar>DVDCSS_METHOD</envar>,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
197 which can be set to key, disk or title.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
198 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
199 </formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
200
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
201 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
202 If nothing is specified it tries the following methods (default: key,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
203 title request):
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
204 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
205
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
206 <orderedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
207 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
208 <emphasis role="bold">bus key</emphasis>: This key is negotiated during
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
209 authentication (a long mix of ioctls and various key exchanges, crypto
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
210 stuff) and is used to encrypt the title and disk keys before sending them
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
211 over the unprotected bus (to prevent eavesdropping). The bus key is needed
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
212 to get and predecrypt the crypted disk key.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
213 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
214
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
215 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
216 <emphasis role="bold">cached key</emphasis>: <application>MPlayer</application>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
217 looks for already cracked title keys which are stored in the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
218 <filename class="directory">~/.mplayer/DVDKeys</filename> directory (fast ;).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
219 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
220
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
221 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
222 <emphasis role="bold">key</emphasis>: If no cached key is available,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
223 <application>MPlayer</application> tries to decrypt the disk key with a set
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
224 of included player keys.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
225 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
226
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
227 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
228 <emphasis role="bold">disk</emphasis>: If the key method fails
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
229 (e.g. no included player keys), <application>MPlayer</application>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
230 will crack the disk key using a brute force algorithm. This process
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
231 is CPU intensive and requires 64 MB of memory (16M 32Bit entries hash
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
232 table) to store temporary data. This method should always work (slow).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
233 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
234
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
235 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
236 <emphasis role="bold">title request</emphasis>: With the disk key
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
237 <application>MPlayer</application> requests the crypted title keys,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
238 which are inside <emphasis>hidden sectors</emphasis> using <systemitem>ioctl()</systemitem>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
239 The region protection of RPC-2 drives is performed in this step and may fail on such drives.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
240 If it succeeds, the title keys will be decrypted with the bus and disk key.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
241 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
242
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
243 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
244 <emphasis role="bold">title</emphasis>: This method is used if the title
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
245 request failed and does not rely on any key exchange with the DVD drive.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
246 It uses a crypto attack to guess the title key directly (by finding a
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
247 repeating pattern in the decrypted VOB content and guessing that the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
248 plain text corresponding to the first encrypted bytes is a continuation
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
249 of that pattern). The method is also known as &quot;known plaintext attack&quot;
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
250 or &quot;DeCSSPlus&quot;. In rare cases this may fail because there is not
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
251 enough encrypted data on the disk to perform a statistical attack or because
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
252 the key changes in the middle of a title. This method is the only way to
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
253 decrypt a DVD stored on a hard disk or a DVD with the wrong region on an
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
254 RPC2 drive (slow).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
255 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
256 </orderedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
257
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
258 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
259 RPC-1 DVD drives only protect region settings through software. RPC-2 drives
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
260 have a hardware protection that allows 5 changes only. It might be
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
261 needed/recommended to upgrade the firmware to RPC-1 if you have a RPC-2 DVD
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
262 drive. Firmware upgrades can be found on this
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
263 <ulink url="http://www.firmware-flash.com">firmware page</ulink>. If there is
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
264 no firmware upgrade available for your device, use the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
265 <ulink url="http://www.linuxtv.org/download/dvd/dvd_disc_20000215.tar.gz">regionset tool</ulink>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
266 to set the region code of your DVD drive (under Linux).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
267 <emphasis role="bold">Warning</emphasis>: You can only set the region 5 times.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
268 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
269 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
270
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
271 <sect1 id="vcd">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
272 <title>VCD playback</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
273 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
274 For the complete list of available options, please read the man page. The Syntax for a
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
275 standard Video CD (VCD) is as follows:
10203
9ad3a27284d9 -cdrom-device is optional
nicolas
parents: 10184
diff changeset
276 <screen>mplayer vcd://<replaceable>&lt;track&gt;</replaceable> [-cdrom-device <replaceable>&lt;device&gt;</replaceable>]</screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
277 Example:
10184
b6c63ab184a4 Changed a few remaining -dvd and -vcd options to dvd:// and vcd://.
diego
parents: 9776
diff changeset
278 <screen>mplayer vcd://2 -cdrom-device /dev/hdc</screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
279 The default VCD device is <filename>/dev/cdrom</filename>. If your setup
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
280 differs, make a symlink or specify the correct device on the command line
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
281 with the <option>-cdrom-device</option> option.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
282 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
283
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
284 <note><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
285 At least Plextor and some Toshiba SCSI CD-ROM drives have horrible performance
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
286 reading VCDs. This is because the the CDROMREADRAW <systemitem>ioctl</systemitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
287 is not fully implemented for these drives. If you have some knowledge of SCSI
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
288 programming, please <ulink url="../../tech/patches.txt">help us</ulink>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
289 implement generic SCSI support for VCDs.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
290 </para></note>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
291
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
292 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
293 In the meantime you can extract data from VCDs with
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
294 <ulink url="http://140.132.1.204/OS/Linux/packages/X/viewers/readvcd/">readvcd</ulink>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
295 and play the resulting file with <application>MPlayer</application>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
296 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
297
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
298 <formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
299 <title>VCD structure</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
300 <para>VCD disks consist of one or more tracks:</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
301 </formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
302
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
303 <itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
304 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
305 The first track is a small 2048 bytes/sector data track with an iso9660
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
306 filesystem, usually containing Windows VCD player programs and maybe other
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
307 information (images, text, etc).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
308 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
309
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
310 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
311 The second and other tracks are raw 2324 bytes/sector MPEG (movie)
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
312 tracks, containing one MPEG PS data packet per sector instead of a
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
313 filesystem. Similar to audio CD tracks, these tracks <emphasis role="bold">cannot
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
314 be mounted</emphasis> (Did you ever mount an audio CD to play it?).
10184
b6c63ab184a4 Changed a few remaining -dvd and -vcd options to dvd:// and vcd://.
diego
parents: 9776
diff changeset
315 As most movies are inside this track, you should try <option>vcd://2</option> first.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
316 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
317
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
318 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
319 There exist VCD disks without the first track (single track and no filesystem
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
320 at all). They are still playable, but cannot be mounted.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
321 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
322 </itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
323
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
324 <formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
325 <title>About .DAT files</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
326 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
327 The ~600 MB file visible on the first track of the mounted VCD is not a real
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
328 file! It is a so called ISO gateway, created to allow Windows to handle such
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
329 tracks (Windows does not allow raw device access to applications at all).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
330 Under Linux you cannot copy or play such files (they contain garbage). Under
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
331 Windows it is possible as its iso9660 driver emulates the raw reading of
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
332 tracks in this file. To play a .DAT file you need the kernel driver which can
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
333 be found in the Linux version of PowerDVD. It has a modified iso9660 filesystem
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
334 (<filename>vcdfs/isofs-2.4.X.o</filename>) driver, which is able to emulate the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
335 raw tracks through this shadow .DAT file. If you mount the disc using their
9776
861a40949bf3 fixes, some by Dmitry Baryshkov <lumag@qnc.ru>, some by me
nicolas
parents: 9675
diff changeset
336 driver, you can copy and even play .DAT files with <application>MPlayer</application>. But it will not
10184
b6c63ab184a4 Changed a few remaining -dvd and -vcd options to dvd:// and vcd://.
diego
parents: 9776
diff changeset
337 work with the standard iso9660 driver of the Linux kernel! Use
b6c63ab184a4 Changed a few remaining -dvd and -vcd options to dvd:// and vcd://.
diego
parents: 9776
diff changeset
338 <option>vcd://</option> instead. Alternatives for VCD copying are the
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
339 new <ulink url="http://www.elis.rug.ac.be/~ronsse/cdfs/">cdfs</ulink> kernel
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
340 driver (not part of the official kernel) that shows CD sessions as image files and
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
341 <ulink url="http://cdrdao.sourceforge.net/">cdrdao</ulink>, a bit-by-bit
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
342 CD grabbing/copying application.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
343 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
344 </formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
345 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
346 </chapter>