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