4398
|
1
|
1612
|
2 <HTML>
|
1704
|
3 <BODY BGCOLOR=white>
|
|
4
|
|
5 <FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
1612
|
6
|
1682
|
7 <P><B><A NAME=4.1>4.1. CD-ROM drives</A></B></P>
|
|
8
|
1867
|
9 <P>Playing standard Video CDs:</P>
|
|
10
|
|
11 <P>
|
|
12 mplayer -vcd <I>trackno</I> [device]<BR><BR>
|
|
13 Examples:<BR>
|
|
14 mplayer -vcd 1<BR>
|
|
15 mplayer -fs -vcd 2 /dev/hdc<BR>
|
|
16 </P>
|
|
17
|
|
18 <P>
|
|
19 Notes:<BR>
|
|
20 - Do NOT mount VCD disks and play DAT files directly! It may work under windows
|
|
21 but won't work under linux. You have to play them directly, with the -vcd
|
|
22 option!<BR>
|
|
23 - VCD disks usually have 2 tracks: a data track (containing autostart windows
|
|
24 playback program, karaoke data etc) and a mode-2 track (the movie), so try
|
|
25 -vcd 2 first!<BR>
|
|
26 - the default VCD device is /dev/cdrom. if your device differs, then you have
|
|
27 to make a symlink, or specify it in command line!
|
|
28 </P>
|
|
29
|
1682
|
30 <P>From Linux documentation:</P>
|
1612
|
31
|
1682
|
32 <P>Some CDROM drives are capable of changing their head-speed. There are several
|
|
33 reasons for changing the speed of a CDROM drive. Badly pressed CDROMs may
|
|
34 benefit from less-than-maximum head rate. Modern CDROM drives can obtain very
|
|
35 high head rates (up to 24-times is common). It has been reported that these
|
|
36 drives can make reading errors at these high speeds, reducing the speed can
|
|
37 prevent data loss in these circumstances. Finally, some of these drives can
|
|
38 make an annoyingly loud noise, which a lower speed may reduce.</P>
|
1612
|
39
|
1682
|
40 <P>The recommended way to do it is with a program called 'setcd' . It's kinda
|
|
41 old, but won't be too hard to find on the Net. (UPDATE : new hdparm
|
|
42 has an option for this !)
|
|
43 Use it with :</P>
|
|
44
|
|
45 <P> <CODE>setcd -x [speed] [cdrom device]</CODE></P>
|
1612
|
46
|
1682
|
47 <P>Also you can try:</P>
|
|
48
|
|
49 <P> <CODE>echo current_speed:4 >/proc/ide/[cdrom device]/settings</CODE></P>
|
|
50
|
|
51 <P>but you'll need root privileges. I use following command too:</P>
|
|
52
|
|
53 <P> <CODE>echo file_readahead:2000000 >/proc/ide/[cdrom device]/settings</CODE></P>
|
1612
|
54
|
1682
|
55 <P>for 2MB prefetched reading from the file (it's useful for scratched CDROMs).
|
|
56 It's recommended that you tuneup your CDROM drive also with hdparm:</P>
|
|
57
|
|
58 <P> <CODE>hdparm -d1 -a8 -u1 (cdrom device)</CODE></P>
|
1612
|
59
|
1682
|
60 <P>to enable using DMA access, readahead, and IRQ unmasking.
|
|
61 (if you don't understand these, *read the hdparm manpage*)</P>
|
1612
|
62
|
1682
|
63 <P>Please refer to "<CODE>/proc/ide/[cdrom device]/settings</CODE>" for fine-tuning your
|
|
64 CDROM.</P>
|
1612
|
65
|
1682
|
66 <P><B><A NAME=4.2>4.2. DVD playback</A></B></P>
|
|
67
|
|
68 <P>Yes, the real DVD support has been arrived. You don't need to play VOB files
|
|
69 manually from disk thinking of the purpose of a file in the video_ts
|
|
70 directory, you don't need worry it it's an encrypted disk or not (in old
|
|
71 <B>MPlayer</B> you had to put '-dvdauth /dev/dvd' into the command line in case
|
|
72 of encrypted discs), and you don't need even mount your disk to be able to
|
4057
|
73 play (but mounting it makes Linux cache the cracked CSS keys, so the playing
|
|
74 will initialize much faster second time).</P>
|
|
75
|
1682
|
76 <P>IMPORTANT NOTE: please _DO_NOT_ require further features for DVD playback.
|
|
77 This is the first version of some real DVD support inside <B>MPlayer</B> and
|
|
78 we're busy with hunting bugs and implementing basic DVD player features.</P>
|
1612
|
79
|
2001
|
80 <P><B>MPlayer</B> uses libdvdread which has got built in support for IFO
|
|
81 parsing, reading navi blocks and doing authentication/descrambling. libdvdread
|
|
82 uses libdvdcss to the latter tasks. So you will need libdvdcss and libdvdread
|
|
83 downloaded, compiled and installed BEFORE you run ./configure script of
|
|
84 <B>MPlayer</B> which will autodetect libdvdread for you in this way.</P>
|
1612
|
85
|
1682
|
86 <UL>
|
2001
|
87 <LI><P><B>Download source of libdvdread and libdvdcss.</B></P>
|
1682
|
88
|
|
89 <P><I>You can download them from
|
|
90 <A HREF="http://www.dtek.chalmers.se/groups/dvd">http://www.dtek.chalmers.se/groups/dvd</A>
|
2001
|
91 (click 'download' in the menu at the left, and you can find libdvdcss and
|
3350
|
92 libdvdread in a table).</I></P>
|
|
93
|
|
94 <P><B><I>IMPORTANT !</I></B><BR>
|
|
95 For
|
|
96 <UL>
|
|
97 <LI>libdvdread 0.8 - you'll need <B>libcss</B> instead of libdvdcss</LI>
|
|
98 <LI>libdvdread 0.9 - you'll need <B>libdvdcss 0.0.3</B> ! Don't use newer
|
|
99 versions, they won't work!</LI>
|
|
100 <LI>For example <B><U>never</U></B> use libdvdcss <B>1.0</B>, it will be unusably slow!</LI>
|
|
101 </UL>
|
|
102 </P>
|
|
103 </LI>
|
1682
|
104
|
2001
|
105 <LI><P><B>Compile and install libdvdcss THEN libdvdread.</B></P>
|
1682
|
106
|
|
107 <P><I>Read documentation of these packages to do this step easily.</I></P></LI>
|
4057
|
108
|
|
109 <LI><P><B>Old-style DVD support - <I>OPTIONAL</I></B></P>
|
|
110
|
4177
|
111 <P><I>Useful if you want to play encoded VOB's from hard disk. Compile and
|
|
112 install <B>libcss</B> 0.0.1 (not newer) (if <B>MPlayer</B> can't detect
|
|
113 it, use the <CODE>-csslib /path/to/libcss.so</CODE> option).</P></LI>
|
4057
|
114
|
1682
|
115 <LI><P><B>Recompile MPlayer.</B></P>
|
|
116
|
|
117 <P><I>Run <CODE>./configure</CODE>. If you install libdvdread correctly, ./configure
|
|
118 says something similar:<BR><CODE>Checking for DVDread support ... yes</CODE><BR>
|
|
119 (Of course you can put your favourite configure options into the command
|
|
120 line when you run ./configure). That's it! Say: <CODE>make</CODE>, then <CODE>make install</CODE>.</I></P></LI>
|
|
121 </UL>
|
1612
|
122
|
2001
|
123 <P>Of course after installing libdvdcss and libdvdread you don't need recompile
|
1682
|
124 them at each time when you want to recompile <B>MPlayer</B> (from a new CVS version
|
|
125 for example) since the needed packages have already been installed on your
|
|
126 machine.</P>
|
1612
|
127
|
1682
|
128 <P><B>Using MPlayer to play DVDs:</B></P>
|
1612
|
129
|
|
130
|
1682
|
131 <TABLE BORDER=0 WIDTH=100%>
|
1987
|
132 <TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-dvd <title_id> </TD>
|
|
133 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Enables DVD support and selects title.</TD><TR>
|
|
134 <TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-chapter <chapter_id> </TD>
|
4398
|
135 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Selects DVD chapter(s) to play (default: play from chapter 1).
|
|
136 Example : <CODE>-chapter 5-10</CODE> or <CODE>-chapter -9</CODE></TD><TR>
|
1987
|
137 <TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-dvdangle <angle_id> </TD>
|
|
138 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Selects camera angle (default: 1)</TD><TR>
|
3796
|
139 <TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-alang <country code> </TD>
|
|
140 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
|
141 The <CODE>country code</CODE> tells <B>MPlayer</B> which audio language(s) to prefer.
|
|
142 For the list of available languages, add <CODE>-v</CODE> option after
|
|
143 your DVD options, and browse the output.<BR>
|
|
144 For example :<BR>
|
3799
|
145 <CODE>-alang hu,en</CODE> - first tries to find hungarian
|
3796
|
146 audio, and if not found, decode english audio.</TD></TR>
|
|
147 <TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-slang <country code> </TD>
|
|
148 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
|
149 Turns on DVD subtitles. The <CODE>country code</CODE> tells <B>MPlayer</B>
|
|
150 which language(s) to prefer.
|
|
151 For the list of available languages, add <CODE>-v</CODE> option after
|
|
152 your DVD options, and browse the output.<BR>
|
|
153 For example :<BR>
|
3799
|
154 <CODE>-slang hu,en</CODE> - first tries to display hungarian
|
3796
|
155 subtitles, and if not found, display english subtitles.</TD></TR>
|
3488
|
156 <TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-sid <subtitle_id> </TD>
|
3796
|
157 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
|
158 Displays a subtitle channel with the given <CODE>id</CODE> (values can be
|
|
159 0-31). Useful for example with badly mastered DVDs where country code
|
4057
|
160 selects the wrong channel.</TD></TR>
|
|
161 <TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-csslib <path/filename></TD>
|
|
162 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
|
163 (old-style DVD option) This option is used to override the default location
|
4177
|
164 of <CODE>libcss.so</CODE>
|
4057
|
165 </TD></TR>
|
|
166 <TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-dvdauth <DVD device> </TD>
|
|
167 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
|
168 (old-style DVD option) Turns on DVD authentication using the given device.
|
|
169 </TD></TR>
|
|
170 <TD VALIGN=top><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>-dvdkey <CSS key></TD>
|
|
171 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
|
172 (old-style DVD option) When decoding from non-DVD, this option gives the
|
|
173 CSS key needed to crack the DVD (the key is printed when authenticating
|
|
174 with DVD).
|
|
175 </TD></TR>
|
1682
|
176 </TABLE>
|
1612
|
177
|
1682
|
178 <P>Default device is <CODE>/dev/dvd</CODE>, you can change it in config.h
|
|
179 (compile time option), or you can specify it as a filename for <B>MPlayer</B>:
|
|
180 </P>
|
1612
|
181
|
1682
|
182 <P> <CODE>mplayer -dvd 1 /dev/dvd</CODE></P>
|
4057
|
183 <P> <CODE>mplayer -dvd 1 -slang en /dev/dvd</CODE></P>
|
4398
|
184 <P> <CODE>mplayer -dvd 1 -slang en /dev/dvd -chapter 20-25</CODE></P>
|
4057
|
185 <P> <CODE>mplayer -dvd 2 -alang sp -chapter 5 -dvdangle 2</CODE></P>
|
|
186 <P> <CODE>mplayer -dvdauth /dev/dvd /mnt/cd/video_ts/vts_03_1.vob</CODE></P>
|
|
187 <P> <CODE>mplayer -dvdkey C005D4A16D vts_03_1.vob</CODE></P>
|
1612
|
188
|
1682
|
189 <P><B><A NAME=4.3>4.3. DVD playback FAQ</A></B></P>
|
1612
|
190
|
1682
|
191 <TABLE BORDER=0 ALIGN=left WIDTH=100%>
|
1612
|
192
|
1987
|
193 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
3350
|
194 Playing a DVD, I encountered this error :<BR>
|
|
195 <CODE>mplayer: ifo_read.c:1143: ifoRead_C_ADT_internal: Assertion nfo_length /
|
|
196 sizeof(cell_adr_t) >= c_adt->nr_of_vobs' failed.</CODE>
|
|
197 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
|
198 This is a known libdvdread 0.9.1 bug, it should be already fixed in 0.9.2.
|
|
199 </TD><TR><TD COLSPAN=3> </TD><TR>
|
|
200
|
|
201 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
2001
|
202 Can I compile libdvdread and libdvdcss for example on my sweet Sparc/Solaris?
|
1987
|
203 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
1682
|
204 Who knows ... Please test it and send feedback. But it's said that it
|
|
205 should work. Please refer documentation of libdvdread and its homepage
|
|
206 as well. We're not authors of libdvdread.
|
|
207 </TD><TR><TD COLSPAN=3> </TD><TR>
|
1612
|
208
|
1987
|
209 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
3488
|
210 What about subtitles? Can MPlayer display them?
|
1987
|
211 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
3488
|
212 Yes! See above in the DVD chapter.
|
1682
|
213 </TD><TR><TD COLSPAN=3> </TD><TR>
|
1612
|
214
|
1987
|
215 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
1682
|
216 How can I set the region code of my DVD-Drive ? I don't have windows!
|
1987
|
217 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
1682
|
218 Use the 'regionset' tool:
|
1731
|
219 <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
|
220 </TD><TR><TD COLSPAN=3> </TD><TR>
|
1612
|
221
|
1987
|
222 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
1682
|
223 So MPlayer can play DVDs? Then it must use DeCSS! You are under arrest
|
|
224 under the XYZ#$ paragraph of the--
|
1987
|
225 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
1682
|
226 Get back asshole, there is no DeCSS code in <B>MPlayer</B>. <B>MPlayer</B> uses libdvdread
|
2754
|
227 by linking against it, and libdvdread uses libdvdcss by dynamic loading it.<BR>
|
1682
|
228 </TD><TR><TD COLSPAN=3> </TD><TR>
|
1612
|
229
|
1987
|
230 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
1682
|
231 Do I need to be (setuid) root/setuid fibmap_mplayer to be able to play DVD?
|
1987
|
232 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
4057
|
233 No, you don't. Only for old-style DVD support. However of course you must have
|
1682
|
234 the proper rights to the DVD device driver entry (in /dev).
|
|
235 </TD><TR><TD COLSPAN=3> </TD><TR>
|
1612
|
236
|
1987
|
237 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
1682
|
238 How can I ... (insert some expectable DVD player feature here)?
|
1987
|
239 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
1682
|
240 The current implementation is the first implementation of some real DVD
|
|
241 player functionality. First, we would like to target existing bugs and
|
|
242 basic features before implementing new features.
|
|
243 </TD><TR><TD COLSPAN=3> </TD><TR>
|
1612
|
244
|
1987
|
245 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
2001
|
246 Where can I get libdvdread and libdvdcss packages from?
|
1987
|
247 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
1682
|
248 From the site of Ogle:
|
|
249 <A HREF="http://www.dtek.chalmers.se/groups/dvd">http://www.dtek.chalmers.se/groups/dvd</A>.
|
|
250 </TD><TR><TD COLSPAN=3> </TD><TR>
|
4398
|
251
|
|
252 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
|
253 Is it possible to play/encode only selected chapters ?
|
|
254 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
|
|
255 Yes, see the <CODE>-chapter</CODE> option.
|
|
256 </TD><TR><TD COLSPAN=3> </TD><TR>
|
|
257
|
1682
|
258 </TABLE>
|
1612
|
259
|
|
260 </BODY>
|
|
261 </HTML>
|