annotate DOCS/cd-dvd.html @ 8872:1cd7fd7d4d30

5l to whoever left this out
author rfelker
date Fri, 10 Jan 2003 16:10:20 +0000
parents 553653787cea
children 251e6cd8f81b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6405
d0f408a8b150 Background color now set by CSS, added doctype and charset, misc HTML fixes
diego
parents: 6393
diff changeset
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
2 <HTML>
4982
6cb9d9a1716d HTML: different font handling - idea from new hp dezign
gabucino
parents: 4908
diff changeset
3
6cb9d9a1716d HTML: different font handling - idea from new hp dezign
gabucino
parents: 4908
diff changeset
4 <HEAD>
6882
f3f87f6bf5cf Added a uniform title: something - MPlayer - The Movie Player for Linux.
diego
parents: 6879
diff changeset
5 <TITLE>CD, DVD, VCD - MPlayer - The Movie Player for Linux</TITLE>
6391
4e5c236ade69 small updates
gabucino
parents: 6252
diff changeset
6 <LINK REL="stylesheet" TYPE="text/css" HREF="default.css">
6405
d0f408a8b150 Background color now set by CSS, added doctype and charset, misc HTML fixes
diego
parents: 6393
diff changeset
7 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
4982
6cb9d9a1716d HTML: different font handling - idea from new hp dezign
gabucino
parents: 4908
diff changeset
8 </HEAD>
6cb9d9a1716d HTML: different font handling - idea from new hp dezign
gabucino
parents: 4908
diff changeset
9
6405
d0f408a8b150 Background color now set by CSS, added doctype and charset, misc HTML fixes
diego
parents: 6393
diff changeset
10 <BODY>
1704
a2e1432f7ac3 Arial font
gabucino
parents: 1702
diff changeset
11
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
12
7047
4f87cd0f642f Converted the docs to use proper headings tags.
diego
parents: 7043
diff changeset
13 <H2><A NAME="drives">4.1 CD/DVD drives</A></H2>
1682
dba45a1aafad *** empty log message ***
gabucino
parents: 1668
diff changeset
14
6877
diego
parents: 6405
diff changeset
15 <P>Linux documentation excerpt:</P>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
16
6878
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
17 <P>Modern CD-ROM drives can attain very high head speeds, yet some CD-ROM drives
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
18 are capable of running at reduced speeds. There are several reasons that might
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
19 make you consider changing the speed of a CD-ROM drive:</P>
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
20
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
21 <UL>
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
22 <LI>There have been reports of read errors at high speeds, especially
6878
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
23 with badly pressed CD-ROMs. Reducing the speed can prevent data loss under
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
24 these circumstances.</LI>
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
25 <LI>Many CD-ROM drives are annoyingly loud, a lower speed may reduce the
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
26 noise.</LI>
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
27 </UL>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
28
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
29 <P>You can reduce the speed of IDE CD-ROM drives with <CODE>hdparm</CODE> or a
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
30 program called <CODE>setcd</CODE>. It works like this:</P>
6877
diego
parents: 6405
diff changeset
31
diego
parents: 6405
diff changeset
32 <P>&nbsp;&nbsp;&nbsp;&nbsp;<CODE>hdparm -E [speed] [cdrom device]</CODE></P>
1682
dba45a1aafad *** empty log message ***
gabucino
parents: 1668
diff changeset
33
dba45a1aafad *** empty log message ***
gabucino
parents: 1668
diff changeset
34 <P>&nbsp;&nbsp;&nbsp;&nbsp;<CODE>setcd -x [speed] [cdrom device]</CODE></P>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
35
6877
diego
parents: 6405
diff changeset
36 <P>You can also try</P>
1682
dba45a1aafad *** empty log message ***
gabucino
parents: 1668
diff changeset
37
7076
3275af5787e0 Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, slightly
diego
parents: 7048
diff changeset
38 <P>&nbsp;&nbsp;&nbsp;&nbsp;<CODE>echo current_speed:4 &gt; /proc/ide/[cdrom device]/settings</CODE></P>
1682
dba45a1aafad *** empty log message ***
gabucino
parents: 1668
diff changeset
39
6877
diego
parents: 6405
diff changeset
40 <P>but you will need root privileges. The following command may also help:</P>
1682
dba45a1aafad *** empty log message ***
gabucino
parents: 1668
diff changeset
41
7076
3275af5787e0 Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, slightly
diego
parents: 7048
diff changeset
42 <P>&nbsp;&nbsp;&nbsp;&nbsp;<CODE>echo file_readahead:2000000 &gt; /proc/ide/[cdrom device]/settings</CODE></P>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
43
6877
diego
parents: 6405
diff changeset
44 <P>This sets prefetched file reading to 2MB, which helps with scratched CD-ROMs.
8496
2222dd8d8b18 too big readahead can be bad
gabucino
parents: 7992
diff changeset
45 If you set it to too high, the drive will continuously spin up and down, and
2222dd8d8b18 too big readahead can be bad
gabucino
parents: 7992
diff changeset
46 will dramatically decrease the performance.
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
47 It is recommended that you also tune your CD-ROM drive with
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
48 <CODE>hdparm</CODE>:</P>
1682
dba45a1aafad *** empty log message ***
gabucino
parents: 1668
diff changeset
49
dba45a1aafad *** empty log message ***
gabucino
parents: 1668
diff changeset
50 <P>&nbsp;&nbsp;&nbsp;&nbsp;<CODE>hdparm -d1 -a8 -u1 (cdrom device)</CODE></P>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
51
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
52 <P>This enables DMA access, read-ahead, and IRQ unmasking (read the
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
53 <CODE>hdparm</CODE> man page for a detailed explanation).</P>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
54
6877
diego
parents: 6405
diff changeset
55 <P>Please refer to "<CODE>/proc/ide/[cdrom device]/settings</CODE>" for
diego
parents: 6405
diff changeset
56 fine-tuning your CD-ROM.</P>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
57
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
58 <P>SCSI drives do not have a uniform way of setting these parameters (Do you
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
59 know one? Tell us!) There is a tool that works for
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
60 <A HREF="http://das.ist.org/~georg/">Plextor SCSI drives</A>.</P>
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
61
7795
37c36f8b4645 FreeBSD info
nexus
parents: 7640
diff changeset
62 <P>FreeBSD:</P>
37c36f8b4645 FreeBSD info
nexus
parents: 7640
diff changeset
63
37c36f8b4645 FreeBSD info
nexus
parents: 7640
diff changeset
64 <P>&nbsp;&nbsp;&nbsp;&nbsp;Speed: <CODE>cdcontrol [-f device] speed [speed]</CODE></P>
37c36f8b4645 FreeBSD info
nexus
parents: 7640
diff changeset
65 <P>&nbsp;&nbsp;&nbsp;&nbsp;DMA: <CODE>sysctl hw.ata.atapi_dma=1</CODE></P>
37c36f8b4645 FreeBSD info
nexus
parents: 7640
diff changeset
66
6878
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
67
7047
4f87cd0f642f Converted the docs to use proper headings tags.
diego
parents: 7043
diff changeset
68 <H2><A NAME="dvd">4.2 DVD playback</A></H2>
1682
dba45a1aafad *** empty log message ***
gabucino
parents: 1668
diff changeset
69
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
70 <P>For the complete list of available options, please read the man page.</P>
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
71
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
72 <H4>New-style DVD support (mpdvdkit2)</H4>
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
73
7814
988498df1996 <B>MPlayer</B> ---> MPlayer
diego
parents: 7795
diff changeset
74 <P>MPlayer uses <CODE>libdvdread</CODE> and <CODE>libdvdcss</CODE> for
6877
diego
parents: 6405
diff changeset
75 DVD decryption and playback. These two libraries are contained in the
7814
988498df1996 <B>MPlayer</B> ---> MPlayer
diego
parents: 7795
diff changeset
76 <CODE>libmpdvdkit2/</CODE> subdirectory of the MPlayer source tree, you
6877
diego
parents: 6405
diff changeset
77 do not have to install them separately. We opted for this solution because
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
78 we had to fix a <CODE>libdvdread</CODE> bug and apply a patch which adds
8605
553653787cea Added missing <CODE> tag
nicolas
parents: 8554
diff changeset
79 <B>cracked CSS keys caching support</B> to <CODE>libdvdcss</CODE>. This results
553653787cea Added missing <CODE> tag
nicolas
parents: 8554
diff changeset
80 in a large speed increase because the keys do not have to be cracked every time
553653787cea Added missing <CODE> tag
nicolas
parents: 8554
diff changeset
81 before playing.</P>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
82
7814
988498df1996 <B>MPlayer</B> ---> MPlayer
diego
parents: 7795
diff changeset
83 <P>MPlayer can also use system-wide <CODE>libdvdread</CODE> and
6877
diego
parents: 6405
diff changeset
84 <CODE>libdvdcss</CODE> libraries, but this solution is <B>not</B> recommended,
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
85 as it can result in bugs, library incompatibilities and slower speed.</P>
6877
diego
parents: 6405
diff changeset
86
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
87 <H4>DVD Navigation support (dvdnav)</H4>
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
88
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
89 <P>Support for DVD navigation via <CODE>dvdnav</CODE> was being worked on, but
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
90 it was never finished properly and it is currently unmaintained. Who knows, it
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
91 might even compile.</P>
4057
0d9bf4a76dab old-style DVD options added
gabucino
parents: 3799
diff changeset
92
7047
4f87cd0f642f Converted the docs to use proper headings tags.
diego
parents: 7043
diff changeset
93 <H4>Old-style DVD support - OPTIONAL</H4>
4057
0d9bf4a76dab old-style DVD options added
gabucino
parents: 3799
diff changeset
94
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
95 <P>Useful if you want to play encoded VOBs from <B>hard disk</B>. Compile and
7814
988498df1996 <B>MPlayer</B> ---> MPlayer
diego
parents: 7795
diff changeset
96 install <B>libcss</B> 0.0.1 (not newer) for this (If MPlayer fails to
7935
643d7fea35c5 some changes found by lgb...
jonas
parents: 7934
diff changeset
97 detect it, use the <CODE>-csslib /path/to/libcss.so</CODE> option). To use it,
643d7fea35c5 some changes found by lgb...
jonas
parents: 7934
diff changeset
98 you need to be root, use a suid root MPlayer binary or let MPlayer call the
7943
34a59cff6f29 VCD fixes
arpi
parents: 7936
diff changeset
99 suid-root fibmap_mplayer wrapper program.</P>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
100
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
101 <H4>DVD structure</H4>
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
102
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
103 <P>DVD disks have 2048 bytes per sector with ECC/CRC. They usually have an UDF
7992
gabucino
parents: 7943
diff changeset
104 filesystem on a single track, containing various files (small .IFO and .BUK
gabucino
parents: 7943
diff changeset
105 files and big (1GB) .VOB files). They are real files and can be copied/played
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
106 from the mounted filesystem of an unencrypted DVD.</P>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
107
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
108 <P>The .IFO files contain the movie navigation information (chapter/title/angle
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
109 map, language table, etc) and are needed to read and interpret the .VOB
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
110 content (movie). The .BUK files are backups of them. They use <B>sectors</B>
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
111 everywhere, so you need to use raw addressing of sectors of the disc to
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
112 implement DVD navigation or decrypt the content.</P>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
113
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
114 <P>The whole old-style DVD support with <CODE>libcss</CODE> therefore needs a mounted DVD
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
115 filesystem and raw sector-based access to the device. Unfortunately you must
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
116 (under Linux) be root to get the sector address of a file. You have the
7992
gabucino
parents: 7943
diff changeset
117 following choices:</P>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
118
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
119 <UL>
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
120 <LI>Be root or use a suid-root mplayer binary.</LI>
7943
34a59cff6f29 VCD fixes
arpi
parents: 7936
diff changeset
121 <LI>Let MPlayer call the suid-root fibmap_mplayer wrapper program to access
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
122 the DVD (used in the old-style DVD playback over <CODE>libcss</CODE>).</LI>
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
123 <LI>Don't use the kernel's filesystem driver at all and reimplement it in
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
124 userspace. <CODE>libdvdread</CODE> 0.9.x and <CODE>libmpdvdkit</CODE> do this (new-style DVD
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
125 support). The kernel UDF filesystem driver is not needed as they already
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
126 have their own builtin UDF filesystem driver. Also the DVD does not have to
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
127 be mounted as only the raw sector-based access is used.</LI>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
128 </UL>
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
129
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
130 <P>Sometimes <CODE>/dev/dvd</CODE> cannot be read by users, so the <CODE>libdvdread</CODE>
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
131 authors implemented an emulation layer which transfers sector addresses to
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
132 filenames+offsets, to emulate raw access on top of a mounted filesystem
7992
gabucino
parents: 7943
diff changeset
133 or even on a hard disk.</P>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
134
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
135 <P><CODE>libdvdread</CODE> even accepts the mountpoint instead of the device name for raw
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
136 access and checks <CODE>/proc/mounts</CODE> to get the device name. It was
7992
gabucino
parents: 7943
diff changeset
137 developed for Solaris, where device names are dynamically allocated.</P>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
138
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
139 <P>The default DVD device is <CODE>/dev/dvd</CODE>. If your setup differs,
7992
gabucino
parents: 7943
diff changeset
140 make a symlink, or specify the correct device on the command line with the
gabucino
parents: 7943
diff changeset
141 <CODE>-dvd-device</CODE> option.</P>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
142
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
143 <H4>DVD authentication</H4>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
144
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
145 <P>The authentication and decryption method of the new-style DVD support is done
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
146 using a patched <CODE>libdvdcss</CODE> (see above). The method can be specified through the
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
147 environment variable <CODE>DVDCSS_METHOD</CODE>, which can be set to
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
148 <CODE>key</CODE>, <CODE>disk</CODE> or <CODE>title</CODE>.</P>
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
149
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
150 <P>If nothing is specified it tries the following methods
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
151 (default: key, title request):</P>
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
152
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
153 <OL>
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
154 <LI><B>bus key:</B> This key is negotiated during authentication (a long mix
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
155 of ioctls and various key exchanges, crypto stuff) and is used to encrypt
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
156 the title and disk keys before sending them over the unprotected bus
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
157 (to prevent eavesdropping). The bus key is needed to get and predecrypt the
7992
gabucino
parents: 7943
diff changeset
158 crypted disk key.</LI>
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
159 <LI><B>cached key:</B> MPlayer looks for already cracked
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
160 title keys which are stored in the <CODE>~/.mplayer/DVDKeys</CODE> directory
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
161 (fast ;).</LI>
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
162 <LI><B>key:</B> If no cached key is available, MPlayer tries to
7992
gabucino
parents: 7943
diff changeset
163 decrypt the disk key with a set of included player keys.</LI>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
164 <LI><B>disk:</B> If the key method fails (e.g. no included player keys),
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
165 MPlayer will crack the disk key using a brute force algorithm.
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
166 This process is CPU intensive and requires 64 MB of memory (16M 32Bit
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
167 entries hash table) to store temporary data. This method should always
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
168 work (slow).</LI>
7992
gabucino
parents: 7943
diff changeset
169 <LI><B>title request:</B> With the disk key MPlayer requests the crypted title
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
170 keys, which are inside <I>hidden sectors</I> using <CODE>ioctl()</CODE>.
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
171 The region protection of RPC-2 drives is performed in this step and may
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
172 fail on such drives. If it succeeds, the title keys will be decrypted with
7992
gabucino
parents: 7943
diff changeset
173 the bus and disk key.</LI>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
174 <LI><B>title:</B> This method is used if the title request failed and does
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
175 not rely on any key exchange with the DVD drive. It uses a crypto attack to
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
176 guess the title key directly (by finding a repeating pattern in the
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
177 decrypted VOB content and guessing that the plain text corresponding to the
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
178 first encrypted bytes is a continuation of that pattern).
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
179 The method is also known as "known plaintext attack" or "DeCSSPlus".
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
180 In rare cases this may fail because there is not enough encrypted data on
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
181 the disk to perform a statistical attack or because the key changes in the
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
182 middle of a title. This method is the only way to decrypt a DVD stored on a
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
183 hard disk or a DVD with the wrong region on an RPC2 drive (slow).</LI>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
184 </OL>
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
185
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
186 <P>RPC-1 DVD drives only protect region settings through software.
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
187 RPC-2 drives have a hardware protection that allows 5 changes only. It might
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
188 be needed/recommended to upgrade the firmware to RPC-1 if you have a RPC-2 DVD
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
189 drive. Firmware upgrades can be found on this
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
190 <A HREF="http://www.firmware-flash.com">firmware page</A>. If there is
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
191 no firmware upgrade available for your device, use the
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
192 <A HREF="http://www.linuxtv.org/download/dvd/dvd_disc_20000215.tar.gz">regionset
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
193 tool</A> to set the region code of your DVD drive (under Linux).
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
194 <B>Warning:</B> You can only set the region 5 times.</P>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
195
6878
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
196
7047
4f87cd0f642f Converted the docs to use proper headings tags.
diego
parents: 7043
diff changeset
197 <H2><A NAME="vcd">4.3 VCD playback</A></H2>
6878
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
198
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
199 <P>For the complete list of available options, please read the man page.
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
200 The Syntax for a standard Video CD (VCD) is as follows:</P>
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
201
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
202 <P><CODE>mplayer -vcd &lt;track&gt; [-cdrom-device &lt;device&gt;]</CODE></P>
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
203
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
204 <P>Example: <CODE>mplayer -vcd 2 -cdrom-device /dev/hdc</CODE></P>
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
205
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
206 <P>The default VCD device is <CODE>/dev/cdrom</CODE>. If your setup differs,
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
207 make a symlink or specify the correct device on the command line with the
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
208 <CODE>-cdrom-device</CODE> option.</P>
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
209
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
210 <P><B>Note:</B> At least Plextor and some Toshiba SCSI CD-ROM drives have
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
211 horrible performance reading VCDs. This is because the the CDROMREADRAW ioctl
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
212 is not fully implemented for these drives. If you have some knowledge of SCSI
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
213 programming, please <A HREF="tech/patches.txt">help us</A> implement generic
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
214 SCSI support for VCDs.</P>
6878
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
215
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
216 <H4>VCD structure</H4>
6878
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
217
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
218 <P>VCD disks consist of one or more tracks:</P>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
219
6878
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
220 <UL>
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
221 <LI>The first track is a small 2048 bytes/sector data track with an iso9660
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
222 filesystem, usually containing Windows VCD player programs and maybe other
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
223 information (images, text, etc).</LI>
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
224 <LI>The second and other tracks are raw 2324 bytes/sector MPEG (movie) tracks,
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
225 containing one MPEG PS data packet per sector instead of a filesystem.
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
226 Similar to audio CD tracks, these tracks <B>cannot be mounted</B> (Did you
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
227 ever mount an audio CD to play it?). As most movies are inside this track,
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
228 you should try <CODE>-vcd 2</CODE> first.</LI>
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
229 <LI>There exist VCD disks without the first track (single track and no
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
230 filesystem at all). They are still playable, but cannot be mounted.</LI>
6878
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
231 </UL>
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
232
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
233 <H4>About .DAT files:</H4>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
234
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
235 <P>The ~600 MB file visible on the first track of the mounted VCD is not a real
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
236 file! It is a so called ISO gateway, created to allow Windows to handle such
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
237 tracks (Windows does not allow raw device access to applications at all).
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
238 Under Linux you cannot copy or play such files (they contain garbage). Under
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
239 Windows it is possible as its iso9660 driver emulates the raw reading of
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
240 tracks in this file. To play a .DAT file you need the kernel driver which can
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
241 be found in the Linux version of PowerDVD. It has a modified iso9660
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
242 filesystem (<CODE>vcdfs/isofs-2.4.X.o</CODE>) driver, which is able to emulate
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
243 the raw tracks through this shadow .DAT file. If you mount the disc using
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
244 their driver, you can copy and even play .DAT files with mplayer. But it
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
245 <B>will not work</B> with the standard iso9660 driver of the Linux kernel!
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
246 Use the <CODE>-vcd</CODE> option instead. Alternatives for VCD copying are
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
247 the new <A HREF="http://www.elis.rug.ac.be/~ronsse/cdfs/">cdfs</A> kernel
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
248 driver (not part of the official kernel) that shows CD <I>sessions</I>
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
249 as image files and <A HREF="http://cdrdao.sourceforge.net/">cdrdao</A>, a
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
250 bit-by-bit CD grabbing/copying application.</P>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
251
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
252 </BODY>
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
253 </HTML>