annotate DOCS/cd-dvd.html @ 9370:88bd19564b64

Motion-JPEG RTP streams can now be played. Some MPEG-4 ES video RTP streams can also be played. patch by Ross Finlayson <finlayson@live.com>
author arpi
date Sun, 09 Feb 2003 17:06:38 +0000
parents a2eef35515c7
children
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
9181
a2eef35515c7 DVD usage instructions similar to VCD.
diego
parents: 9084
diff changeset
70 <P>For the complete list of available options, please read the man page.
a2eef35515c7 DVD usage instructions similar to VCD.
diego
parents: 9084
diff changeset
71 The Syntax for a standard Digital Versatile Disc (DVD) is as follows:</P>
a2eef35515c7 DVD usage instructions similar to VCD.
diego
parents: 9084
diff changeset
72
a2eef35515c7 DVD usage instructions similar to VCD.
diego
parents: 9084
diff changeset
73 <P><CODE>mplayer -dvd &lt;track&gt; [-dvd-device &lt;device&gt;]</CODE></P>
a2eef35515c7 DVD usage instructions similar to VCD.
diego
parents: 9084
diff changeset
74
a2eef35515c7 DVD usage instructions similar to VCD.
diego
parents: 9084
diff changeset
75 <P>Example: <CODE>mplayer -dvd 1 -dvd-device /dev/hdc</CODE></P>
a2eef35515c7 DVD usage instructions similar to VCD.
diego
parents: 9084
diff changeset
76
a2eef35515c7 DVD usage instructions similar to VCD.
diego
parents: 9084
diff changeset
77 <P>The default DVD device is <CODE>/dev/dvd</CODE>. If your setup differs,
a2eef35515c7 DVD usage instructions similar to VCD.
diego
parents: 9084
diff changeset
78 make a symlink or specify the correct device on the command line with the
a2eef35515c7 DVD usage instructions similar to VCD.
diego
parents: 9084
diff changeset
79 <CODE>-dvd-device</CODE> option.</P>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
80
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
81 <H4>New-style DVD support (mpdvdkit2)</H4>
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
82
7814
988498df1996 <B>MPlayer</B> ---> MPlayer
diego
parents: 7795
diff changeset
83 <P>MPlayer uses <CODE>libdvdread</CODE> and <CODE>libdvdcss</CODE> for
6877
diego
parents: 6405
diff changeset
84 DVD decryption and playback. These two libraries are contained in the
7814
988498df1996 <B>MPlayer</B> ---> MPlayer
diego
parents: 7795
diff changeset
85 <CODE>libmpdvdkit2/</CODE> subdirectory of the MPlayer source tree, you
6877
diego
parents: 6405
diff changeset
86 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
87 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
88 <B>cracked CSS keys caching support</B> to <CODE>libdvdcss</CODE>. This results
553653787cea Added missing <CODE> tag
nicolas
parents: 8554
diff changeset
89 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
90 before playing.</P>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
91
7814
988498df1996 <B>MPlayer</B> ---> MPlayer
diego
parents: 7795
diff changeset
92 <P>MPlayer can also use system-wide <CODE>libdvdread</CODE> and
6877
diego
parents: 6405
diff changeset
93 <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
94 as it can result in bugs, library incompatibilities and slower speed.</P>
6877
diego
parents: 6405
diff changeset
95
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
96 <H4>DVD Navigation support (dvdnav)</H4>
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
97
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
98 <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
99 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
100 might even compile.</P>
4057
0d9bf4a76dab old-style DVD options added
gabucino
parents: 3799
diff changeset
101
7047
4f87cd0f642f Converted the docs to use proper headings tags.
diego
parents: 7043
diff changeset
102 <H4>Old-style DVD support - OPTIONAL</H4>
4057
0d9bf4a76dab old-style DVD options added
gabucino
parents: 3799
diff changeset
103
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
104 <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
105 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
106 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
107 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
108 suid-root fibmap_mplayer wrapper program.</P>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
109
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
110 <H4>DVD structure</H4>
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
111
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
112 <P>DVD disks have 2048 bytes per sector with ECC/CRC. They usually have an UDF
7992
gabucino
parents: 7943
diff changeset
113 filesystem on a single track, containing various files (small .IFO and .BUK
gabucino
parents: 7943
diff changeset
114 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
115 from the mounted filesystem of an unencrypted DVD.</P>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
116
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
117 <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
118 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
119 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
120 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
121 implement DVD navigation or decrypt the content.</P>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
122
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
123 <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
124 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
125 (under Linux) be root to get the sector address of a file. You have the
7992
gabucino
parents: 7943
diff changeset
126 following choices:</P>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
127
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
128 <UL>
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
129 <LI>Be root or use a suid-root mplayer binary.</LI>
7943
34a59cff6f29 VCD fixes
arpi
parents: 7936
diff changeset
130 <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
131 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
132 <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
133 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
134 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
135 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
136 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
137 </UL>
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
138
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
139 <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
140 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
141 filenames+offsets, to emulate raw access on top of a mounted filesystem
7992
gabucino
parents: 7943
diff changeset
142 or even on a hard disk.</P>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
143
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
144 <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
145 access and checks <CODE>/proc/mounts</CODE> to get the device name. It was
7992
gabucino
parents: 7943
diff changeset
146 developed for Solaris, where device names are dynamically allocated.</P>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
147
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
148 <P>The default DVD device is <CODE>/dev/dvd</CODE>. If your setup differs,
7992
gabucino
parents: 7943
diff changeset
149 make a symlink, or specify the correct device on the command line with the
gabucino
parents: 7943
diff changeset
150 <CODE>-dvd-device</CODE> option.</P>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
151
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
152 <H4>DVD authentication</H4>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
153
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
154 <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
155 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
156 environment variable <CODE>DVDCSS_METHOD</CODE>, which can be set to
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
157 <CODE>key</CODE>, <CODE>disk</CODE> or <CODE>title</CODE>.</P>
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
158
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
159 <P>If nothing is specified it tries the following methods
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
160 (default: key, title request):</P>
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
161
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
162 <OL>
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
163 <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
164 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
165 the title and disk keys before sending them over the unprotected bus
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
166 (to prevent eavesdropping). The bus key is needed to get and predecrypt the
7992
gabucino
parents: 7943
diff changeset
167 crypted disk key.</LI>
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
168 <LI><B>cached key:</B> MPlayer looks for already cracked
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
169 title keys which are stored in the <CODE>~/.mplayer/DVDKeys</CODE> directory
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
170 (fast ;).</LI>
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
171 <LI><B>key:</B> If no cached key is available, MPlayer tries to
7992
gabucino
parents: 7943
diff changeset
172 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
173 <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
174 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
175 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
176 entries hash table) to store temporary data. This method should always
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
177 work (slow).</LI>
7992
gabucino
parents: 7943
diff changeset
178 <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
179 keys, which are inside <I>hidden sectors</I> using <CODE>ioctl()</CODE>.
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
180 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
181 fail on such drives. If it succeeds, the title keys will be decrypted with
7992
gabucino
parents: 7943
diff changeset
182 the bus and disk key.</LI>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
183 <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
184 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
185 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
186 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
187 first encrypted bytes is a continuation of that pattern).
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
188 The method is also known as "known plaintext attack" or "DeCSSPlus".
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
189 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
190 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
191 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
192 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
193 </OL>
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
194
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
195 <P>RPC-1 DVD drives only protect region settings through software.
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
196 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
197 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
198 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
199 <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
200 no firmware upgrade available for your device, use the
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
201 <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
202 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
203 <B>Warning:</B> You can only set the region 5 times.</P>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
204
6878
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
205
7047
4f87cd0f642f Converted the docs to use proper headings tags.
diego
parents: 7043
diff changeset
206 <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
207
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
208 <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
209 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
210
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
211 <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
212
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
213 <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
214
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
215 <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
216 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
217 <CODE>-cdrom-device</CODE> option.</P>
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
218
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
219 <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
220 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
221 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
222 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
223 SCSI support for VCDs.</P>
6878
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
224
9084
251e6cd8f81b readvcd is useful for reading VCDs with SCSI CD-ROM drives.
diego
parents: 8605
diff changeset
225 <P>In the meantime you can extract data from VCDs with
251e6cd8f81b readvcd is useful for reading VCDs with SCSI CD-ROM drives.
diego
parents: 8605
diff changeset
226 <A HREF="http://140.132.1.204/OS/Linux/packages/X/viewers/readvcd/">readvcd</A>
251e6cd8f81b readvcd is useful for reading VCDs with SCSI CD-ROM drives.
diego
parents: 8605
diff changeset
227 and play the resulting file with MPlayer.</P>
251e6cd8f81b readvcd is useful for reading VCDs with SCSI CD-ROM drives.
diego
parents: 8605
diff changeset
228
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
229 <H4>VCD structure</H4>
6878
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
230
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
231 <P>VCD disks consist of one or more tracks:</P>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
232
6878
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
233 <UL>
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
234 <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
235 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
236 information (images, text, etc).</LI>
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
237 <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
238 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
239 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
240 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
241 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
242 <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
243 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
244 </UL>
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
245
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
246 <H4>About .DAT files:</H4>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
247
8554
559217c44624 Reviewed and reworked (again), added some information about SCSI CD-ROMs.
diego
parents: 8496
diff changeset
248 <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
249 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
250 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
251 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
252 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
253 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
254 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
255 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
256 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
257 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
258 <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
259 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
260 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
261 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
262 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
263 bit-by-bit CD grabbing/copying application.</P>
7934
b75cf70d2a7c DVD authentication, VCD/DVD structure, more...
jonas
parents: 7814
diff changeset
264
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
265 </BODY>
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
266 </HTML>