comparison DOCS/dvd.html @ 1612:1b011d6150c7

new, splitted, etc dox
author gabucino
date Tue, 21 Aug 2001 21:01:54 +0000
parents
children
comparison
equal deleted inserted replaced
1611:c15f0cd6d051 1612:1b011d6150c7
1 <HTML>
2
3 <BODY>
4
5 <PRE>
6
7 <A NAME=4.1>4.1. CD-ROM drives
8
9 From Linux documentation:
10
11 Some CDROM drives are capable of changing their head-speed. There are several
12 reasons for changing the speed of a CDROM drive. Badly pressed CDROMs may
13 benefit from less-than-maximum head rate. Modern CDROM drives can obtain very
14 high head rates (up to 24-times is common). It has been reported that these
15 drives can make reading errors at these high speeds, reducing the speed can
16 prevent data loss in these circumstances. Finally, some of these drives can
17 make an annoyingly loud noise, which a lower speed may reduce.
18
19 The recommended way to do it is with a program called 'setcd' . It's kinda
20 old, but won't be too hard to find on the Net. (UPDATE : new hdparm
21 has an option for this !)
22 Use it with :
23
24
25 setcd -x [speed] [cdrom device]
26
27
28 Also you can try :
29
30
31 echo current_speed:4 >/proc/ide/[cdrom device]/settings
32
33
34 but you'll need root privileges. I use following command too :
35
36
37 echo file_readahead:2000000 >/proc/ide/[cdrom device]/settings
38
39
40 for 2MB prefetched reading from the file (it's useful for scratched CDROMs).
41 It's recommended that you tuneup your CDROM drive also with hdparm :
42
43
44 hdparm -d1 -a8 -u1 (cdrom device)
45
46
47 to enable using DMA access, readahead, and IRQ unmasking.
48 (if you don't understand these, *read the hdparm manpage*)
49
50 Please refer to "/proc/ide/[cdrom device]/settings" for fine-tuning your
51 CDROM.
52
53
54
55 <A NAME=4.2>4.2. DVD drives
56
57 IMPORTANT NOTE: please _DO_NOT_ require further features for DVD playback. This
58 is extremly experimental hack. Maybe it won't work for you. If you're
59 capable of helping us do it now! First we would like to fix existing problems.
60 Then we can start implementing advanced DVD playback functions of course.
61
62 This means current DVD functions are mainly for developers and not for users!
63
64 First, you must compile and install libcss on your system.
65 Second, you have to recompile <B>MPlayer</B> with libcss support. There is
66 autodetection of libcss, but if it fails, see below :
67
68 Call ./configure script of <B>MPlayer</B> with these options:
69
70 ./configure --enable-css --with-csslibdir=/usr/local/lib --with-cssincdir=/usr/local/include
71
72 (of course you can append your favourite options as well)
73
74 --with-csslibdir=/usr/local/lib
75 Directory contains libcss.so shared library. This directory should
76 be in your /etc/ld.so.conf as well.
77
78 --with-cssincdir=/usr/local/include
79 Directory contains header file 'css.h' of libcss.
80
81 mplayer -dvdauth /dev/dvd /mnt/cdrom/video_ts/vts_01_1.vob
82
83 where,
84
85 '-dvdauth /dev/dvd' tells <B>MPlayer</B> the device name of your DVD drive.
86 it's used in disc authentication process
87
88 the filename is simply a VOB file path on the disc
89
90 Note that according to my experiences, disc authentication requires root
91 privileges so you must run <B>MPlayer</B> as root! (see section 'Problems').
92
93 NOTE about the sound:
94 It seems that <B>MPlayer</B> sometimes fails to find the first audio stream.
95 You can specify it with the '-aid 128' option, for example.
96 Please experience with 128,129 and similar values. See section
97 'Problems'.
98
99 On my AMD K6-2 with using hw scaling and colorspace conversion
100 capability of my G400 it's possible to watch DVD with about 70%
101 CPU usage with '-nosound'. Unfortunately with sound my machine is
102 not enough :( Maybe it can be improved somewhat ...
103 Guess, it's not so bad ... According to reports from my friends
104 xine uses 80-90% CPU to play DVD on much more powerful machines
105 like 1GHz Athlon systems (as far as I know, it's said that about
106 300MHz celeron is the minimum to watch DVDs ... using windows
107 DVD viewers).
108
109 Hint: I commented out downmix functions from libac3 (of course in this way I
110 can't get sound) and audio decoding CPU usage became 11% instead of 24 on
111 my machine. This clearly indicates that we should optimize downmix functions
112 (KNI code is no use for my k6-2).
113
114 HOT NEWZ:
115 We have got 3Dnow optimized libac3. Wow ;-)
116
117
118 Problems (TODO)
119
120 * disc authentication (the FIBMAP ioctl) requires root privilegies.
121 this is strange since OMS can do it as user too.
122 * sound. I'm using my only DVD disc (The Matrix) to test <B>MPlayer</B>.
123 some VOB file have English sound, some have Spanish and some have
124 no sound at all.
125 IT SEEMS that if I give '-aid 128' everything works with English sound ...
126 * strange effects but only with SOME vob files (it looks like some interlacing
127 effect, eg: every 2nd line on the screen is from the last frame).
128
129
130 Feature TODO
131
132 * chapter scanner
133 * audio stream scanner and allow to select one on runtime as well
134 (in stage#1 it would be enough to select one on the startup, see
135 'Problems' above)
136 * DVD menu
137 I found (at least on disc 'The Matrix') the menu VOB but I don't
138 know how can it be used.
139 (after some eyeballing on the source of OMS, it seems we would have to
140 parse *.ifo files)
141 * subtitle support
142 * OSD/GUI (?) support for select chapter, subtitle and audio stream
143 * getting some documentation on DVD format, eg: which is the 'root' VOB
144 file on the disc in video_ts directory, which is the menu and so on.
145 * improve performance (see 'Performance' above)
146
147
148 No sound problem (from Matrix DVD, the menu VOB)
149
150 End of packet while searching for PCM header
151
152 DEMUXER: Too many (2048 in 4131540 bytes) video packets in the buffer!
153 (maybe you play a non-interleaved stream/file or video codec failed)
154 MPEG: No Audio stream found... ->nosound
155
156 However this does not occur if you specify '-aid 128'.
157
158
159 <A NAME=4.3>4.3. DVD FAQ
160
161 <B>Q: I have some problem not mentioned here ...
162 </B>A: Read file 'DVD' as well.
163
164 <B>Q: How can I actually watch DVD with MPlayer?
165 </B>A: Ehh. Go on reading this file as well as 'DVD' (hint: you must have libcss)
166
167 <B>Q: So MPlayer can play DVDs? Then it must use DeCSS! You are under arrest
168 under the XYZ#$ paragraph of the--
169 </B>A: Get back asshole, there is no DeCSS code in MPlayer. It links to libcss.
170
171 <B>Q: Seems to work but no sound.
172 </B>A: Use '-aid 128' (or try: 128,129,...) command line switch
173
174 <B>Q: I have got Spanish audio instead of English (or similar problems)
175 </B>A: See the last question/answer.
176
177 <B>Q: MPlayer complains about FIBMAP or something.
178 </B>A: Try to run MPlayer as root.
179
180 <B>Q: some strange effect (interlace like thing) especially when fast moving
181 objects are shown in the movie
182 </B>A: known problem, we try to fix it later
183
184 <B>Q: DVD support in MPlayer is a piece of shit!
185 </B>A: You're probably right :) However please contact us if you can improve it!
186
187 <B>Q: Where can I get libcss package from?
188 </B>A: Maybe from the source of OMS (www.linuxvideo.org).
189
190 <B>Q: How can I ... (insert some expectable DVD player feature here)
191 </B>A: The current implementation is only for viewing VOB files from DVD.
192 Nothing more, like subtitles, menus and so on.
193
194 <B>Q: How can I set the region code of my DVD-Drive ? I don't have windows!
195 </B>A: Use the 'regionset' tool :
196 http://www.linuxtv.org/download/dvd/dvd_disc_20000215.tar.gz
197
198 <B>Q: MPlayer complains about some renamed option?
199 </B>A: For future development, old '-dvd' option was replaced by '-dvdauth'.
200 Option '-dvd' *WILL* do the 'full disk movie' mplaying mode.
201 But until that, '-dvd' does nothing only prints error message.
202
203 </PRE>
204
205 </BODY>
206
207 </HTML>