Mercurial > mplayer.hg
annotate DOCS/xml/en/cd-dvd.xml @ 28909:e9555bd1a9fb
Set DOCTYPE in xsl-generated HTML documentation.
author | reimar |
---|---|
date | Sat, 14 Mar 2009 12:32:28 +0000 |
parents | 4790f4ca73e5 |
children | d590a8d2386a |
rev | line source |
---|---|
20535 | 1 <?xml version="1.0" encoding="utf-8"?> |
10913
49b1a67e7381
Add revision keyword to english xml files, to ease translation synchronization
lumag
parents:
10910
diff
changeset
|
2 <!-- $Revision$ --> |
9675 | 3 <chapter id="cd-dvd"> |
4 <title>CD/DVD usage</title> | |
5 | |
6 <sect1 id="drives"> | |
7 <title>CD/DVD drives</title> | |
8 | |
9 <para> | |
10 Modern CD-ROM drives can attain very high head speeds, yet some CD-ROM drives | |
11 are capable of running at reduced speeds. There are several reasons that might | |
12 make you consider changing the speed of a CD-ROM drive: | |
13 </para> | |
14 | |
15 <itemizedlist> | |
16 <listitem><para> | |
21521 | 17 There have been reports of read errors at high speeds, especially |
18 with badly pressed CD-ROMs. Reducing the speed can prevent data loss under | |
19 these circumstances. | |
9675 | 20 </para></listitem> |
21 | |
22 <listitem><para> | |
21521 | 23 Many CD-ROM drives are annoyingly loud, a lower speed may reduce the noise. |
9675 | 24 </para></listitem> |
25 </itemizedlist> | |
26 | |
21521 | 27 <!-- ********** --> |
28 | |
15879
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
29 <sect2 id="drives_linux"> |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
30 <title>Linux</title> |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
31 |
9675 | 32 <para> |
15879
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
33 You can reduce the speed of IDE CD-ROM drives with <command>hdparm</command>, |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
34 <command>setcd</command> or <command>cdctl</command>. It works like this: |
9776
861a40949bf3
fixes, some by Dmitry Baryshkov <lumag@qnc.ru>, some by me
nicolas
parents:
9675
diff
changeset
|
35 <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
|
36 <screen>setcd -x <replaceable>[speed]</replaceable> <replaceable>[cdrom device]</replaceable></screen> |
15879
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
37 <screen>cdctl -bS <replaceable>[speed]</replaceable></screen> |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
38 </para> |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
39 |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
40 <para> |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
41 If you are using SCSI emulation, you might have to apply the settings to the |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
42 real IDE device, not the emulated SCSI device. |
9675 | 43 </para> |
44 | |
45 <para> | |
10910
eb339c10228e
Lol! This command will try to change xfer_mode, and not a cdrom spin speed. Removed.
lumag
parents:
10656
diff
changeset
|
46 If you have 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
|
47 <screen>echo file_readahead:2000000 > /proc/ide/<replaceable>[cdrom device]</replaceable>/settings</screen> |
9675 | 48 </para> |
49 | |
50 <para> | |
51 This sets prefetched file reading to 2MB, which helps with scratched CD-ROMs. | |
52 If you set it to too high, the drive will continuously spin up and down, and | |
53 will dramatically decrease the performance. | |
21521 | 54 It is recommended that you also tune your CD-ROM drive |
55 with <command>hdparm</command>: | |
28671 | 56 <screen>hdparm -d1 -a256 -u1 <replaceable>[cdrom device]</replaceable></screen> |
9675 | 57 </para> |
58 | |
59 <para> | |
21521 | 60 This enables DMA access, read-ahead, and IRQ unmasking (read the |
61 <command>hdparm</command> man page for a detailed explanation). | |
9675 | 62 </para> |
63 | |
64 <para> | |
21521 | 65 Please refer to |
21596 | 66 "<filename>/proc/ide/<replaceable>[cdrom device]</replaceable>/settings</filename>" |
9675 | 67 for fine-tuning your CD-ROM. |
68 </para> | |
69 | |
70 <para> | |
28671 | 71 You may tweak the speed of SCSI CD-ROM drives with |
72 <command>sdparm</command>, you need version 1.03 or higher: | |
73 <screen>sdparm --command=speed=<replaceable>[speed in kB/s]</replaceable> <replaceable>[cdrom device]</replaceable></screen> | |
74 Speed must be specified in kilobytes per second, the drive will | |
75 round it as appropriate. Please refer to the sdparm man page for | |
76 details. | |
77 </para> | |
78 | |
79 <para> | |
80 There is also a dedicated tool that works for | |
9675 | 81 <ulink url="http://das.ist.org/~georg/">Plextor SCSI drives</ulink>. |
82 </para> | |
15879
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
83 </sect2> |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
84 |
21521 | 85 <!-- ********** --> |
15879
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
86 |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
87 <sect2 id="drives_freebsd"> |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
88 <title>FreeBSD</title> |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
89 |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
90 <para>speed: |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
91 <screen> |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
92 cdcontrol [-f <replaceable>device</replaceable>] speed <replaceable>[speed]</replaceable> |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
93 </screen> |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
94 </para> |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
95 |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
96 <para>DMA: |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
97 <screen> |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
98 sysctl hw.ata.atapi_dma=1 |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
99 </screen> |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
100 </para> |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
101 |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
102 </sect2> |
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
103 |
9675 | 104 </sect1> |
105 | |
15879
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
106 |
21521 | 107 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
108 | |
15879
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
109 |
9675 | 110 <sect1 id="dvd"> |
111 <title>DVD playback</title> | |
21521 | 112 |
9675 | 113 <para> |
114 For the complete list of available options, please read the man page. | |
20380 | 115 The syntax to play a standard DVD is as follows: |
21521 | 116 <screen> |
117 mplayer dvd://<replaceable><track></replaceable> [-dvd-device <replaceable><device></replaceable>] | |
118 </screen> | |
9675 | 119 </para> |
120 | |
121 <para> | |
122 Example: | |
20380 | 123 <screen>mplayer dvd://1 -dvd-device /dev/hdc</screen> |
9675 | 124 </para> |
125 | |
126 <para> | |
19745
4c6f19ae1287
Add a bit of doc about dvdnav support in MPlayer, and why you may want to use it.
gpoirier
parents:
19733
diff
changeset
|
127 If you have compiled <application>MPlayer</application> with dvdnav support, the |
4c6f19ae1287
Add a bit of doc about dvdnav support in MPlayer, and why you may want to use it.
gpoirier
parents:
19733
diff
changeset
|
128 syntax is the same, except that you need to use dvdnav:// instead of dvd://. |
4c6f19ae1287
Add a bit of doc about dvdnav support in MPlayer, and why you may want to use it.
gpoirier
parents:
19733
diff
changeset
|
129 </para> |
4c6f19ae1287
Add a bit of doc about dvdnav support in MPlayer, and why you may want to use it.
gpoirier
parents:
19733
diff
changeset
|
130 |
4c6f19ae1287
Add a bit of doc about dvdnav support in MPlayer, and why you may want to use it.
gpoirier
parents:
19733
diff
changeset
|
131 <para> |
9675 | 132 The default DVD device is <filename>/dev/dvd</filename>. If your setup |
133 differs, make a symlink or specify the correct device on the command | |
134 line with the <option>-dvd-device</option> option. | |
135 </para> | |
136 | |
137 <para> | |
138 <application>MPlayer</application> uses <systemitem>libdvdread</systemitem> and | |
20380 | 139 <systemitem>libdvdcss</systemitem> for DVD playback and decryption. These two |
20621 | 140 libraries are contained in the |
141 <application>MPlayer</application> source tree, you do not have | |
20167 | 142 to install them separately. You can also use system-wide versions of the two |
143 libraries, but this solution is not recommended, as it can result in bugs, | |
9675 | 144 library incompatibilities and slower speed. |
145 </para> | |
146 | |
10986 | 147 <note><para> |
148 In case of DVD decoding problems, try disabling supermount, or any other such | |
17425
dda0f4feca39
Mention possible region setting requirement for some RPC-2 drives.
rathann
parents:
15879
diff
changeset
|
149 facilities. Some RPC-2 drives may also require setting the region code. |
10986 | 150 </para></note> |
151 | |
9675 | 152 <formalpara> |
20380 | 153 <title>DVD decryption</title> |
9675 | 154 <para> |
20380 | 155 DVD decryption is done by <systemitem>libdvdcss</systemitem>. The method |
156 can be specified through the <envar>DVDCSS_METHOD</envar> environment | |
20426
192efe61abaa
Remove confusing and probably wrong paragraph about libdvdcss.
diego
parents:
20385
diff
changeset
|
157 variable, see the manual page for details. |
9675 | 158 </para> |
159 </formalpara> | |
160 | |
24326
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
161 <sect2 id="region_code"> |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
162 <title>region code</title> |
9675 | 163 <para> |
24326
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
164 DVD drives nowadays come with a nonsensical restriction labeled |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
165 <ulink url="http://en.wikipedia.org/wiki/DVD_region_code">region code</ulink>. |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
166 This is a scheme to force DVD drives to only accept DVDs produced for one of |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
167 the six different regions into which the world was partitioned. How a group |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
168 of people can sit around a table, come up with such an idea and expect the |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
169 world of the 21st century to bow to their will is beyond anyone's guess. |
9675 | 170 </para> |
24326
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
171 |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
172 <para> |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
173 Drives that enforce region settings through software only are also known as |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
174 RPC-1 drives, those that do it in hardware as RPC-2. RPC-2 drives allow |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
175 changing the region code five times before it remains fixed. |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
176 Under Linux you can use the |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
177 <ulink url="http://linvdr.org/projects/regionset/">regionset</ulink> tool |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
178 to set the region code of your DVD drive. |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
179 </para> |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
180 |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
181 <para> |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
182 Thankfully, it is possible to convert RPC-2 drives into RPC-1 drives through |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
183 a firmware upgrade. Feed the model number of your DVD drive into your favorite |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
184 search engine or have a look at the forum and download sections of |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
185 <ulink url="http://www.rpc1.org/">"The firmware page"</ulink>. |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
186 While the usual caveats for firmware upgrades apply, experience with |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
187 getting rid of region code enforcement is generally positive. |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
188 </para> |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
189 </sect2> |
ff2f302a176b
Replace short region code explanation by more detailed section.
diego
parents:
24324
diff
changeset
|
190 |
9675 | 191 </sect1> |
192 | |
15879
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
193 |
21521 | 194 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
195 | |
15879
aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
diego
parents:
14153
diff
changeset
|
196 |
9675 | 197 <sect1 id="vcd"> |
198 <title>VCD playback</title> | |
21521 | 199 |
9675 | 200 <para> |
21521 | 201 For the complete list of available options, please read the man page. The |
202 Syntax for a standard Video CD (VCD) is as follows: | |
10203 | 203 <screen>mplayer vcd://<replaceable><track></replaceable> [-cdrom-device <replaceable><device></replaceable>]</screen> |
9675 | 204 Example: |
20385
985accf8cf95
<replaceable> tags aren't needed in literal example
torinthiel
parents:
20380
diff
changeset
|
205 <screen>mplayer vcd://2 -cdrom-device /dev/hdc</screen> |
9675 | 206 The default VCD device is <filename>/dev/cdrom</filename>. If your setup |
207 differs, make a symlink or specify the correct device on the command line | |
208 with the <option>-cdrom-device</option> option. | |
209 </para> | |
210 | |
211 <note><para> | |
212 At least Plextor and some Toshiba SCSI CD-ROM drives have horrible performance | |
13973 | 213 reading VCDs. This is because the CDROMREADRAW <systemitem>ioctl</systemitem> |
9675 | 214 is not fully implemented for these drives. If you have some knowledge of SCSI |
215 programming, please <ulink url="../../tech/patches.txt">help us</ulink> | |
216 implement generic SCSI support for VCDs. | |
217 </para></note> | |
218 | |
219 <para> | |
220 In the meantime you can extract data from VCDs with | |
19733 | 221 <ulink url="http://ftp.ntut.edu.tw/ftp/OS/Linux/packages/X/viewers/readvcd/">readvcd</ulink> |
9675 | 222 and play the resulting file with <application>MPlayer</application>. |
223 </para> | |
224 | |
225 <formalpara> | |
226 <title>VCD structure</title> | |
14153 | 227 <para> |
228 A Video CD (VCD) is made up of CD-ROM XA sectors, i.e. CD-ROM mode 2 | |
21521 | 229 form 1 and 2 tracks: |
9675 | 230 <itemizedlist> |
231 <listitem><para> | |
21521 | 232 The first track is in mode 2 form 2 format which means it uses L2 |
26958 | 233 error correction. The track contains an ISO-9660 file system with 2048 |
234 bytes/sector. This file system contains VCD metadata information, as | |
21521 | 235 well as still frames often used in menus. MPEG segments for menus can |
236 also be stored in this first track, but the MPEGs have to be broken up | |
26958 | 237 into a series of 150-sector chunks. The ISO-9660 file system may |
21521 | 238 contain other files or programs that are not essential for VCD |
239 operation. | |
9675 | 240 </para></listitem> |
241 | |
242 <listitem><para> | |
21521 | 243 The second and remaining tracks are generally raw 2324 bytes/sector |
244 MPEG (movie) tracks, containing one MPEG PS data packet per | |
245 sector. These are in mode 2 form 1 format, so they store more data per | |
246 sector at the loss of some error correction. It is also legal to have | |
247 CD-DA tracks in a VCD after the first track as well. | |
248 On some operating systems there is some trickery that goes on to make | |
26958 | 249 these non-ISO-9660 tracks appear in a file system. On other operating |
21521 | 250 systems like GNU/Linux this is not the case (yet). Here the MPEG data |
251 <emphasis role="bold">cannot be mounted</emphasis>. As most movies are | |
252 inside this kind of track, you should try <option>vcd://2</option> | |
253 first. | |
254 </para></listitem> | |
9675 | 255 |
256 <listitem><para> | |
26958 | 257 There exist VCD disks without the first track (single track and no file system |
21521 | 258 at all). They are still playable, but cannot be mounted. |
9675 | 259 </para></listitem> |
14153 | 260 |
21521 | 261 <listitem><para> |
262 The definition of the Video CD standard is called the | |
263 Philips "White Book" and it is not generally available online as it | |
264 must be purchased from Philips. More detailed information about Video | |
265 CDs can be found in the | |
266 <ulink url="http://www.vcdimager.org/pub/vcdimager/manuals/0.7/vcdimager.html#SEC4">vcdimager documentation</ulink>. | |
14153 | 267 </para></listitem> |
9675 | 268 </itemizedlist> |
21521 | 269 </para> |
270 </formalpara> | |
9675 | 271 |
272 <formalpara> | |
273 <title>About .DAT files</title> | |
274 <para> | |
275 The ~600 MB file visible on the first track of the mounted VCD is not a real | |
276 file! It is a so called ISO gateway, created to allow Windows to handle such | |
277 tracks (Windows does not allow raw device access to applications at all). | |
278 Under Linux you cannot copy or play such files (they contain garbage). Under | |
279 Windows it is possible as its iso9660 driver emulates the raw reading of | |
280 tracks in this file. To play a .DAT file you need the kernel driver which can | |
26958 | 281 be found in the Linux version of PowerDVD. It has a modified iso9660 file system |
9675 | 282 (<filename>vcdfs/isofs-2.4.X.o</filename>) driver, which is able to emulate the |
283 raw tracks through this shadow .DAT file. If you mount the disc using their | |
21521 | 284 driver, you can copy and even play .DAT files with |
285 <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
|
286 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
|
287 <option>vcd://</option> instead. Alternatives for VCD copying are the |
9675 | 288 new <ulink url="http://www.elis.rug.ac.be/~ronsse/cdfs/">cdfs</ulink> kernel |
21521 | 289 driver (not part of the official kernel) that shows CD sessions as image files |
290 and <ulink url="http://cdrdao.sf.net/">cdrdao</ulink>, a bit-by-bit | |
9675 | 291 CD grabbing/copying application. |
292 </para> | |
293 </formalpara> | |
294 </sect1> | |
295 </chapter> |