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-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
|
|
|
|
2001-08-24 18:48:13 +00:00
|
|
|
<P><B><A NAME=4.1>4.1. CD-ROM drives</A></B></P>
|
|
|
|
|
2001-09-08 04:52:58 +00:00
|
|
|
<P>Playing standard Video CDs:</P>
|
|
|
|
|
2002-08-03 01:32:14 +00:00
|
|
|
<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>
|
|
|
|
<LI>Do <B>not</B> mount VCD disks and play DAT files directly! It may work
|
|
|
|
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>
|
|
|
|
|
|
|
|
<P>Linux documentation excerpt:</P>
|
|
|
|
|
|
|
|
<P>Some CD-ROM drives are capable of changing their head speed. There are
|
|
|
|
several reasons for changing the speed of a CD-ROM drive. Badly pressed
|
|
|
|
CD-ROMs may benefit from less-than-maximum head speed. Modern CD-ROM drives
|
|
|
|
can obtain very high head speeds. It has been reported that these drives can
|
|
|
|
make read errors at these high speeds, reducing the speed can prevent data
|
|
|
|
loss under these circumstances. Finally, some of these drives can make an
|
|
|
|
annoyingly loud noise, which a lower speed may reduce.</P>
|
|
|
|
|
|
|
|
<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
|
|
|
|
|
|
|
<P> <CODE>echo current_speed:4 >/proc/ide/[cdrom device]/settings</CODE></P>
|
|
|
|
|
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
|
|
|
|
|
|
|
<P> <CODE>echo file_readahead:2000000 >/proc/ide/[cdrom device]/settings</CODE></P>
|
|
|
|
|
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
|
|
|
|
|
|
|
<P><B><A NAME=4.2>4.2. DVD playback</A></B></P>
|
|
|
|
|
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
|
|
|
|
<CODE>libmpdvdkit/</CODE> subdirectory of the <B>MPlayer</B> source tree, you
|
|
|
|
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-03 01:32:14 +00:00
|
|
|
<P><B>Old-style DVD support - <I>OPTIONAL</I></B></P>
|
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
|
|
|
|
|
|
|
<P><B>Using MPlayer to play DVDs:</B></P>
|
|
|
|
|
|
|
|
|
2002-08-03 01:32:14 +00:00
|
|
|
<TABLE BORDER=0 WIDTH="100%">
|
|
|
|
<TR><TD VALIGN=top><CODE>-dvd <title_id> </CODE></TD>
|
2002-06-12 09:31:33 +00:00
|
|
|
<TD>Enables DVD support and selects title.</TD><TR>
|
2002-08-03 01:32:14 +00:00
|
|
|
<TD VALIGN=top><CODE>-chapter <chapter_id> </CODE></TD>
|
|
|
|
<TD>Selects DVD chapter(s) to play (default: 1).
|
|
|
|
Example: <CODE>-chapter 5-10</CODE> or <CODE>-chapter -9</CODE></TD></TR>
|
|
|
|
<TR><TD VALIGN=top><CODE>-dvdangle <angle_id> </CODE></TD>
|
2002-06-12 09:31:33 +00:00
|
|
|
<TD>Selects camera angle (default: 1)</TD><TR>
|
2002-08-03 01:32:14 +00:00
|
|
|
<TD VALIGN=top><CODE>-alang <country code> </CODE></TD>
|
|
|
|
<TD>
|
|
|
|
The <CODE>country code</CODE> tells <B>MPlayer</B> which audio language(s) to prefer.
|
|
|
|
For a list of available languages, add the <CODE>-v</CODE> option after
|
|
|
|
your DVD options and browse the output.<BR>
|
|
|
|
For example:<BR>
|
|
|
|
<CODE>-alang hu,en</CODE> - Tries to find Hungarian audio,
|
|
|
|
falling back to English audio.</TD></TR>
|
|
|
|
<TR><TD VALIGN=top><CODE>-slang <country code> </CODE></TD>
|
|
|
|
<TD>
|
|
|
|
Turns on DVD subtitles. The <CODE>country code</CODE> tells <B>MPlayer</B>
|
2001-12-27 18:35:26 +00:00
|
|
|
which language(s) to prefer.
|
2002-08-03 01:32:14 +00:00
|
|
|
For the list of available languages, add the <CODE>-v</CODE> option after
|
|
|
|
your DVD options and browse the output.<BR>
|
|
|
|
For example:<BR>
|
|
|
|
<CODE>-slang hu,en</CODE> - Tries to display Hungarian subtitles,
|
|
|
|
falling back to English subtitles.</TD></TR>
|
|
|
|
<TR><TD VALIGN=top><CODE>-sid <subtitle_id> </CODE></TD>
|
|
|
|
<TD>
|
|
|
|
Displays a subtitle channel with the given <CODE>id</CODE> (values can be
|
|
|
|
0-31). Useful with badly mastered DVDs where the country code
|
|
|
|
selects the wrong channel.</TD></TR>
|
|
|
|
<TR><TD VALIGN=top><CODE>-csslib <path/filename></CODE></TD>
|
|
|
|
<TD>
|
|
|
|
(old-style DVD option) This option is used to override the default location
|
|
|
|
of <CODE>libcss.so</CODE>.
|
|
|
|
</TD></TR>
|
|
|
|
<TR><TD VALIGN=top><CODE>-dvdauth <DVD device> </CODE></TD>
|
|
|
|
<TD>
|
|
|
|
(old-style DVD option) Turns on DVD authentication using the given device.
|
|
|
|
</TD></TR>
|
|
|
|
<TR><TD VALIGN=top><CODE>-dvdkey <CSS key></CODE></TD>
|
|
|
|
<TD>
|
|
|
|
(old-style DVD option) When decoding from non-DVD, this option gives the
|
2002-01-08 17:35:44 +00:00
|
|
|
CSS key needed to crack the DVD (the key is printed when authenticating
|
|
|
|
with DVD).
|
2002-08-03 01:32:14 +00:00
|
|
|
</TD></TR>
|
2001-08-24 18:48:13 +00:00
|
|
|
</TABLE>
|
|
|
|
|
2002-08-03 01:32:14 +00:00
|
|
|
<P>The default device is <CODE>/dev/dvd</CODE>, you can change it in
|
|
|
|
<CODE>config.h</CODE> (compile time option), or you can specify it using the
|
|
|
|
<CODE>-dvd-device</CODE> option:</P>
|
2001-08-24 18:48:13 +00:00
|
|
|
|
2002-02-10 10:03:39 +00:00
|
|
|
<P> <CODE>mplayer -dvd 1 -dvd-device /dev/dvd</CODE></P>
|
|
|
|
<P> <CODE>mplayer -dvd 1 -slang en -dvd-device /dev/dvd</CODE></P>
|
|
|
|
<P> <CODE>mplayer -dvd 1 -slang en -dvd-device /dev/dvd -chapter 20-25</CODE></P>
|
2002-01-08 17:35:44 +00:00
|
|
|
<P> <CODE>mplayer -dvd 2 -alang sp -chapter 5 -dvdangle 2</CODE></P>
|
|
|
|
<P> <CODE>mplayer -dvdauth /dev/dvd /mnt/cd/video_ts/vts_03_1.vob</CODE></P>
|
|
|
|
<P> <CODE>mplayer -dvdkey C005D4A16D vts_03_1.vob</CODE></P>
|
2001-08-24 18:48:13 +00:00
|
|
|
|
2001-08-21 21:01:54 +00:00
|
|
|
</BODY>
|
|
|
|
</HTML>
|