1612
|
1 <HTML>
|
|
2 <BODY>
|
|
3
|
1682
|
4 <P><B><A NAME=4.1>4.1. CD-ROM drives</A></B></P>
|
|
5
|
|
6 <P>From Linux documentation:</P>
|
1612
|
7
|
1682
|
8 <P>Some CDROM drives are capable of changing their head-speed. There are several
|
|
9 reasons for changing the speed of a CDROM drive. Badly pressed CDROMs may
|
|
10 benefit from less-than-maximum head rate. Modern CDROM drives can obtain very
|
|
11 high head rates (up to 24-times is common). It has been reported that these
|
|
12 drives can make reading errors at these high speeds, reducing the speed can
|
|
13 prevent data loss in these circumstances. Finally, some of these drives can
|
|
14 make an annoyingly loud noise, which a lower speed may reduce.</P>
|
1612
|
15
|
1682
|
16 <P>The recommended way to do it is with a program called 'setcd' . It's kinda
|
|
17 old, but won't be too hard to find on the Net. (UPDATE : new hdparm
|
|
18 has an option for this !)
|
|
19 Use it with :</P>
|
|
20
|
|
21 <P> <CODE>setcd -x [speed] [cdrom device]</CODE></P>
|
1612
|
22
|
1682
|
23 <P>Also you can try:</P>
|
|
24
|
|
25 <P> <CODE>echo current_speed:4 >/proc/ide/[cdrom device]/settings</CODE></P>
|
|
26
|
|
27 <P>but you'll need root privileges. I use following command too:</P>
|
|
28
|
|
29 <P> <CODE>echo file_readahead:2000000 >/proc/ide/[cdrom device]/settings</CODE></P>
|
1612
|
30
|
1682
|
31 <P>for 2MB prefetched reading from the file (it's useful for scratched CDROMs).
|
|
32 It's recommended that you tuneup your CDROM drive also with hdparm:</P>
|
|
33
|
|
34 <P> <CODE>hdparm -d1 -a8 -u1 (cdrom device)</CODE></P>
|
1612
|
35
|
1682
|
36 <P>to enable using DMA access, readahead, and IRQ unmasking.
|
|
37 (if you don't understand these, *read the hdparm manpage*)</P>
|
1612
|
38
|
1682
|
39 <P>Please refer to "<CODE>/proc/ide/[cdrom device]/settings</CODE>" for fine-tuning your
|
|
40 CDROM.</P>
|
1612
|
41
|
1682
|
42 <P><B><A NAME=4.2>4.2. DVD playback</A></B></P>
|
|
43
|
|
44 <P>Yes, the real DVD support has been arrived. You don't need to play VOB files
|
|
45 manually from disk thinking of the purpose of a file in the video_ts
|
|
46 directory, you don't need worry it it's an encrypted disk or not (in old
|
|
47 <B>MPlayer</B> you had to put '-dvdauth /dev/dvd' into the command line in case
|
|
48 of encrypted discs), and you don't need even mount your disk to be able to
|
|
49 play :)</P>
|
|
50
|
|
51 <P>IMPORTANT NOTE: please _DO_NOT_ require further features for DVD playback.
|
|
52 This is the first version of some real DVD support inside <B>MPlayer</B> and
|
|
53 we're busy with hunting bugs and implementing basic DVD player features.</P>
|
1612
|
54
|
1682
|
55 <P><B>MPlayer</B> uses libdvdread which has got built in support for IFO parsing,
|
|
56 reading navi blocks and doing authentication/descrambling. libdvdread
|
|
57 use the good old libcss to the latter tasks. So you will need libcss and
|
|
58 libdvdread downloaded, compiled and installed BEFORE you run ./configure
|
|
59 script of <B>MPlayer</B> which will autodetect libdvdread for you in this way.</P>
|
1612
|
60
|
1682
|
61 <UL>
|
|
62 <LI><P><B>Download source of libdvdread and libcss.</B></P>
|
|
63
|
|
64 <P><I>You can download them from
|
|
65 <A HREF="http://www.dtek.chalmers.se/groups/dvd">http://www.dtek.chalmers.se/groups/dvd</A>
|
|
66 (click 'download' in the menu at the left, and you can find libcss and
|
|
67 libdvdread in a table).</I></P></LI>
|
|
68
|
|
69 <LI><P><B>Compile and install libcss THEN libdvdread.</B></P>
|
|
70
|
|
71 <P><I>Read documentation of these packages to do this step easily.</I></P></LI>
|
|
72
|
|
73 <LI><P><B>Recompile MPlayer.</B></P>
|
|
74
|
|
75 <P><I>Run <CODE>./configure</CODE>. If you install libdvdread correctly, ./configure
|
|
76 says something similar:<BR><CODE>Checking for DVDread support ... yes</CODE><BR>
|
|
77 (Of course you can put your favourite configure options into the command
|
|
78 line when you run ./configure). That's it! Say: <CODE>make</CODE>, then <CODE>make install</CODE>.</I></P></LI>
|
|
79 </UL>
|
1612
|
80
|
1682
|
81 <P>Of course after installing libcss and libdvdread you don't need recompile
|
|
82 them at each time when you want to recompile <B>MPlayer</B> (from a new CVS version
|
|
83 for example) since the needed packages have already been installed on your
|
|
84 machine.</P>
|
1612
|
85
|
1682
|
86 <P><B>Using MPlayer to play DVDs:</B></P>
|
1612
|
87
|
|
88
|
1682
|
89 <TABLE BORDER=0 WIDTH=100%>
|
|
90 <TD VALIGN=top>-dvd <title_id> </TD>
|
|
91 <TD>Enables DVD support and selects title.</TD><TR>
|
|
92 <TD VALIGN=top>-chapter <chapter_id> </TD>
|
|
93 <TD>Selects DVD chapter (default: play from chapter 1)</TD><TR>
|
|
94 <TD VALIGN=top>-dvdangle <chapter_id> </TD>
|
|
95 <TD>Selects camera angle (default: 1)</TD><TR>
|
|
96 </TABLE>
|
1612
|
97
|
1682
|
98 <P>Default device is <CODE>/dev/dvd</CODE>, you can change it in config.h
|
|
99 (compile time option), or you can specify it as a filename for <B>MPlayer</B>:
|
|
100 </P>
|
1612
|
101
|
1682
|
102 <P> <CODE>mplayer -dvd 1 /dev/dvd</CODE></P>
|
|
103 <P> <CODE>mplayer -dvd 2 -chapter 5 -dvdangle 2</CODE></P>
|
1612
|
104
|
1682
|
105 <P><B><A NAME=4.3>4.3. DVD playback FAQ</A></B></P>
|
1612
|
106
|
1682
|
107 <TABLE BORDER=0 ALIGN=left WIDTH=100%>
|
1612
|
108
|
1682
|
109 <TD> </TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B>
|
|
110 I have some problem not mentioned here ...
|
|
111 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD>
|
|
112 Read section <A HREF="#4.2">DVD playback</A> as well.
|
|
113 </TD><TR><TD COLSPAN=3> </TD><TR>
|
1612
|
114
|
1682
|
115 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B>
|
|
116 How can I actually watch DVD with MPlayer?
|
|
117 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD>
|
|
118 See the latter question and answer.
|
|
119 </TD><TR><TD COLSPAN=3> </TD><TR>
|
1612
|
120
|
1682
|
121 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B>
|
|
122 Can I compile libdvdread and libcss for example on my sweet Sparc/Solaris?
|
|
123 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD>
|
|
124 Who knows ... Please test it and send feedback. But it's said that it
|
|
125 should work. Please refer documentation of libdvdread and its homepage
|
|
126 as well. We're not authors of libdvdread.
|
|
127 </TD><TR><TD COLSPAN=3> </TD><TR>
|
1612
|
128
|
1682
|
129 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B>
|
|
130 What about subtitles? Can MPlayer decode them?
|
|
131 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD>
|
|
132 Yes it can (or at least it would be able to) but there is now DVD subtitle
|
|
133 displaying functionality inside <B>MPlayer</B> (DVD subs are stored as images,
|
|
134 not text!). However it's a planned feature (at the time of libvo2).
|
|
135 </TD><TR><TD COLSPAN=3> </TD><TR>
|
1612
|
136
|
1682
|
137 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B>
|
|
138 I've got no sound / bad sound (Spanish audio and other ugly things).
|
|
139 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD>
|
|
140 <B>MPlayer</B> currently does not use all of information of IFO blocks from DVD.
|
|
141 You can adjust the right DVD audio stream with: '-aid 128' command line
|
|
142 option, where 128 is the stream id of requested audio stream. You can
|
|
143 experience with numbers of 128,129,... and so on. Of course this problem
|
|
144 will be solved in the future.
|
|
145 </TD><TR><TD COLSPAN=3> </TD><TR>
|
1612
|
146
|
1682
|
147 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B>
|
|
148 There is some strange effect (interlace like thing) especially when fast
|
|
149 moving objects are shown in the movie.
|
|
150 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD>
|
|
151 Known problem, we try to fix it later (when we switch to libvo2).
|
|
152 </TD><TR><TD COLSPAN=3> </TD><TR>
|
1612
|
153
|
1682
|
154 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B>
|
|
155 How can I set the region code of my DVD-Drive ? I don't have windows!
|
|
156 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD>
|
|
157 Use the 'regionset' tool:
|
|
158 http://www.linuxtv.org/download/dvd/dvd_disc_20000215.tar.gz
|
|
159 </TD><TR><TD COLSPAN=3> </TD><TR>
|
1612
|
160
|
1682
|
161 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B>
|
|
162 So MPlayer can play DVDs? Then it must use DeCSS! You are under arrest
|
|
163 under the XYZ#$ paragraph of the--
|
|
164 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD>
|
|
165 Get back asshole, there is no DeCSS code in <B>MPlayer</B>. <B>MPlayer</B> uses libdvdread
|
|
166 by linking against it, and libdvdread uses libcss by dynamic loading it.
|
|
167 </TD><TR><TD COLSPAN=3> </TD><TR>
|
1612
|
168
|
1682
|
169 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B>
|
|
170 Do I need to be (setuid) root/setuid fibmap_mplayer to be able to play DVD?
|
|
171 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD>
|
|
172 No, you don't. This is the past :) However of course you must have got
|
|
173 the proper rights to the DVD device driver entry (in /dev).
|
|
174 </TD><TR><TD COLSPAN=3> </TD><TR>
|
1612
|
175
|
1682
|
176 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B>
|
|
177 How can I ... (insert some expectable DVD player feature here)?
|
|
178 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD>
|
|
179 The current implementation is the first implementation of some real DVD
|
|
180 player functionality. First, we would like to target existing bugs and
|
|
181 basic features before implementing new features.
|
|
182 </TD><TR><TD COLSPAN=3> </TD><TR>
|
1612
|
183
|
1682
|
184 <TD></TD><TD VALIGN=top>Q:</TD><TD WIDTH=100%><B>
|
|
185 Where can I get libdvdread and libcss packages from?
|
|
186 </B></TD><TR><TD></TD><TD VALIGN=top>A:</TD><TD>
|
|
187 From the site of Ogle:
|
|
188 <A HREF="http://www.dtek.chalmers.se/groups/dvd">http://www.dtek.chalmers.se/groups/dvd</A>.
|
|
189 </TD><TR><TD COLSPAN=3> </TD><TR>
|
|
190 </TABLE>
|
1612
|
191
|
1682
|
192 <BR>
|
|
193 <HR>MPlayer documentation project
|
1612
|
194
|
|
195 </BODY>
|
|
196 </HTML>
|