Mercurial > mplayer.hg
comparison DOCS/cd-dvd.html @ 6877:d92bd0cee112
Review
Almost completely reworded, consistency and spellchecking.
Removed "Compiling MPlayer" section for lack of useful information.
author | diego |
---|---|
date | Sat, 03 Aug 2002 01:32:14 +0000 |
parents | d0f408a8b150 |
children | 0374fdb8eeb0 |
comparison
equal
deleted
inserted
replaced
6876:49485d9f0d47 | 6877:d92bd0cee112 |
---|---|
11 | 11 |
12 <P><B><A NAME=4.1>4.1. CD-ROM drives</A></B></P> | 12 <P><B><A NAME=4.1>4.1. CD-ROM drives</A></B></P> |
13 | 13 |
14 <P>Playing standard Video CDs:</P> | 14 <P>Playing standard Video CDs:</P> |
15 | 15 |
16 <P> | 16 <P><CODE>mplayer -vcd <track> [-cdrom-device device]</CODE></P> |
17 mplayer -vcd <I>trackno</I> [-cdrom-device device]<BR><BR> | |
18 Examples:<BR> | |
19 mplayer -vcd 1<BR> | |
20 mplayer -fs -vcd 2 -cdrom-device /dev/hdc<BR> | |
21 </P> | |
22 | 17 |
23 <P> | 18 <P>Examples:<BR> |
24 Notes:<BR> | 19 <CODE>mplayer -vcd 1<BR> |
25 - Do NOT mount VCD disks and play DAT files directly! It may work under windows | 20 mplayer -fs -vcd 2 -cdrom-device /dev/hdc</CODE></P> |
26 but won't work under linux. You have to play them directly, with the -vcd | |
27 option!<BR> | |
28 - VCD disks usually have 2 tracks: a data track (containing autostart windows | |
29 playback program, karaoke data etc) and a mode-2 track (the movie), so try | |
30 -vcd 2 first!<BR> | |
31 - the default VCD device is /dev/cdrom. if your device differs, then you have | |
32 to make a symlink, or specify it in command line! | |
33 </P> | |
34 | 21 |
35 <P>From Linux documentation:</P> | 22 Notes: |
23 <UL> | |
24 <LI>Do <B>not</B> mount VCD disks and play DAT files directly! It may work | |
25 under Windows but will not under Linux. You have to play VCDs with the | |
26 <CODE>-vcd</CODE> option.</LI> | |
27 <LI>VCD disks usually have 2 tracks: a data track (containing autostart | |
28 Windows playback program, karaoke data etc) and a mode-2 track (the movie). | |
29 So try <CODE>-vcd 2</CODE> first.</LI> | |
30 <LI>The default VCD device is <CODE>/dev/cdrom</CODE>. If your setup differs, | |
31 make a symlink, or specify the correct device on the command line with the | |
32 <CODE>-cdrom-device</CODE> option.</LI> | |
33 </UL> | |
36 | 34 |
37 <P>Some CDROM drives are capable of changing their head-speed. There are several | 35 <P>Linux documentation excerpt:</P> |
38 reasons for changing the speed of a CDROM drive. Badly pressed CDROMs may | |
39 benefit from less-than-maximum head rate. Modern CDROM drives can obtain very | |
40 high head rates (up to 24-times is common). It has been reported that these | |
41 drives can make reading errors at these high speeds, reducing the speed can | |
42 prevent data loss in these circumstances. Finally, some of these drives can | |
43 make an annoyingly loud noise, which a lower speed may reduce.</P> | |
44 | 36 |
45 <P>The recommended way to do it is with a program called 'setcd' . It's kinda | 37 <P>Some CD-ROM drives are capable of changing their head speed. There are |
46 old, but won't be too hard to find on the Net. (UPDATE : new hdparm | 38 several reasons for changing the speed of a CD-ROM drive. Badly pressed |
47 has an option for this !) | 39 CD-ROMs may benefit from less-than-maximum head speed. Modern CD-ROM drives |
48 Use it with :</P> | 40 can obtain very high head speeds. It has been reported that these drives can |
41 make read errors at these high speeds, reducing the speed can prevent data | |
42 loss under these circumstances. Finally, some of these drives can make an | |
43 annoyingly loud noise, which a lower speed may reduce.</P> | |
44 | |
45 <P>You can reduce the drive speed with hdparm or a program called setcd. | |
46 It works like this:</P> | |
47 | |
48 <P> <CODE>hdparm -E [speed] [cdrom device]</CODE></P> | |
49 | 49 |
50 <P> <CODE>setcd -x [speed] [cdrom device]</CODE></P> | 50 <P> <CODE>setcd -x [speed] [cdrom device]</CODE></P> |
51 | 51 |
52 <P>Also you can try:</P> | 52 <P>You can also try</P> |
53 | 53 |
54 <P> <CODE>echo current_speed:4 >/proc/ide/[cdrom device]/settings</CODE></P> | 54 <P> <CODE>echo current_speed:4 >/proc/ide/[cdrom device]/settings</CODE></P> |
55 | 55 |
56 <P>but you'll need root privileges. I use following command too:</P> | 56 <P>but you will need root privileges. The following command may also help:</P> |
57 | 57 |
58 <P> <CODE>echo file_readahead:2000000 >/proc/ide/[cdrom device]/settings</CODE></P> | 58 <P> <CODE>echo file_readahead:2000000 >/proc/ide/[cdrom device]/settings</CODE></P> |
59 | 59 |
60 <P>for 2MB prefetched reading from the file (it's useful for scratched CDROMs). | 60 <P>This sets prefetched file reading to 2MB, which helps with scratched CD-ROMs. |
61 It's recommended that you tuneup your CDROM drive also with hdparm:</P> | 61 It is recommended that you also tune your CD-ROM drive with hdparm:</P> |
62 | 62 |
63 <P> <CODE>hdparm -d1 -a8 -u1 (cdrom device)</CODE></P> | 63 <P> <CODE>hdparm -d1 -a8 -u1 (cdrom device)</CODE></P> |
64 | 64 |
65 <P>to enable using DMA access, readahead, and IRQ unmasking. | 65 <P>This enables DMA access, read-ahead, and IRQ unmasking (read the hdparm man |
66 (if you don't understand these, *read the hdparm man page*)</P> | 66 page for a detailed explanation).</P> |
67 | 67 |
68 <P>Please refer to "<CODE>/proc/ide/[cdrom device]/settings</CODE>" for fine-tuning your | 68 <P>Please refer to "<CODE>/proc/ide/[cdrom device]/settings</CODE>" for |
69 CDROM.</P> | 69 fine-tuning your CD-ROM.</P> |
70 | 70 |
71 <P><B><A NAME=4.2>4.2. DVD playback</A></B></P> | 71 <P><B><A NAME=4.2>4.2. DVD playback</A></B></P> |
72 | 72 |
73 <P><B>MPlayer</B> uses <CODE>libdvdread</CODE> and <CODE>libdvdcss</CODE> for | 73 <P><B>MPlayer</B> uses <CODE>libdvdread</CODE> and <CODE>libdvdcss</CODE> for |
74 DVD decryption and playing. These two libraries are contained in the | 74 DVD decryption and playback. These two libraries are contained in the |
75 <CODE>libmpdvdkit/</CODE> subdirectory in the <B>MPlayer</B> tree, you | 75 <CODE>libmpdvdkit/</CODE> subdirectory of the <B>MPlayer</B> source tree, you |
76 don't have to install them separately. We opt for this solution because | 76 do not have to install them separately. We opted for this solution because |
77 we had to fix a libdvdread bug, and apply a patch which adds | 77 we had to fix a libdvdread bug, and apply a patch which adds |
78 <B>cracked CSS keys caching support</B> for libdvdcss (results in large | 78 <B>cracked CSS keys caching support</B> to libdvdcss. This results in a large |
79 speed increase before playing). These cracked keys are stored in | 79 speed increase because the keys do not have to be cracked every time before |
80 <CODE>$HOME/.mplayer/DVDKeys</CODE> directory.</P> | 80 playing. The cracked keys are stored in the |
81 <CODE>~/.mplayer/DVDKeys</CODE> directory.</P> | |
81 | 82 |
82 <P>Support for <CODE>dvdnav</CODE> is being added (not usable now).</P> | 83 <P><B>MPlayer</B> can also use system-wide <CODE>libdvdread</CODE> and |
84 <CODE>libdvdcss</CODE> libraries, but this solution is <B>not</B> recommended, | |
85 as it can result in bugs, library incompatibilities, and slower speed.</P> | |
86 | |
87 <P>Support for DVD navigation via <CODE>dvdnav</CODE> is being worked on, but | |
88 not finished yet.</P> | |
83 | 89 |
84 <P><B>Old-style DVD support - <I>OPTIONAL</I></B></P> | 90 <P><B>Old-style DVD support - <I>OPTIONAL</I></B></P> |
85 | 91 |
86 <P>Useful if you want to play encoded VOB's from hard disk. Compile and | 92 <P>Useful if you want to play encoded VOBs from hard disk. Compile and |
87 install <B>libcss</B> 0.0.1 (not newer) (if <B>MPlayer</B> can't detect | 93 install <B>libcss</B> 0.0.1 (not newer) for this (If <B>MPlayer</B> fails to |
88 it, use the <CODE>-csslib /path/to/libcss.so</CODE> option).</P> | 94 detect it, use the <CODE>-csslib /path/to/libcss.so</CODE> option).</P> |
89 | |
90 <P><B>Compile MPlayer.</B></P> | |
91 | |
92 <P>Run <CODE>./configure</CODE>. If you didn't delete | |
93 <CODE>libmpdvdkit</CODE> subdirectory from MPlayer tree, ./configure should | |
94 say the following:</P> | |
95 | |
96 <P><CODE>Checking for DVD support (libmpdvdkit) ... yes</CODE></P> | |
97 | |
98 <P>(of course you can put your favourite configure options into the command | |
99 line when you run ./configure)</P> | |
100 | |
101 <P><B>MPlayer</B> can use <CODE>libdvdread</CODE> and <CODE>libdvdcss</CODE> | |
102 libraries installed system-wide, but this solution is NOT RECOMMENDED, as | |
103 can result in bugs, library incompatibilities, and slower speed.</P> | |
104 | |
105 <P>Either way, say: <CODE>make</CODE>, then <CODE>make install</CODE>.</P> | |
106 | 95 |
107 <P><B>Using MPlayer to play DVDs:</B></P> | 96 <P><B>Using MPlayer to play DVDs:</B></P> |
108 | 97 |
109 | 98 |
110 <TABLE BORDER=0 WIDTH="100%"><TR> | 99 <TABLE BORDER=0 WIDTH="100%"> |
111 <TD VALIGN=top>-dvd <title_id> </TD> | 100 <TR><TD VALIGN=top><CODE>-dvd <title_id> </CODE></TD> |
112 <TD>Enables DVD support and selects title.</TD><TR> | 101 <TD>Enables DVD support and selects title.</TD><TR> |
113 <TD VALIGN=top>-chapter <chapter_id> </TD> | 102 <TD VALIGN=top><CODE>-chapter <chapter_id> </CODE></TD> |
114 <TD>Selects DVD chapter(s) to play (default: play from chapter 1). | 103 <TD>Selects DVD chapter(s) to play (default: 1). |
115 Example : <CODE>-chapter 5-10</CODE> or <CODE>-chapter -9</CODE></TD><TR> | 104 Example: <CODE>-chapter 5-10</CODE> or <CODE>-chapter -9</CODE></TD></TR> |
116 <TD VALIGN=top>-dvdangle <angle_id> </TD> | 105 <TR><TD VALIGN=top><CODE>-dvdangle <angle_id> </CODE></TD> |
117 <TD>Selects camera angle (default: 1)</TD><TR> | 106 <TD>Selects camera angle (default: 1)</TD><TR> |
118 <TD VALIGN=top>-alang <country code> </TD> | 107 <TD VALIGN=top><CODE>-alang <country code> </CODE></TD> |
119 <TD> The <CODE>country code</CODE> tells <B>MPlayer</B> which audio language(s) to prefer. | 108 <TD> |
120 For the list of available languages, add <CODE>-v</CODE> option after | 109 The <CODE>country code</CODE> tells <B>MPlayer</B> which audio language(s) to prefer. |
121 your DVD options, and browse the output.<BR> | 110 For a list of available languages, add the <CODE>-v</CODE> option after |
122 For example :<BR> | 111 your DVD options and browse the output.<BR> |
123 <CODE>-alang hu,en</CODE> - first tries to find hungarian | 112 For example:<BR> |
124 audio, and if not found, decode english audio.</TD><TR> | 113 <CODE>-alang hu,en</CODE> - Tries to find Hungarian audio, |
125 <TD VALIGN=top>-slang <country code> </TD> | 114 falling back to English audio.</TD></TR> |
126 <TD> Turns on DVD subtitles. The <CODE>country code</CODE> tells <B>MPlayer</B> | 115 <TR><TD VALIGN=top><CODE>-slang <country code> </CODE></TD> |
116 <TD> | |
117 Turns on DVD subtitles. The <CODE>country code</CODE> tells <B>MPlayer</B> | |
127 which language(s) to prefer. | 118 which language(s) to prefer. |
128 For the list of available languages, add <CODE>-v</CODE> option after | 119 For the list of available languages, add the <CODE>-v</CODE> option after |
129 your DVD options, and browse the output.<BR> | 120 your DVD options and browse the output.<BR> |
130 For example :<BR> | 121 For example:<BR> |
131 <CODE>-slang hu,en</CODE> - first tries to display hungarian | 122 <CODE>-slang hu,en</CODE> - Tries to display Hungarian subtitles, |
132 subtitles, and if not found, display english subtitles.</TD><TR> | 123 falling back to English subtitles.</TD></TR> |
133 <TD VALIGN=top>-sid <subtitle_id> </TD> | 124 <TR><TD VALIGN=top><CODE>-sid <subtitle_id> </CODE></TD> |
134 <TD> Displays a subtitle channel with the given <CODE>id</CODE> (values can be | 125 <TD> |
135 0-31). Useful for example with badly mastered DVDs where country code | 126 Displays a subtitle channel with the given <CODE>id</CODE> (values can be |
136 selects the wrong channel.</TD><TR> | 127 0-31). Useful with badly mastered DVDs where the country code |
137 <TD VALIGN=top>-csslib <path/filename></TD> | 128 selects the wrong channel.</TD></TR> |
138 <TD> (old-style DVD option) This option is used to override the default location | 129 <TR><TD VALIGN=top><CODE>-csslib <path/filename></CODE></TD> |
139 of <CODE>libcss.so</CODE> | 130 <TD> |
140 </TD><TR> | 131 (old-style DVD option) This option is used to override the default location |
141 <TD VALIGN=top>-dvdauth <DVD device> </TD> | 132 of <CODE>libcss.so</CODE>. |
142 <TD> (old-style DVD option) Turns on DVD authentication using the given device. | 133 </TD></TR> |
143 </TD><TR> | 134 <TR><TD VALIGN=top><CODE>-dvdauth <DVD device> </CODE></TD> |
144 <TD VALIGN=top>-dvdkey <CSS key></TD> | 135 <TD> |
145 <TD> (old-style DVD option) When decoding from non-DVD, this option gives the | 136 (old-style DVD option) Turns on DVD authentication using the given device. |
137 </TD></TR> | |
138 <TR><TD VALIGN=top><CODE>-dvdkey <CSS key></CODE></TD> | |
139 <TD> | |
140 (old-style DVD option) When decoding from non-DVD, this option gives the | |
146 CSS key needed to crack the DVD (the key is printed when authenticating | 141 CSS key needed to crack the DVD (the key is printed when authenticating |
147 with DVD). | 142 with DVD). |
148 </TD> | 143 </TD></TR> |
149 </TABLE> | 144 </TABLE> |
150 | 145 |
151 <P>Default device is <CODE>/dev/dvd</CODE>, you can change it in config.h | 146 <P>The default device is <CODE>/dev/dvd</CODE>, you can change it in |
152 (compile time option), or you can specify it using the -dvd-device option : | 147 <CODE>config.h</CODE> (compile time option), or you can specify it using the |
153 </P> | 148 <CODE>-dvd-device</CODE> option:</P> |
154 | 149 |
155 <P> <CODE>mplayer -dvd 1 -dvd-device /dev/dvd</CODE></P> | 150 <P> <CODE>mplayer -dvd 1 -dvd-device /dev/dvd</CODE></P> |
156 <P> <CODE>mplayer -dvd 1 -slang en -dvd-device /dev/dvd</CODE></P> | 151 <P> <CODE>mplayer -dvd 1 -slang en -dvd-device /dev/dvd</CODE></P> |
157 <P> <CODE>mplayer -dvd 1 -slang en -dvd-device /dev/dvd -chapter 20-25</CODE></P> | 152 <P> <CODE>mplayer -dvd 1 -slang en -dvd-device /dev/dvd -chapter 20-25</CODE></P> |
158 <P> <CODE>mplayer -dvd 2 -alang sp -chapter 5 -dvdangle 2</CODE></P> | 153 <P> <CODE>mplayer -dvd 2 -alang sp -chapter 5 -dvdangle 2</CODE></P> |