annotate DOCS/cd-dvd.html @ 6906:3274d0725fde

Changed all link names from the section number to a sensible label. Section numbers were 2.3.2.1. in the section names and 2.3.2.1 in the TOC. I settled for the former everywhere. "Misc OS" is now called "Ports". Checked all internal links, some of them were falsely pointing to renumbered sections. This should no longer happen. And in case some of you think "This must have been a lot of work!", that does not even begin to describe it...
author diego
date Sun, 04 Aug 2002 22:13:09 +0000
parents f3f87f6bf5cf
children 027d2140942b
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
6906
3274d0725fde Changed all link names from the section number to a sensible label.
diego
parents: 6882
diff changeset
13 <P><B><A NAME="cd">4.1 CD-ROM drives</A></B></P>
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>
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
22 <LI>Ther have been reports of read errors at these high speeds, especially
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
6877
diego
parents: 6405
diff changeset
29 <P>You can reduce the drive speed with hdparm or a program called setcd.
diego
parents: 6405
diff changeset
30 It works like this:</P>
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
dba45a1aafad *** empty log message ***
gabucino
parents: 1668
diff changeset
38 <P>&nbsp;&nbsp;&nbsp;&nbsp;<CODE>echo current_speed:4 >/proc/ide/[cdrom device]/settings</CODE></P>
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
dba45a1aafad *** empty log message ***
gabucino
parents: 1668
diff changeset
42 <P>&nbsp;&nbsp;&nbsp;&nbsp;<CODE>echo file_readahead:2000000 >/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.
diego
parents: 6405
diff changeset
45 It is recommended that you also tune your CD-ROM drive with hdparm:</P>
1682
dba45a1aafad *** empty log message ***
gabucino
parents: 1668
diff changeset
46
dba45a1aafad *** empty log message ***
gabucino
parents: 1668
diff changeset
47 <P>&nbsp;&nbsp;&nbsp;&nbsp;<CODE>hdparm -d1 -a8 -u1 (cdrom device)</CODE></P>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
48
6877
diego
parents: 6405
diff changeset
49 <P>This enables DMA access, read-ahead, and IRQ unmasking (read the hdparm man
diego
parents: 6405
diff changeset
50 page for a detailed explanation).</P>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
51
6877
diego
parents: 6405
diff changeset
52 <P>Please refer to "<CODE>/proc/ide/[cdrom device]/settings</CODE>" for
diego
parents: 6405
diff changeset
53 fine-tuning your CD-ROM.</P>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
54
6878
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
55
6906
3274d0725fde Changed all link names from the section number to a sensible label.
diego
parents: 6882
diff changeset
56 <P><B><A NAME="dvd">4.2 DVD playback</A></B></P>
1682
dba45a1aafad *** empty log message ***
gabucino
parents: 1668
diff changeset
57
5859
a24e39bf2776 updated DVD documentation for libmpdvdkit
gabucino
parents: 4982
diff changeset
58 <P><B>MPlayer</B> uses <CODE>libdvdread</CODE> and <CODE>libdvdcss</CODE> for
6877
diego
parents: 6405
diff changeset
59 DVD decryption and playback. These two libraries are contained in the
diego
parents: 6405
diff changeset
60 <CODE>libmpdvdkit/</CODE> subdirectory of the <B>MPlayer</B> source tree, you
diego
parents: 6405
diff changeset
61 do not have to install them separately. We opted for this solution because
5859
a24e39bf2776 updated DVD documentation for libmpdvdkit
gabucino
parents: 4982
diff changeset
62 we had to fix a libdvdread bug, and apply a patch which adds
6877
diego
parents: 6405
diff changeset
63 <B>cracked CSS keys caching support</B> to libdvdcss. This results in a large
diego
parents: 6405
diff changeset
64 speed increase because the keys do not have to be cracked every time before
diego
parents: 6405
diff changeset
65 playing. The cracked keys are stored in the
diego
parents: 6405
diff changeset
66 <CODE>~/.mplayer/DVDKeys</CODE> directory.</P>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
67
6877
diego
parents: 6405
diff changeset
68 <P><B>MPlayer</B> can also use system-wide <CODE>libdvdread</CODE> and
diego
parents: 6405
diff changeset
69 <CODE>libdvdcss</CODE> libraries, but this solution is <B>not</B> recommended,
diego
parents: 6405
diff changeset
70 as it can result in bugs, library incompatibilities, and slower speed.</P>
diego
parents: 6405
diff changeset
71
diego
parents: 6405
diff changeset
72 <P>Support for DVD navigation via <CODE>dvdnav</CODE> is being worked on, but
diego
parents: 6405
diff changeset
73 not finished yet.</P>
4057
0d9bf4a76dab old-style DVD options added
gabucino
parents: 3799
diff changeset
74
6405
d0f408a8b150 Background color now set by CSS, added doctype and charset, misc HTML fixes
diego
parents: 6393
diff changeset
75 <P><B>Old-style DVD support - <I>OPTIONAL</I></B></P>
4057
0d9bf4a76dab old-style DVD options added
gabucino
parents: 3799
diff changeset
76
6877
diego
parents: 6405
diff changeset
77 <P>Useful if you want to play encoded VOBs from hard disk. Compile and
diego
parents: 6405
diff changeset
78 install <B>libcss</B> 0.0.1 (not newer) for this (If <B>MPlayer</B> fails to
diego
parents: 6405
diff changeset
79 detect it, use the <CODE>-csslib /path/to/libcss.so</CODE> option).</P>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
80
1682
dba45a1aafad *** empty log message ***
gabucino
parents: 1668
diff changeset
81 <P><B>Using MPlayer to play DVDs:</B></P>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
82
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
83
6877
diego
parents: 6405
diff changeset
84 <TABLE BORDER=0 WIDTH="100%">
diego
parents: 6405
diff changeset
85 <TR><TD VALIGN=top><CODE>-dvd &lt;title_id&gt;&nbsp;</CODE></TD>
6393
f9b3d010b35e FONT tags obsoleted by CSS
gabucino
parents: 6391
diff changeset
86 <TD>Enables DVD support and selects title.</TD><TR>
6877
diego
parents: 6405
diff changeset
87 <TD VALIGN=top><CODE>-chapter &lt;chapter_id&gt;&nbsp;</CODE></TD>
diego
parents: 6405
diff changeset
88 <TD>Selects DVD chapter(s) to play (default: 1).
diego
parents: 6405
diff changeset
89 Example: <CODE>-chapter 5-10</CODE> or <CODE>-chapter -9</CODE></TD></TR>
diego
parents: 6405
diff changeset
90 <TR><TD VALIGN=top><CODE>-dvdangle &lt;angle_id&gt;&nbsp;</CODE></TD>
6393
f9b3d010b35e FONT tags obsoleted by CSS
gabucino
parents: 6391
diff changeset
91 <TD>Selects camera angle (default: 1)</TD><TR>
6877
diego
parents: 6405
diff changeset
92 <TD VALIGN=top><CODE>-alang &lt;country code&gt;&nbsp;</CODE></TD>
diego
parents: 6405
diff changeset
93 <TD>
diego
parents: 6405
diff changeset
94 The <CODE>country code</CODE> tells <B>MPlayer</B> which audio language(s) to prefer.
diego
parents: 6405
diff changeset
95 For a list of available languages, add the <CODE>-v</CODE> option after
diego
parents: 6405
diff changeset
96 your DVD options and browse the output.<BR>
diego
parents: 6405
diff changeset
97 For example:<BR>
diego
parents: 6405
diff changeset
98 &nbsp;&nbsp;<CODE>-alang hu,en</CODE> - Tries to find Hungarian audio,
diego
parents: 6405
diff changeset
99 falling back to English audio.</TD></TR>
diego
parents: 6405
diff changeset
100 <TR><TD VALIGN=top><CODE>-slang &lt;country code&gt;&nbsp;</CODE></TD>
diego
parents: 6405
diff changeset
101 <TD>
diego
parents: 6405
diff changeset
102 Turns on DVD subtitles. The <CODE>country code</CODE> tells <B>MPlayer</B>
3796
590a8b8ac78e documentation of -alang -slang added
gabucino
parents: 3530
diff changeset
103 which language(s) to prefer.
6877
diego
parents: 6405
diff changeset
104 For the list of available languages, add the <CODE>-v</CODE> option after
diego
parents: 6405
diff changeset
105 your DVD options and browse the output.<BR>
diego
parents: 6405
diff changeset
106 For example:<BR>
diego
parents: 6405
diff changeset
107 &nbsp;&nbsp;<CODE>-slang hu,en</CODE> - Tries to display Hungarian subtitles,
diego
parents: 6405
diff changeset
108 falling back to English subtitles.</TD></TR>
diego
parents: 6405
diff changeset
109 <TR><TD VALIGN=top><CODE>-sid &lt;subtitle_id&gt;&nbsp;</CODE></TD>
diego
parents: 6405
diff changeset
110 <TD>
diego
parents: 6405
diff changeset
111 Displays a subtitle channel with the given <CODE>id</CODE> (values can be
diego
parents: 6405
diff changeset
112 0-31). Useful with badly mastered DVDs where the country code
diego
parents: 6405
diff changeset
113 selects the wrong channel.</TD></TR>
diego
parents: 6405
diff changeset
114 <TR><TD VALIGN=top><CODE>-csslib &lt;path/filename&gt;</CODE></TD>
diego
parents: 6405
diff changeset
115 <TD>
diego
parents: 6405
diff changeset
116 (old-style DVD option) This option is used to override the default location
diego
parents: 6405
diff changeset
117 of <CODE>libcss.so</CODE>.
diego
parents: 6405
diff changeset
118 </TD></TR>
diego
parents: 6405
diff changeset
119 <TR><TD VALIGN=top><CODE>-dvdauth &lt;DVD device&gt;&nbsp;</CODE></TD>
diego
parents: 6405
diff changeset
120 <TD>
diego
parents: 6405
diff changeset
121 (old-style DVD option) Turns on DVD authentication using the given device.
diego
parents: 6405
diff changeset
122 </TD></TR>
diego
parents: 6405
diff changeset
123 <TR><TD VALIGN=top><CODE>-dvdkey &lt;CSS key&gt;</CODE></TD>
diego
parents: 6405
diff changeset
124 <TD>
6879
7e5f45cc7af4 -dvdkey option clarified.
diego
parents: 6878
diff changeset
125 (old-style DVD option) When decoding a VOB file copied undecrypted from DVD,
7e5f45cc7af4 -dvdkey option clarified.
diego
parents: 6878
diff changeset
126 this option gives the CSS key needed to decrypt the VOB (the key is printed
7e5f45cc7af4 -dvdkey option clarified.
diego
parents: 6878
diff changeset
127 when authenticating with the DVD drive using -dvdauth).
6877
diego
parents: 6405
diff changeset
128 </TD></TR>
1682
dba45a1aafad *** empty log message ***
gabucino
parents: 1668
diff changeset
129 </TABLE>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
130
6877
diego
parents: 6405
diff changeset
131 <P>The default device is <CODE>/dev/dvd</CODE>, you can change it in
diego
parents: 6405
diff changeset
132 <CODE>config.h</CODE> (compile time option), or you can specify it using the
diego
parents: 6405
diff changeset
133 <CODE>-dvd-device</CODE> option:</P>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
134
4634
bd379eaac1ab applied Alban Bedel's patch (-dvd-device and -cdrom-device)
gabucino
parents: 4398
diff changeset
135 <P>&nbsp;&nbsp;&nbsp;&nbsp;<CODE>mplayer -dvd 1 -dvd-device /dev/dvd</CODE></P>
bd379eaac1ab applied Alban Bedel's patch (-dvd-device and -cdrom-device)
gabucino
parents: 4398
diff changeset
136 <P>&nbsp;&nbsp;&nbsp;&nbsp;<CODE>mplayer -dvd 1 -slang en -dvd-device /dev/dvd</CODE></P>
bd379eaac1ab applied Alban Bedel's patch (-dvd-device and -cdrom-device)
gabucino
parents: 4398
diff changeset
137 <P>&nbsp;&nbsp;&nbsp;&nbsp;<CODE>mplayer -dvd 1 -slang en -dvd-device /dev/dvd -chapter 20-25</CODE></P>
4057
0d9bf4a76dab old-style DVD options added
gabucino
parents: 3799
diff changeset
138 <P>&nbsp;&nbsp;&nbsp;&nbsp;<CODE>mplayer -dvd 2 -alang sp -chapter 5 -dvdangle 2</CODE></P>
0d9bf4a76dab old-style DVD options added
gabucino
parents: 3799
diff changeset
139 <P>&nbsp;&nbsp;&nbsp;&nbsp;<CODE>mplayer -dvdauth /dev/dvd /mnt/cd/video_ts/vts_03_1.vob</CODE></P>
0d9bf4a76dab old-style DVD options added
gabucino
parents: 3799
diff changeset
140 <P>&nbsp;&nbsp;&nbsp;&nbsp;<CODE>mplayer -dvdkey C005D4A16D vts_03_1.vob</CODE></P>
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
141
6878
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
142
6906
3274d0725fde Changed all link names from the section number to a sensible label.
diego
parents: 6882
diff changeset
143 <P><B><A NAME="vcd">4.3 VCD playback</A></B></P>
6878
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
144
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
145 <P>Playing standard Video CDs:</P>
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
146
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
147 <P><CODE>mplayer -vcd &lt;track&gt; [-cdrom-device device]</CODE></P>
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
148
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
149 <P>Examples:<BR>
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
150 <CODE>mplayer -vcd 1<BR>
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
151 mplayer -fs -vcd 2 -cdrom-device /dev/hdc</CODE></P>
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
152
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
153 Notes:
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
154 <UL>
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
155 <LI>Do <B>not</B> mount VCD disks and play DAT files directly! It may work
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
156 under Windows but will not under Linux. You have to play VCDs with the
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
157 <CODE>-vcd</CODE> option.</LI>
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
158 <LI>VCD disks usually have 2 tracks: a data track (containing autostart
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
159 Windows playback program, karaoke data etc) and a mode-2 track (the movie).
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
160 So try <CODE>-vcd 2</CODE> first.</LI>
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
161 <LI>The default VCD device is <CODE>/dev/cdrom</CODE>. If your setup differs,
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
162 make a symlink, or specify the correct device on the command line with the
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
163 <CODE>-cdrom-device</CODE> option.</LI>
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
164 </UL>
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
165
0374fdb8eeb0 Result of review by Nilmoni Deb <ndeb@ece.cmu.edu>.
diego
parents: 6877
diff changeset
166
1612
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
167 </BODY>
1b011d6150c7 new, splitted, etc dox
gabucino
parents:
diff changeset
168 </HTML>