Mercurial > mplayer.hg
annotate DOCS/cd-dvd.html @ 5859:a24e39bf2776
updated DVD documentation for libmpdvdkit
author | gabucino |
---|---|
date | Sat, 27 Apr 2002 09:08:30 +0000 |
parents | 6cb9d9a1716d |
children | 54283d7bc90a |
rev | line source |
---|---|
4398 | 1 |
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> |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
5 <STYLE> |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
6 .text |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
7 {font-family : Verdana, Arial, Helvetica, sans-serif; |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
8 font-size : 14px;} |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
9 </STYLE> |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
10 </HEAD> |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
11 |
1704 | 12 <BODY BGCOLOR=white> |
13 | |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
14 <FONT CLASS="text"> |
1612 | 15 |
1682 | 16 <P><B><A NAME=4.1>4.1. CD-ROM drives</A></B></P> |
17 | |
1867 | 18 <P>Playing standard Video CDs:</P> |
19 | |
20 <P> | |
4634
bd379eaac1ab
applied Alban Bedel's patch (-dvd-device and -cdrom-device)
gabucino
parents:
4398
diff
changeset
|
21 mplayer -vcd <I>trackno</I> [-cdrom-device device]<BR><BR> |
1867 | 22 Examples:<BR> |
23 mplayer -vcd 1<BR> | |
4634
bd379eaac1ab
applied Alban Bedel's patch (-dvd-device and -cdrom-device)
gabucino
parents:
4398
diff
changeset
|
24 mplayer -fs -vcd 2 -cdrom-device /dev/hdc<BR> |
1867 | 25 </P> |
26 | |
27 <P> | |
28 Notes:<BR> | |
29 - Do NOT mount VCD disks and play DAT files directly! It may work under windows | |
30 but won't work under linux. You have to play them directly, with the -vcd | |
31 option!<BR> | |
32 - VCD disks usually have 2 tracks: a data track (containing autostart windows | |
33 playback program, karaoke data etc) and a mode-2 track (the movie), so try | |
34 -vcd 2 first!<BR> | |
35 - the default VCD device is /dev/cdrom. if your device differs, then you have | |
36 to make a symlink, or specify it in command line! | |
37 </P> | |
38 | |
1682 | 39 <P>From Linux documentation:</P> |
1612 | 40 |
1682 | 41 <P>Some CDROM drives are capable of changing their head-speed. There are several |
42 reasons for changing the speed of a CDROM drive. Badly pressed CDROMs may | |
43 benefit from less-than-maximum head rate. Modern CDROM drives can obtain very | |
44 high head rates (up to 24-times is common). It has been reported that these | |
45 drives can make reading errors at these high speeds, reducing the speed can | |
46 prevent data loss in these circumstances. Finally, some of these drives can | |
47 make an annoyingly loud noise, which a lower speed may reduce.</P> | |
1612 | 48 |
1682 | 49 <P>The recommended way to do it is with a program called 'setcd' . It's kinda |
50 old, but won't be too hard to find on the Net. (UPDATE : new hdparm | |
51 has an option for this !) | |
52 Use it with :</P> | |
53 | |
54 <P> <CODE>setcd -x [speed] [cdrom device]</CODE></P> | |
1612 | 55 |
1682 | 56 <P>Also you can try:</P> |
57 | |
58 <P> <CODE>echo current_speed:4 >/proc/ide/[cdrom device]/settings</CODE></P> | |
59 | |
60 <P>but you'll need root privileges. I use following command too:</P> | |
61 | |
62 <P> <CODE>echo file_readahead:2000000 >/proc/ide/[cdrom device]/settings</CODE></P> | |
1612 | 63 |
1682 | 64 <P>for 2MB prefetched reading from the file (it's useful for scratched CDROMs). |
65 It's recommended that you tuneup your CDROM drive also with hdparm:</P> | |
66 | |
67 <P> <CODE>hdparm -d1 -a8 -u1 (cdrom device)</CODE></P> | |
1612 | 68 |
1682 | 69 <P>to enable using DMA access, readahead, and IRQ unmasking. |
70 (if you don't understand these, *read the hdparm manpage*)</P> | |
1612 | 71 |
1682 | 72 <P>Please refer to "<CODE>/proc/ide/[cdrom device]/settings</CODE>" for fine-tuning your |
73 CDROM.</P> | |
1612 | 74 |
1682 | 75 <P><B><A NAME=4.2>4.2. DVD playback</A></B></P> |
76 | |
5859 | 77 <P><B>MPlayer</B> uses <CODE>libdvdread</CODE> and <CODE>libdvdcss</CODE> for |
78 DVD decryption and playing. These two libraries are contained in the | |
79 <CODE>libmpdvdkit/</CODE> subdirectory in the <B>MPlayer</B> tree, you | |
80 don't have to install them separately. We opt for this solution because | |
81 we had to fix a libdvdread bug, and apply a patch which adds | |
82 <B>cracked CSS keys caching support</B> for libdvdcss (results in large | |
83 speed increase before playing). These cracked keys are stored in | |
84 <CODE>$HOME/.mplayer/DVDKeys</CODE> directory.</P> | |
1612 | 85 |
5859 | 86 <P>Support for <CODE>dvdnav</CODE> is being added (not usable now).</P> |
4057 | 87 |
88 <LI><P><B>Old-style DVD support - <I>OPTIONAL</I></B></P> | |
89 | |
4177 | 90 <P><I>Useful if you want to play encoded VOB's from hard disk. Compile and |
91 install <B>libcss</B> 0.0.1 (not newer) (if <B>MPlayer</B> can't detect | |
92 it, use the <CODE>-csslib /path/to/libcss.so</CODE> option).</P></LI> | |
4057 | 93 |
5859 | 94 <LI><P><B>Compile MPlayer.</B></P> |
95 | |
96 <P>Run <CODE>./configure</CODE>. If you didn't delete | |
97 <CODE>libmpdvdkit</CODE> subdirectory from MPlayer tree, ./configure should | |
98 say the following:</P> | |
99 | |
100 <P><CODE>Checking for DVD support (libmpdvdkit) ... yes</CODE></P> | |
1612 | 101 |
5859 | 102 <P>(of course you can put your favourite configure options into the command |
103 line when you run ./configure)</P> | |
104 | |
105 <P><B>MPlayer</B> can use <CODE>libdvdread</CODE> and <CODE>libdvdcss</CODE> | |
106 libraries installed system-wide, but this solution is NOT RECOMMENDED, as | |
107 can result in bugs, library incompatibilities, and slower speed.</P> | |
108 | |
109 <P>Either way, say: <CODE>make</CODE>, then <CODE>make install</CODE>.</P> | |
1612 | 110 |
1682 | 111 <P><B>Using MPlayer to play DVDs:</B></P> |
1612 | 112 |
113 | |
1682 | 114 <TABLE BORDER=0 WIDTH=100%> |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
115 <TD VALIGN=top><FONT CLASS="text">-dvd <title_id> </TD> |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
116 <TD><FONT CLASS="text">Enables DVD support and selects title.</TD><TR> |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
117 <TD VALIGN=top><FONT CLASS="text">-chapter <chapter_id> </TD> |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
118 <TD><FONT CLASS="text">Selects DVD chapter(s) to play (default: play from chapter 1). |
4398 | 119 Example : <CODE>-chapter 5-10</CODE> or <CODE>-chapter -9</CODE></TD><TR> |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
120 <TD VALIGN=top><FONT CLASS="text">-dvdangle <angle_id> </TD> |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
121 <TD><FONT CLASS="text">Selects camera angle (default: 1)</TD><TR> |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
122 <TD VALIGN=top><FONT CLASS="text">-alang <country code> </TD> |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
123 <TD><FONT CLASS="text"> |
3796 | 124 The <CODE>country code</CODE> tells <B>MPlayer</B> which audio language(s) to prefer. |
125 For the list of available languages, add <CODE>-v</CODE> option after | |
126 your DVD options, and browse the output.<BR> | |
127 For example :<BR> | |
3799 | 128 <CODE>-alang hu,en</CODE> - first tries to find hungarian |
3796 | 129 audio, and if not found, decode english audio.</TD></TR> |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
130 <TD VALIGN=top><FONT CLASS="text">-slang <country code> </TD> |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
131 <TD><FONT CLASS="text"> |
3796 | 132 Turns on DVD subtitles. The <CODE>country code</CODE> tells <B>MPlayer</B> |
133 which language(s) to prefer. | |
134 For the list of available languages, add <CODE>-v</CODE> option after | |
135 your DVD options, and browse the output.<BR> | |
136 For example :<BR> | |
3799 | 137 <CODE>-slang hu,en</CODE> - first tries to display hungarian |
3796 | 138 subtitles, and if not found, display english subtitles.</TD></TR> |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
139 <TD VALIGN=top><FONT CLASS="text">-sid <subtitle_id> </TD> |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
140 <TD><FONT CLASS="text"> |
3796 | 141 Displays a subtitle channel with the given <CODE>id</CODE> (values can be |
142 0-31). Useful for example with badly mastered DVDs where country code | |
4057 | 143 selects the wrong channel.</TD></TR> |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
144 <TD VALIGN=top><FONT CLASS="text">-csslib <path/filename></TD> |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
145 <TD><FONT CLASS="text"> |
4057 | 146 (old-style DVD option) This option is used to override the default location |
4177 | 147 of <CODE>libcss.so</CODE> |
4057 | 148 </TD></TR> |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
149 <TD VALIGN=top><FONT CLASS="text">-dvdauth <DVD device> </TD> |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
150 <TD><FONT CLASS="text"> |
4057 | 151 (old-style DVD option) Turns on DVD authentication using the given device. |
152 </TD></TR> | |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
153 <TD VALIGN=top><FONT CLASS="text">-dvdkey <CSS key></TD> |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
154 <TD><FONT CLASS="text"> |
4057 | 155 (old-style DVD option) When decoding from non-DVD, this option gives the |
156 CSS key needed to crack the DVD (the key is printed when authenticating | |
157 with DVD). | |
158 </TD></TR> | |
1682 | 159 </TABLE> |
1612 | 160 |
1682 | 161 <P>Default device is <CODE>/dev/dvd</CODE>, you can change it in config.h |
4634
bd379eaac1ab
applied Alban Bedel's patch (-dvd-device and -cdrom-device)
gabucino
parents:
4398
diff
changeset
|
162 (compile time option), or you can specify it using the -dvd-device option : |
1682 | 163 </P> |
1612 | 164 |
4634
bd379eaac1ab
applied Alban Bedel's patch (-dvd-device and -cdrom-device)
gabucino
parents:
4398
diff
changeset
|
165 <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
|
166 <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
|
167 <P> <CODE>mplayer -dvd 1 -slang en -dvd-device /dev/dvd -chapter 20-25</CODE></P> |
4057 | 168 <P> <CODE>mplayer -dvd 2 -alang sp -chapter 5 -dvdangle 2</CODE></P> |
169 <P> <CODE>mplayer -dvdauth /dev/dvd /mnt/cd/video_ts/vts_03_1.vob</CODE></P> | |
170 <P> <CODE>mplayer -dvdkey C005D4A16D vts_03_1.vob</CODE></P> | |
1612 | 171 |
1682 | 172 <P><B><A NAME=4.3>4.3. DVD playback FAQ</A></B></P> |
1612 | 173 |
1682 | 174 <TABLE BORDER=0 ALIGN=left WIDTH=100%> |
1612 | 175 |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
176 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B><FONT CLASS="text"> |
3350 | 177 Playing a DVD, I encountered this error :<BR> |
178 <CODE>mplayer: ifo_read.c:1143: ifoRead_C_ADT_internal: Assertion nfo_length / | |
179 sizeof(cell_adr_t) >= c_adt->nr_of_vobs' failed.</CODE> | |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
180 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD><FONT CLASS="text"> |
5859 | 181 This is a known libdvdread 0.9.1 bug, it should be already fixed in 0.9.2 and |
182 libmpdvdkit, use the later. | |
3350 | 183 </TD><TR><TD COLSPAN=3> </TD><TR> |
184 | |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
185 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B><FONT CLASS="text"> |
2001 | 186 Can I compile libdvdread and libdvdcss for example on my sweet Sparc/Solaris? |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
187 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD><FONT CLASS="text"> |
1682 | 188 Who knows ... Please test it and send feedback. But it's said that it |
189 should work. Please refer documentation of libdvdread and its homepage | |
190 as well. We're not authors of libdvdread. | |
191 </TD><TR><TD COLSPAN=3> </TD><TR> | |
1612 | 192 |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
193 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B><FONT CLASS="text"> |
3488 | 194 What about subtitles? Can MPlayer display them? |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
195 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD><FONT CLASS="text"> |
3488 | 196 Yes! See above in the DVD chapter. |
1682 | 197 </TD><TR><TD COLSPAN=3> </TD><TR> |
1612 | 198 |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
199 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B><FONT CLASS="text"> |
1682 | 200 How can I set the region code of my DVD-Drive ? I don't have windows! |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
201 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD><FONT CLASS="text"> |
1682 | 202 Use the 'regionset' tool: |
1731 | 203 <A HREF="http://www.linuxtv.org/download/dvd/dvd_disc_20000215.tar.gz">http://www.linuxtv.org/download/dvd/dvd_disc_20000215.tar.gz</A> |
1682 | 204 </TD><TR><TD COLSPAN=3> </TD><TR> |
1612 | 205 |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
206 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B><FONT CLASS="text"> |
1682 | 207 Do I need to be (setuid) root/setuid fibmap_mplayer to be able to play DVD? |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
208 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD><FONT CLASS="text"> |
4057 | 209 No, you don't. Only for old-style DVD support. However of course you must have |
1682 | 210 the proper rights to the DVD device driver entry (in /dev). |
211 </TD><TR><TD COLSPAN=3> </TD><TR> | |
1612 | 212 |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
213 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B><FONT CLASS="text"> |
2001 | 214 Where can I get libdvdread and libdvdcss packages from? |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
215 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD><FONT CLASS="text"> |
1682 | 216 From the site of Ogle: |
217 <A HREF="http://www.dtek.chalmers.se/groups/dvd">http://www.dtek.chalmers.se/groups/dvd</A>. | |
218 </TD><TR><TD COLSPAN=3> </TD><TR> | |
4398 | 219 |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
220 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B><FONT CLASS="text"> |
4398 | 221 Is it possible to play/encode only selected chapters ? |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
222 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD><FONT CLASS="text"> |
4398 | 223 Yes, see the <CODE>-chapter</CODE> option. |
224 </TD><TR><TD COLSPAN=3> </TD><TR> | |
225 | |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
226 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B><FONT CLASS="text"> |
4908
9b2b09d3ff8b
strike period over, commiting stuff. next commit will be rewrite. (?)
gabucino
parents:
4634
diff
changeset
|
227 My DVD playing is sluggish ! |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
228 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD><FONT CLASS="text"> |
4908
9b2b09d3ff8b
strike period over, commiting stuff. next commit will be rewrite. (?)
gabucino
parents:
4634
diff
changeset
|
229 Use the <CODE>-cache</CODE> option (see the manpage!). If it still doesn't |
5859 | 230 work, try enabling DMA for the DVD drive. |
4908
9b2b09d3ff8b
strike period over, commiting stuff. next commit will be rewrite. (?)
gabucino
parents:
4634
diff
changeset
|
231 </TD><TR><TD COLSPAN=3> </TD><TR> |
9b2b09d3ff8b
strike period over, commiting stuff. next commit will be rewrite. (?)
gabucino
parents:
4634
diff
changeset
|
232 |
1682 | 233 </TABLE> |
1612 | 234 |
235 </BODY> | |
236 </HTML> |