Mercurial > mplayer.hg
annotate DOCS/cd-dvd.html @ 6879:7e5f45cc7af4
-dvdkey option clarified.
author | diego |
---|---|
date | Sat, 03 Aug 2002 20:36:53 +0000 |
parents | 0374fdb8eeb0 |
children | f3f87f6bf5cf |
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 | 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> |
6391 | 5 <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
|
6 <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
|
7 </HEAD> |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
8 |
6405
d0f408a8b150
Background color now set by CSS, added doctype and charset, misc HTML fixes
diego
parents:
6393
diff
changeset
|
9 <BODY> |
1704 | 10 |
1612 | 11 |
1682 | 12 <P><B><A NAME=4.1>4.1. CD-ROM drives</A></B></P> |
13 | |
6877 | 14 <P>Linux documentation excerpt:</P> |
1612 | 15 |
6878 | 16 <P>Modern CD-ROM drives can attain very high head speeds, yet some CD-ROM drives |
17 are capable of running at reduced speeds. There are several reasons that might | |
18 make you consider changing the speed of a CD-ROM drive:</P> | |
19 | |
20 <UL> | |
21 <LI>Ther have been reports of read errors at these high speeds, especially | |
22 with badly pressed CD-ROMs. Reducing the speed can prevent data loss under | |
23 these circumstances.</LI> | |
24 <LI>Many CD-ROM drives are annoyingly loud, a lower speed may reduce the | |
25 noise.</LI> | |
26 </UL> | |
1612 | 27 |
6877 | 28 <P>You can reduce the drive speed with hdparm or a program called setcd. |
29 It works like this:</P> | |
30 | |
31 <P> <CODE>hdparm -E [speed] [cdrom device]</CODE></P> | |
1682 | 32 |
33 <P> <CODE>setcd -x [speed] [cdrom device]</CODE></P> | |
1612 | 34 |
6877 | 35 <P>You can also try</P> |
1682 | 36 |
37 <P> <CODE>echo current_speed:4 >/proc/ide/[cdrom device]/settings</CODE></P> | |
38 | |
6877 | 39 <P>but you will need root privileges. The following command may also help:</P> |
1682 | 40 |
41 <P> <CODE>echo file_readahead:2000000 >/proc/ide/[cdrom device]/settings</CODE></P> | |
1612 | 42 |
6877 | 43 <P>This sets prefetched file reading to 2MB, which helps with scratched CD-ROMs. |
44 It is recommended that you also tune your CD-ROM drive with hdparm:</P> | |
1682 | 45 |
46 <P> <CODE>hdparm -d1 -a8 -u1 (cdrom device)</CODE></P> | |
1612 | 47 |
6877 | 48 <P>This enables DMA access, read-ahead, and IRQ unmasking (read the hdparm man |
49 page for a detailed explanation).</P> | |
1612 | 50 |
6877 | 51 <P>Please refer to "<CODE>/proc/ide/[cdrom device]/settings</CODE>" for |
52 fine-tuning your CD-ROM.</P> | |
1612 | 53 |
6878 | 54 |
1682 | 55 <P><B><A NAME=4.2>4.2. DVD playback</A></B></P> |
56 | |
5859 | 57 <P><B>MPlayer</B> uses <CODE>libdvdread</CODE> and <CODE>libdvdcss</CODE> for |
6877 | 58 DVD decryption and playback. These two libraries are contained in the |
59 <CODE>libmpdvdkit/</CODE> subdirectory of the <B>MPlayer</B> source tree, you | |
60 do not have to install them separately. We opted for this solution because | |
5859 | 61 we had to fix a libdvdread bug, and apply a patch which adds |
6877 | 62 <B>cracked CSS keys caching support</B> to libdvdcss. This results in a large |
63 speed increase because the keys do not have to be cracked every time before | |
64 playing. The cracked keys are stored in the | |
65 <CODE>~/.mplayer/DVDKeys</CODE> directory.</P> | |
1612 | 66 |
6877 | 67 <P><B>MPlayer</B> can also use system-wide <CODE>libdvdread</CODE> and |
68 <CODE>libdvdcss</CODE> libraries, but this solution is <B>not</B> recommended, | |
69 as it can result in bugs, library incompatibilities, and slower speed.</P> | |
70 | |
71 <P>Support for DVD navigation via <CODE>dvdnav</CODE> is being worked on, but | |
72 not finished yet.</P> | |
4057 | 73 |
6405
d0f408a8b150
Background color now set by CSS, added doctype and charset, misc HTML fixes
diego
parents:
6393
diff
changeset
|
74 <P><B>Old-style DVD support - <I>OPTIONAL</I></B></P> |
4057 | 75 |
6877 | 76 <P>Useful if you want to play encoded VOBs from hard disk. Compile and |
77 install <B>libcss</B> 0.0.1 (not newer) for this (If <B>MPlayer</B> fails to | |
78 detect it, use the <CODE>-csslib /path/to/libcss.so</CODE> option).</P> | |
1612 | 79 |
1682 | 80 <P><B>Using MPlayer to play DVDs:</B></P> |
1612 | 81 |
82 | |
6877 | 83 <TABLE BORDER=0 WIDTH="100%"> |
84 <TR><TD VALIGN=top><CODE>-dvd <title_id> </CODE></TD> | |
6393 | 85 <TD>Enables DVD support and selects title.</TD><TR> |
6877 | 86 <TD VALIGN=top><CODE>-chapter <chapter_id> </CODE></TD> |
87 <TD>Selects DVD chapter(s) to play (default: 1). | |
88 Example: <CODE>-chapter 5-10</CODE> or <CODE>-chapter -9</CODE></TD></TR> | |
89 <TR><TD VALIGN=top><CODE>-dvdangle <angle_id> </CODE></TD> | |
6393 | 90 <TD>Selects camera angle (default: 1)</TD><TR> |
6877 | 91 <TD VALIGN=top><CODE>-alang <country code> </CODE></TD> |
92 <TD> | |
93 The <CODE>country code</CODE> tells <B>MPlayer</B> which audio language(s) to prefer. | |
94 For a list of available languages, add the <CODE>-v</CODE> option after | |
95 your DVD options and browse the output.<BR> | |
96 For example:<BR> | |
97 <CODE>-alang hu,en</CODE> - Tries to find Hungarian audio, | |
98 falling back to English audio.</TD></TR> | |
99 <TR><TD VALIGN=top><CODE>-slang <country code> </CODE></TD> | |
100 <TD> | |
101 Turns on DVD subtitles. The <CODE>country code</CODE> tells <B>MPlayer</B> | |
3796 | 102 which language(s) to prefer. |
6877 | 103 For the list of available languages, add the <CODE>-v</CODE> option after |
104 your DVD options and browse the output.<BR> | |
105 For example:<BR> | |
106 <CODE>-slang hu,en</CODE> - Tries to display Hungarian subtitles, | |
107 falling back to English subtitles.</TD></TR> | |
108 <TR><TD VALIGN=top><CODE>-sid <subtitle_id> </CODE></TD> | |
109 <TD> | |
110 Displays a subtitle channel with the given <CODE>id</CODE> (values can be | |
111 0-31). Useful with badly mastered DVDs where the country code | |
112 selects the wrong channel.</TD></TR> | |
113 <TR><TD VALIGN=top><CODE>-csslib <path/filename></CODE></TD> | |
114 <TD> | |
115 (old-style DVD option) This option is used to override the default location | |
116 of <CODE>libcss.so</CODE>. | |
117 </TD></TR> | |
118 <TR><TD VALIGN=top><CODE>-dvdauth <DVD device> </CODE></TD> | |
119 <TD> | |
120 (old-style DVD option) Turns on DVD authentication using the given device. | |
121 </TD></TR> | |
122 <TR><TD VALIGN=top><CODE>-dvdkey <CSS key></CODE></TD> | |
123 <TD> | |
6879 | 124 (old-style DVD option) When decoding a VOB file copied undecrypted from DVD, |
125 this option gives the CSS key needed to decrypt the VOB (the key is printed | |
126 when authenticating with the DVD drive using -dvdauth). | |
6877 | 127 </TD></TR> |
1682 | 128 </TABLE> |
1612 | 129 |
6877 | 130 <P>The default device is <CODE>/dev/dvd</CODE>, you can change it in |
131 <CODE>config.h</CODE> (compile time option), or you can specify it using the | |
132 <CODE>-dvd-device</CODE> option:</P> | |
1612 | 133 |
4634
bd379eaac1ab
applied Alban Bedel's patch (-dvd-device and -cdrom-device)
gabucino
parents:
4398
diff
changeset
|
134 <P> <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
|
135 <P> <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
|
136 <P> <CODE>mplayer -dvd 1 -slang en -dvd-device /dev/dvd -chapter 20-25</CODE></P> |
4057 | 137 <P> <CODE>mplayer -dvd 2 -alang sp -chapter 5 -dvdangle 2</CODE></P> |
138 <P> <CODE>mplayer -dvdauth /dev/dvd /mnt/cd/video_ts/vts_03_1.vob</CODE></P> | |
139 <P> <CODE>mplayer -dvdkey C005D4A16D vts_03_1.vob</CODE></P> | |
1612 | 140 |
6878 | 141 |
142 <P><B><A NAME=4.3>4.3. VCD playback</A></B></P> | |
143 | |
144 <P>Playing standard Video CDs:</P> | |
145 | |
146 <P><CODE>mplayer -vcd <track> [-cdrom-device device]</CODE></P> | |
147 | |
148 <P>Examples:<BR> | |
149 <CODE>mplayer -vcd 1<BR> | |
150 mplayer -fs -vcd 2 -cdrom-device /dev/hdc</CODE></P> | |
151 | |
152 Notes: | |
153 <UL> | |
154 <LI>Do <B>not</B> mount VCD disks and play DAT files directly! It may work | |
155 under Windows but will not under Linux. You have to play VCDs with the | |
156 <CODE>-vcd</CODE> option.</LI> | |
157 <LI>VCD disks usually have 2 tracks: a data track (containing autostart | |
158 Windows playback program, karaoke data etc) and a mode-2 track (the movie). | |
159 So try <CODE>-vcd 2</CODE> first.</LI> | |
160 <LI>The default VCD device is <CODE>/dev/cdrom</CODE>. If your setup differs, | |
161 make a symlink, or specify the correct device on the command line with the | |
162 <CODE>-cdrom-device</CODE> option.</LI> | |
163 </UL> | |
164 | |
165 | |
1612 | 166 </BODY> |
167 </HTML> |