Mercurial > mplayer.hg
annotate DOCS/cd-dvd.html @ 7017:f310b4e5c94b
Applied patch by Remi Guyomarch <rguyom at pobox com>.
1) document vb_qoffset instead of two times vb_qfactor
2) document "gray" and "mpeg_quant"
3) add 1 space to line-up with other options
author | diego |
---|---|
date | Thu, 15 Aug 2002 22:43:27 +0000 |
parents | e7748ba18900 |
children | ba9c212ed577 |
rev | line source |
---|---|
6405
d0f408a8b150
Background color now set by CSS, added doctype and charset, misc HTML fixes
diego
parents:
6393
diff
changeset
|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
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> |
6882
f3f87f6bf5cf
Added a uniform title: something - MPlayer - The Movie Player for Linux.
diego
parents:
6879
diff
changeset
|
5 <TITLE>CD, DVD, VCD - MPlayer - The Movie Player for Linux</TITLE> |
6391 | 6 <LINK REL="stylesheet" TYPE="text/css" HREF="default.css"> |
6405
d0f408a8b150
Background color now set by CSS, added doctype and charset, misc HTML fixes
diego
parents:
6393
diff
changeset
|
7 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
8 </HEAD> |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4908
diff
changeset
|
9 |
6405
d0f408a8b150
Background color now set by CSS, added doctype and charset, misc HTML fixes
diego
parents:
6393
diff
changeset
|
10 <BODY> |
1704 | 11 |
1612 | 12 |
6907 | 13 <P><B><A NAME="drives">4.1 CD/DVD drives</A></B></P> |
1682 | 14 |
6877 | 15 <P>Linux documentation excerpt:</P> |
1612 | 16 |
6878 | 17 <P>Modern CD-ROM drives can attain very high head speeds, yet some CD-ROM drives |
18 are capable of running at reduced speeds. There are several reasons that might | |
19 make you consider changing the speed of a CD-ROM drive:</P> | |
20 | |
21 <UL> | |
6960 | 22 <LI>There have been reports of read errors at these high speeds, especially |
6878 | 23 with badly pressed CD-ROMs. Reducing the speed can prevent data loss under |
24 these circumstances.</LI> | |
25 <LI>Many CD-ROM drives are annoyingly loud, a lower speed may reduce the | |
26 noise.</LI> | |
27 </UL> | |
1612 | 28 |
6877 | 29 <P>You can reduce the drive speed with hdparm or a program called setcd. |
30 It works like this:</P> | |
31 | |
32 <P> <CODE>hdparm -E [speed] [cdrom device]</CODE></P> | |
1682 | 33 |
34 <P> <CODE>setcd -x [speed] [cdrom device]</CODE></P> | |
1612 | 35 |
6877 | 36 <P>You can also try</P> |
1682 | 37 |
38 <P> <CODE>echo current_speed:4 >/proc/ide/[cdrom device]/settings</CODE></P> | |
39 | |
6877 | 40 <P>but you will need root privileges. The following command may also help:</P> |
1682 | 41 |
42 <P> <CODE>echo file_readahead:2000000 >/proc/ide/[cdrom device]/settings</CODE></P> | |
1612 | 43 |
6877 | 44 <P>This sets prefetched file reading to 2MB, which helps with scratched CD-ROMs. |
45 It is recommended that you also tune your CD-ROM drive with hdparm:</P> | |
1682 | 46 |
47 <P> <CODE>hdparm -d1 -a8 -u1 (cdrom device)</CODE></P> | |
1612 | 48 |
6877 | 49 <P>This enables DMA access, read-ahead, and IRQ unmasking (read the hdparm man |
50 page for a detailed explanation).</P> | |
1612 | 51 |
6877 | 52 <P>Please refer to "<CODE>/proc/ide/[cdrom device]/settings</CODE>" for |
53 fine-tuning your CD-ROM.</P> | |
1612 | 54 |
6878 | 55 |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
56 <P><B><A NAME="dvd">4.2 DVD playback</A></B></P> |
1682 | 57 |
5859 | 58 <P><B>MPlayer</B> uses <CODE>libdvdread</CODE> and <CODE>libdvdcss</CODE> for |
6877 | 59 DVD decryption and playback. These two libraries are contained in the |
60 <CODE>libmpdvdkit/</CODE> subdirectory of the <B>MPlayer</B> source tree, you | |
61 do not have to install them separately. We opted for this solution because | |
5859 | 62 we had to fix a libdvdread bug, and apply a patch which adds |
6877 | 63 <B>cracked CSS keys caching support</B> to libdvdcss. This results in a large |
64 speed increase because the keys do not have to be cracked every time before | |
65 playing. The cracked keys are stored in the | |
66 <CODE>~/.mplayer/DVDKeys</CODE> directory.</P> | |
1612 | 67 |
6877 | 68 <P><B>MPlayer</B> can also use system-wide <CODE>libdvdread</CODE> and |
69 <CODE>libdvdcss</CODE> libraries, but this solution is <B>not</B> recommended, | |
70 as it can result in bugs, library incompatibilities, and slower speed.</P> | |
71 | |
72 <P>Support for DVD navigation via <CODE>dvdnav</CODE> is being worked on, but | |
73 not finished yet.</P> | |
4057 | 74 |
6405
d0f408a8b150
Background color now set by CSS, added doctype and charset, misc HTML fixes
diego
parents:
6393
diff
changeset
|
75 <P><B>Old-style DVD support - <I>OPTIONAL</I></B></P> |
4057 | 76 |
6877 | 77 <P>Useful if you want to play encoded VOBs from hard disk. Compile and |
78 install <B>libcss</B> 0.0.1 (not newer) for this (If <B>MPlayer</B> fails to | |
79 detect it, use the <CODE>-csslib /path/to/libcss.so</CODE> option).</P> | |
1612 | 80 |
1682 | 81 <P><B>Using MPlayer to play DVDs:</B></P> |
1612 | 82 |
6877 | 83 <TABLE BORDER=0 WIDTH="100%"> |
6979
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
84 <TR><TD VALIGN=top><CODE>-dvd <title_id> </CODE></TD> |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
85 <TD>Enables DVD support and selects title.</TD></TR> |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
86 <TR><TD VALIGN=top><CODE>-chapter <chapter_id> </CODE></TD> |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
87 <TD>Selects DVD chapter(s) to play (default: 1). |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
88 Example: <CODE>-chapter 5-10</CODE> or <CODE>-chapter -9</CODE></TD></TR> |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
89 <TR><TD VALIGN=top><CODE>-dvdangle <angle_id> </CODE></TD> |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
90 <TD>Selects camera angle (default: 1)</TD></TR> |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
91 <TR><TD VALIGN=top><CODE>-alang <country code> </CODE></TD> |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
92 <TD>The <CODE>country code</CODE> tells <B>MPlayer</B> which audio |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
93 language(s) to prefer. For a list of available languages, add the |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
94 <CODE>-v</CODE> option after your DVD options and browse the output.<BR> |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
95 For example:<BR> |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
96 <CODE>-alang hu,en</CODE> - Tries to find Hungarian audio, |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
97 falling back to English audio.</TD></TR> |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
98 <TR><TD VALIGN=top><CODE>-slang <country code> </CODE></TD> |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
99 <TD>Turns on DVD subtitles. The <CODE>country code</CODE> tells |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
100 <B>MPlayer</B> which language(s) to prefer. |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
101 For the list of available languages, add the <CODE>-v</CODE> option after |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
102 your DVD options and browse the output.<BR> |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
103 For example:<BR> |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
104 <CODE>-slang hu,en</CODE> - Tries to display Hungarian |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
105 subtitles, falling back to English subtitles.</TD></TR> |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
106 <TR><TD VALIGN=top><CODE>-sid <subtitle_id> </CODE></TD> |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
107 <TD>Displays a subtitle channel with the given <CODE>id</CODE> (values can |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
108 be 0-31). Useful with badly mastered DVDs where the country code |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
109 selects the wrong channel.</TD></TR> |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
110 <TR><TD VALIGN=top><CODE>-csslib <path/filename></CODE></TD> |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
111 <TD>(old-style DVD option) This option is used to override the default |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
112 location of <CODE>libcss.so</CODE>. |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
113 </TD></TR> |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
114 <TR><TD VALIGN=top><CODE>-dvdauth <DVD device> </CODE></TD> |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
115 <TD>(old-style DVD option) Turns on DVD authentication using the given |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
116 device.</TD></TR> |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
117 <TR><TD VALIGN=top><CODE>-dvdkey <CSS key></CODE></TD> |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
118 <TD>(old-style DVD option) When decoding a VOB file copied undecrypted from |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
119 DVD, this option gives the CSS key needed to decrypt the VOB (the key is |
e7748ba18900
Cosmetics: Properly indented table and fixed <TR> structure.
diego
parents:
6960
diff
changeset
|
120 printed when authenticating with the DVD drive using -dvdauth).</TD></TR> |
1682 | 121 </TABLE> |
1612 | 122 |
6877 | 123 <P>The default device is <CODE>/dev/dvd</CODE>, you can change it in |
124 <CODE>config.h</CODE> (compile time option), or you can specify it using the | |
125 <CODE>-dvd-device</CODE> option:</P> | |
1612 | 126 |
4634
bd379eaac1ab
applied Alban Bedel's patch (-dvd-device and -cdrom-device)
gabucino
parents:
4398
diff
changeset
|
127 <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
|
128 <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
|
129 <P> <CODE>mplayer -dvd 1 -slang en -dvd-device /dev/dvd -chapter 20-25</CODE></P> |
4057 | 130 <P> <CODE>mplayer -dvd 2 -alang sp -chapter 5 -dvdangle 2</CODE></P> |
131 <P> <CODE>mplayer -dvdauth /dev/dvd /mnt/cd/video_ts/vts_03_1.vob</CODE></P> | |
132 <P> <CODE>mplayer -dvdkey C005D4A16D vts_03_1.vob</CODE></P> | |
1612 | 133 |
6878 | 134 |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
135 <P><B><A NAME="vcd">4.3 VCD playback</A></B></P> |
6878 | 136 |
137 <P>Playing standard Video CDs:</P> | |
138 | |
139 <P><CODE>mplayer -vcd <track> [-cdrom-device device]</CODE></P> | |
140 | |
141 <P>Examples:<BR> | |
142 <CODE>mplayer -vcd 1<BR> | |
143 mplayer -fs -vcd 2 -cdrom-device /dev/hdc</CODE></P> | |
144 | |
145 Notes: | |
146 <UL> | |
6909 | 147 <LI>Do <B>not</B> mount VCDs to play the DAT files directly! It may work |
6878 | 148 under Windows but will not under Linux. You have to play VCDs with the |
149 <CODE>-vcd</CODE> option.</LI> | |
150 <LI>VCD disks usually have 2 tracks: a data track (containing autostart | |
151 Windows playback program, karaoke data etc) and a mode-2 track (the movie). | |
152 So try <CODE>-vcd 2</CODE> first.</LI> | |
153 <LI>The default VCD device is <CODE>/dev/cdrom</CODE>. If your setup differs, | |
154 make a symlink, or specify the correct device on the command line with the | |
155 <CODE>-cdrom-device</CODE> option.</LI> | |
156 </UL> | |
157 | |
158 | |
1612 | 159 </BODY> |
160 </HTML> |