2002-06-13 00:15:32 +00:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2001-08-21 21:01:54 +00:00
|
|
|
<HTML>
|
2002-03-07 17:55:34 +00:00
|
|
|
|
|
|
|
<HEAD>
|
2002-08-04 00:07:55 +00:00
|
|
|
<TITLE>CD, DVD, VCD - MPlayer - The Movie Player for Linux</TITLE>
|
2002-06-12 09:14:08 +00:00
|
|
|
<LINK REL="stylesheet" TYPE="text/css" HREF="default.css">
|
2002-06-13 00:15:32 +00:00
|
|
|
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
|
2002-03-07 17:55:34 +00:00
|
|
|
</HEAD>
|
|
|
|
|
2002-06-13 00:15:32 +00:00
|
|
|
<BODY>
|
2001-08-26 17:28:49 +00:00
|
|
|
|
2001-08-21 21:01:54 +00:00
|
|
|
|
2002-08-20 00:33:04 +00:00
|
|
|
<H2><A NAME="drives">4.1 CD/DVD drives</A></H2>
|
2001-08-24 18:48:13 +00:00
|
|
|
|
2002-08-03 19:19:22 +00:00
|
|
|
<P>Linux documentation excerpt:</P>
|
2002-08-03 01:32:14 +00:00
|
|
|
|
2002-08-03 19:19:22 +00:00
|
|
|
<P>Modern CD-ROM drives can attain very high head speeds, yet some CD-ROM drives
|
|
|
|
are capable of running at reduced speeds. There are several reasons that might
|
|
|
|
make you consider changing the speed of a CD-ROM drive:</P>
|
2002-08-03 01:32:14 +00:00
|
|
|
|
|
|
|
<UL>
|
2002-08-10 20:26:43 +00:00
|
|
|
<LI>There have been reports of read errors at these high speeds, especially
|
2002-08-03 19:19:22 +00:00
|
|
|
with badly pressed CD-ROMs. Reducing the speed can prevent data loss under
|
|
|
|
these circumstances.</LI>
|
|
|
|
<LI>Many CD-ROM drives are annoyingly loud, a lower speed may reduce the
|
|
|
|
noise.</LI>
|
2002-08-03 01:32:14 +00:00
|
|
|
</UL>
|
|
|
|
|
|
|
|
<P>You can reduce the drive speed with hdparm or a program called setcd.
|
|
|
|
It works like this:</P>
|
|
|
|
|
|
|
|
<P> <CODE>hdparm -E [speed] [cdrom device]</CODE></P>
|
2001-08-24 18:48:13 +00:00
|
|
|
|
|
|
|
<P> <CODE>setcd -x [speed] [cdrom device]</CODE></P>
|
|
|
|
|
2002-08-03 01:32:14 +00:00
|
|
|
<P>You can also try</P>
|
2001-08-24 18:48:13 +00:00
|
|
|
|
2002-08-23 10:50:19 +00:00
|
|
|
<P> <CODE>echo current_speed:4 > /proc/ide/[cdrom device]/settings</CODE></P>
|
2001-08-24 18:48:13 +00:00
|
|
|
|
2002-08-03 01:32:14 +00:00
|
|
|
<P>but you will need root privileges. The following command may also help:</P>
|
2001-08-24 18:48:13 +00:00
|
|
|
|
2002-08-23 10:50:19 +00:00
|
|
|
<P> <CODE>echo file_readahead:2000000 > /proc/ide/[cdrom device]/settings</CODE></P>
|
2001-08-24 18:48:13 +00:00
|
|
|
|
2002-08-03 01:32:14 +00:00
|
|
|
<P>This sets prefetched file reading to 2MB, which helps with scratched CD-ROMs.
|
|
|
|
It is recommended that you also tune your CD-ROM drive with hdparm:</P>
|
2001-08-24 18:48:13 +00:00
|
|
|
|
|
|
|
<P> <CODE>hdparm -d1 -a8 -u1 (cdrom device)</CODE></P>
|
|
|
|
|
2002-08-03 01:32:14 +00:00
|
|
|
<P>This enables DMA access, read-ahead, and IRQ unmasking (read the hdparm man
|
|
|
|
page for a detailed explanation).</P>
|
2001-08-24 18:48:13 +00:00
|
|
|
|
2002-08-03 01:32:14 +00:00
|
|
|
<P>Please refer to "<CODE>/proc/ide/[cdrom device]/settings</CODE>" for
|
|
|
|
fine-tuning your CD-ROM.</P>
|
2001-08-24 18:48:13 +00:00
|
|
|
|
2002-10-19 13:29:25 +00:00
|
|
|
<P>FreeBSD:</P>
|
|
|
|
|
|
|
|
<P> Speed: <CODE>cdcontrol [-f device] speed [speed]</CODE></P>
|
|
|
|
<P> DMA: <CODE>sysctl hw.ata.atapi_dma=1</CODE></P>
|
|
|
|
|
2002-08-03 19:19:22 +00:00
|
|
|
|
2002-08-20 00:33:04 +00:00
|
|
|
<H2><A NAME="dvd">4.2 DVD playback</A></H2>
|
2001-08-24 18:48:13 +00:00
|
|
|
|
2002-04-27 09:08:30 +00:00
|
|
|
<P><B>MPlayer</B> uses <CODE>libdvdread</CODE> and <CODE>libdvdcss</CODE> for
|
2002-08-03 01:32:14 +00:00
|
|
|
DVD decryption and playback. These two libraries are contained in the
|
2002-10-06 20:55:38 +00:00
|
|
|
<CODE>libmpdvdkit2/</CODE> subdirectory of the <B>MPlayer</B> source tree, you
|
2002-08-03 01:32:14 +00:00
|
|
|
do not have to install them separately. We opted for this solution because
|
2002-04-27 09:08:30 +00:00
|
|
|
we had to fix a libdvdread bug, and apply a patch which adds
|
2002-08-03 01:32:14 +00:00
|
|
|
<B>cracked CSS keys caching support</B> to libdvdcss. This results in a large
|
|
|
|
speed increase because the keys do not have to be cracked every time before
|
|
|
|
playing. The cracked keys are stored in the
|
|
|
|
<CODE>~/.mplayer/DVDKeys</CODE> directory.</P>
|
2002-04-27 09:08:30 +00:00
|
|
|
|
2002-08-03 01:32:14 +00:00
|
|
|
<P><B>MPlayer</B> can also use system-wide <CODE>libdvdread</CODE> and
|
|
|
|
<CODE>libdvdcss</CODE> libraries, but this solution is <B>not</B> recommended,
|
|
|
|
as it can result in bugs, library incompatibilities, and slower speed.</P>
|
2002-01-08 17:35:44 +00:00
|
|
|
|
2002-08-03 01:32:14 +00:00
|
|
|
<P>Support for DVD navigation via <CODE>dvdnav</CODE> is being worked on, but
|
|
|
|
not finished yet.</P>
|
2002-04-27 09:08:30 +00:00
|
|
|
|
2002-08-20 00:33:04 +00:00
|
|
|
<H4>Old-style DVD support - OPTIONAL</H4>
|
2001-08-24 18:48:13 +00:00
|
|
|
|
2002-08-03 01:32:14 +00:00
|
|
|
<P>Useful if you want to play encoded VOBs from hard disk. Compile and
|
|
|
|
install <B>libcss</B> 0.0.1 (not newer) for this (If <B>MPlayer</B> fails to
|
|
|
|
detect it, use the <CODE>-csslib /path/to/libcss.so</CODE> option).</P>
|
2001-08-24 18:48:13 +00:00
|
|
|
|
2002-08-20 00:36:58 +00:00
|
|
|
<P>For the complete list of available options, please read the man page.</P>
|
2001-08-24 18:48:13 +00:00
|
|
|
|
2002-08-03 19:19:22 +00:00
|
|
|
|
2002-08-20 00:33:04 +00:00
|
|
|
<H2><A NAME="vcd">4.3 VCD playback</A></H2>
|
2002-08-03 19:19:22 +00:00
|
|
|
|
|
|
|
<P>Playing standard Video CDs:</P>
|
|
|
|
|
|
|
|
<P><CODE>mplayer -vcd <track> [-cdrom-device device]</CODE></P>
|
|
|
|
|
|
|
|
<P>Examples:<BR>
|
|
|
|
<CODE>mplayer -vcd 1<BR>
|
|
|
|
mplayer -fs -vcd 2 -cdrom-device /dev/hdc</CODE></P>
|
|
|
|
|
|
|
|
Notes:
|
|
|
|
<UL>
|
2002-08-05 00:27:26 +00:00
|
|
|
<LI>Do <B>not</B> mount VCDs to play the DAT files directly! It may work
|
2002-08-03 19:19:22 +00:00
|
|
|
under Windows but will not under Linux. You have to play VCDs with the
|
|
|
|
<CODE>-vcd</CODE> option.</LI>
|
|
|
|
<LI>VCD disks usually have 2 tracks: a data track (containing autostart
|
|
|
|
Windows playback program, karaoke data etc) and a mode-2 track (the movie).
|
|
|
|
So try <CODE>-vcd 2</CODE> first.</LI>
|
|
|
|
<LI>The default VCD device is <CODE>/dev/cdrom</CODE>. If your setup differs,
|
|
|
|
make a symlink, or specify the correct device on the command line with the
|
|
|
|
<CODE>-cdrom-device</CODE> option.</LI>
|
|
|
|
</UL>
|
|
|
|
|
2001-08-21 21:01:54 +00:00
|
|
|
</BODY>
|
|
|
|
</HTML>
|