Mercurial > mplayer.hg
annotate DOCS/cd-dvd.html @ 7900:ae7d1056d547
pre9 entry spellchecked in preparation of the imminent release.
author | diego |
---|---|
date | Thu, 24 Oct 2002 21:01:46 +0000 |
parents | 988498df1996 |
children | b75cf70d2a7c |
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 |
7047 | 13 <H2><A NAME="drives">4.1 CD/DVD drives</A></H2> |
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 |
7076
3275af5787e0
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, slightly
diego
parents:
7048
diff
changeset
|
38 <P> <CODE>echo current_speed:4 > /proc/ide/[cdrom device]/settings</CODE></P> |
1682 | 39 |
6877 | 40 <P>but you will need root privileges. The following command may also help:</P> |
1682 | 41 |
7076
3275af5787e0
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, slightly
diego
parents:
7048
diff
changeset
|
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 |
7795 | 55 <P>FreeBSD:</P> |
56 | |
57 <P> Speed: <CODE>cdcontrol [-f device] speed [speed]</CODE></P> | |
58 <P> DMA: <CODE>sysctl hw.ata.atapi_dma=1</CODE></P> | |
59 | |
6878 | 60 |
7047 | 61 <H2><A NAME="dvd">4.2 DVD playback</A></H2> |
1682 | 62 |
7814 | 63 <P>MPlayer uses <CODE>libdvdread</CODE> and <CODE>libdvdcss</CODE> for |
6877 | 64 DVD decryption and playback. These two libraries are contained in the |
7814 | 65 <CODE>libmpdvdkit2/</CODE> subdirectory of the MPlayer source tree, you |
6877 | 66 do not have to install them separately. We opted for this solution because |
5859 | 67 we had to fix a libdvdread bug, and apply a patch which adds |
6877 | 68 <B>cracked CSS keys caching support</B> to libdvdcss. This results in a large |
69 speed increase because the keys do not have to be cracked every time before | |
70 playing. The cracked keys are stored in the | |
71 <CODE>~/.mplayer/DVDKeys</CODE> directory.</P> | |
1612 | 72 |
7814 | 73 <P>MPlayer can also use system-wide <CODE>libdvdread</CODE> and |
6877 | 74 <CODE>libdvdcss</CODE> libraries, but this solution is <B>not</B> recommended, |
75 as it can result in bugs, library incompatibilities, and slower speed.</P> | |
76 | |
77 <P>Support for DVD navigation via <CODE>dvdnav</CODE> is being worked on, but | |
78 not finished yet.</P> | |
4057 | 79 |
7047 | 80 <H4>Old-style DVD support - OPTIONAL</H4> |
4057 | 81 |
6877 | 82 <P>Useful if you want to play encoded VOBs from hard disk. Compile and |
7814 | 83 install <B>libcss</B> 0.0.1 (not newer) for this (If MPlayer fails to |
6877 | 84 detect it, use the <CODE>-csslib /path/to/libcss.so</CODE> option).</P> |
1612 | 85 |
7048 | 86 <P>For the complete list of available options, please read the man page.</P> |
1612 | 87 |
6878 | 88 |
7047 | 89 <H2><A NAME="vcd">4.3 VCD playback</A></H2> |
6878 | 90 |
91 <P>Playing standard Video CDs:</P> | |
92 | |
93 <P><CODE>mplayer -vcd <track> [-cdrom-device device]</CODE></P> | |
94 | |
95 <P>Examples:<BR> | |
96 <CODE>mplayer -vcd 1<BR> | |
97 mplayer -fs -vcd 2 -cdrom-device /dev/hdc</CODE></P> | |
98 | |
99 Notes: | |
100 <UL> | |
6909 | 101 <LI>Do <B>not</B> mount VCDs to play the DAT files directly! It may work |
6878 | 102 under Windows but will not under Linux. You have to play VCDs with the |
103 <CODE>-vcd</CODE> option.</LI> | |
104 <LI>VCD disks usually have 2 tracks: a data track (containing autostart | |
105 Windows playback program, karaoke data etc) and a mode-2 track (the movie). | |
106 So try <CODE>-vcd 2</CODE> first.</LI> | |
107 <LI>The default VCD device is <CODE>/dev/cdrom</CODE>. If your setup differs, | |
108 make a symlink, or specify the correct device on the command line with the | |
109 <CODE>-cdrom-device</CODE> option.</LI> | |
110 </UL> | |
111 | |
1612 | 112 </BODY> |
113 </HTML> |