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