Mercurial > mplayer.hg
annotate DOCS/cd-dvd.html @ 6391:4e5c236ade69
small updates
using CSS now
author | gabucino |
---|---|
date | Wed, 12 Jun 2002 09:14:08 +0000 |
parents | 54283d7bc90a |
children | f9b3d010b35e |
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> |
6391 | 5 <LINK REL="stylesheet" TYPE="text/css" HREF="default.css"> |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
6 </HEAD> |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
7 |
1704 | 8 <BODY BGCOLOR=white> |
9 | |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
10 <FONT CLASS="text"> |
1612 | 11 |
1682 | 12 <P><B><A NAME=4.1>4.1. CD-ROM drives</A></B></P> |
13 | |
1867 | 14 <P>Playing standard Video CDs:</P> |
15 | |
16 <P> | |
4634
bd379eaac1ab
applied Alban Bedel's patch (-dvd-device and -cdrom-device)
gabucino
parents:
4398
diff
changeset
|
17 mplayer -vcd <I>trackno</I> [-cdrom-device device]<BR><BR> |
1867 | 18 Examples:<BR> |
19 mplayer -vcd 1<BR> | |
4634
bd379eaac1ab
applied Alban Bedel's patch (-dvd-device and -cdrom-device)
gabucino
parents:
4398
diff
changeset
|
20 mplayer -fs -vcd 2 -cdrom-device /dev/hdc<BR> |
1867 | 21 </P> |
22 | |
23 <P> | |
24 Notes:<BR> | |
25 - Do NOT mount VCD disks and play DAT files directly! It may work under windows | |
26 but won't work under linux. You have to play them directly, with the -vcd | |
27 option!<BR> | |
28 - VCD disks usually have 2 tracks: a data track (containing autostart windows | |
29 playback program, karaoke data etc) and a mode-2 track (the movie), so try | |
30 -vcd 2 first!<BR> | |
31 - the default VCD device is /dev/cdrom. if your device differs, then you have | |
32 to make a symlink, or specify it in command line! | |
33 </P> | |
34 | |
1682 | 35 <P>From Linux documentation:</P> |
1612 | 36 |
1682 | 37 <P>Some CDROM drives are capable of changing their head-speed. There are several |
38 reasons for changing the speed of a CDROM drive. Badly pressed CDROMs may | |
39 benefit from less-than-maximum head rate. Modern CDROM drives can obtain very | |
40 high head rates (up to 24-times is common). It has been reported that these | |
41 drives can make reading errors at these high speeds, reducing the speed can | |
42 prevent data loss in these circumstances. Finally, some of these drives can | |
43 make an annoyingly loud noise, which a lower speed may reduce.</P> | |
1612 | 44 |
1682 | 45 <P>The recommended way to do it is with a program called 'setcd' . It's kinda |
46 old, but won't be too hard to find on the Net. (UPDATE : new hdparm | |
47 has an option for this !) | |
48 Use it with :</P> | |
49 | |
50 <P> <CODE>setcd -x [speed] [cdrom device]</CODE></P> | |
1612 | 51 |
1682 | 52 <P>Also you can try:</P> |
53 | |
54 <P> <CODE>echo current_speed:4 >/proc/ide/[cdrom device]/settings</CODE></P> | |
55 | |
56 <P>but you'll need root privileges. I use following command too:</P> | |
57 | |
58 <P> <CODE>echo file_readahead:2000000 >/proc/ide/[cdrom device]/settings</CODE></P> | |
1612 | 59 |
1682 | 60 <P>for 2MB prefetched reading from the file (it's useful for scratched CDROMs). |
61 It's recommended that you tuneup your CDROM drive also with hdparm:</P> | |
62 | |
63 <P> <CODE>hdparm -d1 -a8 -u1 (cdrom device)</CODE></P> | |
1612 | 64 |
1682 | 65 <P>to enable using DMA access, readahead, and IRQ unmasking. |
66 (if you don't understand these, *read the hdparm manpage*)</P> | |
1612 | 67 |
1682 | 68 <P>Please refer to "<CODE>/proc/ide/[cdrom device]/settings</CODE>" for fine-tuning your |
69 CDROM.</P> | |
1612 | 70 |
1682 | 71 <P><B><A NAME=4.2>4.2. DVD playback</A></B></P> |
72 | |
5859 | 73 <P><B>MPlayer</B> uses <CODE>libdvdread</CODE> and <CODE>libdvdcss</CODE> for |
74 DVD decryption and playing. These two libraries are contained in the | |
75 <CODE>libmpdvdkit/</CODE> subdirectory in the <B>MPlayer</B> tree, you | |
76 don't have to install them separately. We opt for this solution because | |
77 we had to fix a libdvdread bug, and apply a patch which adds | |
78 <B>cracked CSS keys caching support</B> for libdvdcss (results in large | |
79 speed increase before playing). These cracked keys are stored in | |
80 <CODE>$HOME/.mplayer/DVDKeys</CODE> directory.</P> | |
1612 | 81 |
5859 | 82 <P>Support for <CODE>dvdnav</CODE> is being added (not usable now).</P> |
4057 | 83 |
84 <LI><P><B>Old-style DVD support - <I>OPTIONAL</I></B></P> | |
85 | |
4177 | 86 <P><I>Useful if you want to play encoded VOB's from hard disk. Compile and |
87 install <B>libcss</B> 0.0.1 (not newer) (if <B>MPlayer</B> can't detect | |
88 it, use the <CODE>-csslib /path/to/libcss.so</CODE> option).</P></LI> | |
4057 | 89 |
5859 | 90 <LI><P><B>Compile MPlayer.</B></P> |
91 | |
92 <P>Run <CODE>./configure</CODE>. If you didn't delete | |
93 <CODE>libmpdvdkit</CODE> subdirectory from MPlayer tree, ./configure should | |
94 say the following:</P> | |
95 | |
96 <P><CODE>Checking for DVD support (libmpdvdkit) ... yes</CODE></P> | |
1612 | 97 |
5859 | 98 <P>(of course you can put your favourite configure options into the command |
99 line when you run ./configure)</P> | |
100 | |
101 <P><B>MPlayer</B> can use <CODE>libdvdread</CODE> and <CODE>libdvdcss</CODE> | |
102 libraries installed system-wide, but this solution is NOT RECOMMENDED, as | |
103 can result in bugs, library incompatibilities, and slower speed.</P> | |
104 | |
105 <P>Either way, say: <CODE>make</CODE>, then <CODE>make install</CODE>.</P> | |
1612 | 106 |
1682 | 107 <P><B>Using MPlayer to play DVDs:</B></P> |
1612 | 108 |
109 | |
1682 | 110 <TABLE BORDER=0 WIDTH=100%> |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
111 <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
|
112 <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
|
113 <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
|
114 <TD><FONT CLASS="text">Selects DVD chapter(s) to play (default: play from chapter 1). |
4398 | 115 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
|
116 <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
|
117 <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
|
118 <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
|
119 <TD><FONT CLASS="text"> |
3796 | 120 The <CODE>country code</CODE> tells <B>MPlayer</B> which audio language(s) to prefer. |
121 For the list of available languages, add <CODE>-v</CODE> option after | |
122 your DVD options, and browse the output.<BR> | |
123 For example :<BR> | |
3799 | 124 <CODE>-alang hu,en</CODE> - first tries to find hungarian |
3796 | 125 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
|
126 <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
|
127 <TD><FONT CLASS="text"> |
3796 | 128 Turns on DVD subtitles. The <CODE>country code</CODE> tells <B>MPlayer</B> |
129 which language(s) to prefer. | |
130 For the list of available languages, add <CODE>-v</CODE> option after | |
131 your DVD options, and browse the output.<BR> | |
132 For example :<BR> | |
3799 | 133 <CODE>-slang hu,en</CODE> - first tries to display hungarian |
3796 | 134 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
|
135 <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
|
136 <TD><FONT CLASS="text"> |
3796 | 137 Displays a subtitle channel with the given <CODE>id</CODE> (values can be |
138 0-31). Useful for example with badly mastered DVDs where country code | |
4057 | 139 selects the wrong channel.</TD></TR> |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
140 <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
|
141 <TD><FONT CLASS="text"> |
4057 | 142 (old-style DVD option) This option is used to override the default location |
4177 | 143 of <CODE>libcss.so</CODE> |
4057 | 144 </TD></TR> |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
145 <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
|
146 <TD><FONT CLASS="text"> |
4057 | 147 (old-style DVD option) Turns on DVD authentication using the given device. |
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">-dvdkey <CSS key></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) When decoding from non-DVD, this option gives the |
152 CSS key needed to crack the DVD (the key is printed when authenticating | |
153 with DVD). | |
154 </TD></TR> | |
1682 | 155 </TABLE> |
1612 | 156 |
1682 | 157 <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
|
158 (compile time option), or you can specify it using the -dvd-device option : |
1682 | 159 </P> |
1612 | 160 |
4634
bd379eaac1ab
applied Alban Bedel's patch (-dvd-device and -cdrom-device)
gabucino
parents:
4398
diff
changeset
|
161 <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
|
162 <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
|
163 <P> <CODE>mplayer -dvd 1 -slang en -dvd-device /dev/dvd -chapter 20-25</CODE></P> |
4057 | 164 <P> <CODE>mplayer -dvd 2 -alang sp -chapter 5 -dvdangle 2</CODE></P> |
165 <P> <CODE>mplayer -dvdauth /dev/dvd /mnt/cd/video_ts/vts_03_1.vob</CODE></P> | |
166 <P> <CODE>mplayer -dvdkey C005D4A16D vts_03_1.vob</CODE></P> | |
1612 | 167 |
168 </BODY> | |
169 </HTML> |