2347 lines
42 KiB
HTML
2347 lines
42 KiB
HTML
<HTML
|
||
><HEAD
|
||
><TITLE
|
||
>DVD Playback HOWTO</TITLE
|
||
><META
|
||
NAME="GENERATOR"
|
||
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"></HEAD
|
||
><BODY
|
||
CLASS="article"
|
||
BGCOLOR="#FFFFFF"
|
||
TEXT="#000000"
|
||
LINK="#0000FF"
|
||
VLINK="#840084"
|
||
ALINK="#0000FF"
|
||
><DIV
|
||
CLASS="ARTICLE"
|
||
><DIV
|
||
CLASS="TITLEPAGE"
|
||
><H1
|
||
CLASS="title"
|
||
><A
|
||
NAME="AEN2"
|
||
></A
|
||
>DVD Playback HOWTO</H1
|
||
><H3
|
||
CLASS="author"
|
||
><A
|
||
NAME="AEN4"
|
||
>David Jao</A
|
||
></H3
|
||
><DIV
|
||
CLASS="affiliation"
|
||
><DIV
|
||
CLASS="address"
|
||
><P
|
||
CLASS="address"
|
||
><TT
|
||
CLASS="email"
|
||
><<A
|
||
HREF="mailto:djao@dominia.org"
|
||
>djao@dominia.org</A
|
||
>></TT
|
||
></P
|
||
></DIV
|
||
></DIV
|
||
><P
|
||
CLASS="pubdate"
|
||
>2004-02-26<BR></P
|
||
><DIV
|
||
CLASS="revhistory"
|
||
><TABLE
|
||
WIDTH="100%"
|
||
BORDER="0"
|
||
><TR
|
||
><TH
|
||
ALIGN="LEFT"
|
||
VALIGN="TOP"
|
||
COLSPAN="3"
|
||
><B
|
||
>Revision History</B
|
||
></TH
|
||
></TR
|
||
><TR
|
||
><TD
|
||
ALIGN="LEFT"
|
||
>Revision 1.0</TD
|
||
><TD
|
||
ALIGN="LEFT"
|
||
>2004-02-26</TD
|
||
><TD
|
||
ALIGN="LEFT"
|
||
>Revised by: DJ</TD
|
||
></TR
|
||
><TR
|
||
><TD
|
||
ALIGN="LEFT"
|
||
COLSPAN="3"
|
||
>Initial Release, reviewed by LDP</TD
|
||
></TR
|
||
><TR
|
||
><TD
|
||
ALIGN="LEFT"
|
||
>Revision 0.9</TD
|
||
><TD
|
||
ALIGN="LEFT"
|
||
>2004-02-07</TD
|
||
><TD
|
||
ALIGN="LEFT"
|
||
>Revised by: DJ</TD
|
||
></TR
|
||
><TR
|
||
><TD
|
||
ALIGN="LEFT"
|
||
COLSPAN="3"
|
||
>submitted to LDP</TD
|
||
></TR
|
||
><TR
|
||
><TD
|
||
ALIGN="LEFT"
|
||
>Revision 0.1</TD
|
||
><TD
|
||
ALIGN="LEFT"
|
||
>2004-01-26</TD
|
||
><TD
|
||
ALIGN="LEFT"
|
||
>Revised by: DJ</TD
|
||
></TR
|
||
><TR
|
||
><TD
|
||
ALIGN="LEFT"
|
||
COLSPAN="3"
|
||
>first public release</TD
|
||
></TR
|
||
></TABLE
|
||
></DIV
|
||
><DIV
|
||
><DIV
|
||
CLASS="abstract"
|
||
><A
|
||
NAME="AEN27"
|
||
></A
|
||
><P
|
||
></P
|
||
><P
|
||
> This document describes how to view DVD movies on a Linux computer
|
||
with a DVD drive.
|
||
</P
|
||
><P
|
||
></P
|
||
></DIV
|
||
></DIV
|
||
><HR></DIV
|
||
><DIV
|
||
CLASS="TOC"
|
||
><DL
|
||
><DT
|
||
><B
|
||
>Table of Contents</B
|
||
></DT
|
||
><DT
|
||
>1. <A
|
||
HREF="#intro"
|
||
>Introduction</A
|
||
></DT
|
||
><DD
|
||
><DL
|
||
><DT
|
||
>1.1. <A
|
||
HREF="#copyright"
|
||
>Copyright and License</A
|
||
></DT
|
||
><DT
|
||
>1.2. <A
|
||
HREF="#disclaimer"
|
||
>Disclaimer</A
|
||
></DT
|
||
><DT
|
||
>1.3. <A
|
||
HREF="#feedback"
|
||
>Feedback</A
|
||
></DT
|
||
></DL
|
||
></DD
|
||
><DT
|
||
>2. <A
|
||
HREF="#prep"
|
||
>System Preparation</A
|
||
></DT
|
||
><DD
|
||
><DL
|
||
><DT
|
||
>2.1. <A
|
||
HREF="#prereqs"
|
||
>Hardware Prerequisites</A
|
||
></DT
|
||
><DT
|
||
>2.2. <A
|
||
HREF="#symlink"
|
||
>Creating the /dev/dvd symlink</A
|
||
></DT
|
||
><DT
|
||
>2.3. <A
|
||
HREF="#region"
|
||
>Setting the DVD Region</A
|
||
></DT
|
||
><DT
|
||
>2.4. <A
|
||
HREF="#overlay"
|
||
>X Video Overlay</A
|
||
></DT
|
||
><DT
|
||
>2.5. <A
|
||
HREF="#dma"
|
||
>Enabling DMA</A
|
||
></DT
|
||
></DL
|
||
></DD
|
||
><DT
|
||
>3. <A
|
||
HREF="#install"
|
||
>Software Installation</A
|
||
></DT
|
||
><DD
|
||
><DL
|
||
><DT
|
||
>3.1. <A
|
||
HREF="#redhat"
|
||
>Red Hat / Fedora</A
|
||
></DT
|
||
><DT
|
||
>3.2. <A
|
||
HREF="#debian"
|
||
>Debian</A
|
||
></DT
|
||
><DT
|
||
>3.3. <A
|
||
HREF="#slackware"
|
||
>Slackware</A
|
||
></DT
|
||
><DT
|
||
>3.4. <A
|
||
HREF="#mandrake"
|
||
>Mandrake</A
|
||
></DT
|
||
><DT
|
||
>3.5. <A
|
||
HREF="#suse"
|
||
>SuSE</A
|
||
></DT
|
||
><DT
|
||
>3.6. <A
|
||
HREF="#gentoo"
|
||
>Gentoo</A
|
||
></DT
|
||
></DL
|
||
></DD
|
||
><DT
|
||
>4. <A
|
||
HREF="#usage"
|
||
>Software Usage</A
|
||
></DT
|
||
><DD
|
||
><DL
|
||
><DT
|
||
>4.1. <A
|
||
HREF="#principles"
|
||
>General principles: deinterlacing, telecine, and framerates</A
|
||
></DT
|
||
><DT
|
||
>4.2. <A
|
||
HREF="#AEN345"
|
||
>Specific usage instructions</A
|
||
></DT
|
||
></DL
|
||
></DD
|
||
><DT
|
||
>5. <A
|
||
HREF="#AEN383"
|
||
>Troubleshooting</A
|
||
></DT
|
||
><DT
|
||
>6. <A
|
||
HREF="#moreinfo"
|
||
>Further Information</A
|
||
></DT
|
||
></DL
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect1"
|
||
><H1
|
||
CLASS="sect1"
|
||
><A
|
||
NAME="intro"
|
||
></A
|
||
>1. Introduction</H1
|
||
><P
|
||
> In this document we describe how to view DVD movies and video on a Linux
|
||
system. We give practical, specific, and straightforward commands for
|
||
getting DVD playback up and running quickly on most of the popular Linux
|
||
distributions. Special attention is given to the various little-known
|
||
performance optimizations that are needed for smooth DVD video playback.
|
||
</P
|
||
><DIV
|
||
CLASS="sect2"
|
||
><HR><H2
|
||
CLASS="sect2"
|
||
><A
|
||
NAME="copyright"
|
||
></A
|
||
>1.1. Copyright and License</H2
|
||
><P
|
||
> This document, <EM
|
||
>DVD Playback HOWTO</EM
|
||
>, is
|
||
copyrighted <20> 2004 by <EM
|
||
>David Jao</EM
|
||
>.
|
||
Permission is granted to copy, distribute and/or modify this
|
||
document under the terms of the GNU Free Documentation License,
|
||
Version 1.2 or any later version published by the Free Software
|
||
Foundation; with no Invariant Sections, with no Front-Cover Texts,
|
||
and with no Back-Cover Texts. A copy of the license is available
|
||
at <A
|
||
HREF="http://www.gnu.org/copyleft/fdl.html"
|
||
TARGET="_top"
|
||
> http://www.gnu.org/copyleft/fdl.html</A
|
||
>.
|
||
</P
|
||
><P
|
||
> Linux<75> is a registered trademark of Linus Torvalds.
|
||
</P
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect2"
|
||
><HR><H2
|
||
CLASS="sect2"
|
||
><A
|
||
NAME="disclaimer"
|
||
></A
|
||
>1.2. Disclaimer</H2
|
||
><P
|
||
> No liability for the contents of this document can be accepted.
|
||
Use the concepts, examples and information at your own risk.
|
||
Although this is highly unlikely, there may be errors and
|
||
inaccuracies herein that could be damaging to your system. The
|
||
author(s) do not take any responsibility for any damage that you
|
||
incur through your own actions.
|
||
</P
|
||
><P
|
||
> The mere act of accessing or viewing DVD content, or dealing
|
||
in software written for such purposes, may be illegal in some
|
||
localities. The author(s) cannot accept any responsibility for any
|
||
actions of yours which violate the laws of the jurisdictions to
|
||
which you are subject.
|
||
</P
|
||
><P
|
||
> All copyrights are held by their by their respective owners,
|
||
unless specifically noted otherwise. Use of a term in this
|
||
document should not be regarded as affecting the validity of any
|
||
trademark or service mark. Naming of particular products or
|
||
brands should not be seen as endorsements.
|
||
</P
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect2"
|
||
><HR><H2
|
||
CLASS="sect2"
|
||
><A
|
||
NAME="feedback"
|
||
></A
|
||
>1.3. Feedback</H2
|
||
><P
|
||
> Questions, comments, suggestions, and feedback are most certainly
|
||
welcome and should be sent to the author of this document at
|
||
<TT
|
||
CLASS="email"
|
||
><<A
|
||
HREF="mailto:djao@dominia.org"
|
||
>djao@dominia.org</A
|
||
>></TT
|
||
>.
|
||
</P
|
||
></DIV
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect1"
|
||
><HR><H1
|
||
CLASS="sect1"
|
||
><A
|
||
NAME="prep"
|
||
></A
|
||
>2. System Preparation</H1
|
||
><DIV
|
||
CLASS="sect2"
|
||
><H2
|
||
CLASS="sect2"
|
||
><A
|
||
NAME="prereqs"
|
||
></A
|
||
>2.1. Hardware Prerequisites</H2
|
||
><P
|
||
> A certain level of processing power is necessary for smooth DVD
|
||
playback. The system requirements in Linux are somewhat higher than in
|
||
Windows, because many of the techniques used for hardware acceleration
|
||
of video playback work only in Windows.
|
||
</P
|
||
><P
|
||
>At a minimum, I recommend the following:
|
||
</P
|
||
><P
|
||
></P
|
||
><UL
|
||
><LI
|
||
><P
|
||
>700 MHz or higher CPU,</P
|
||
></LI
|
||
><LI
|
||
><P
|
||
>video card with <A
|
||
HREF="#overlay"
|
||
>X Video Overlay</A
|
||
> support</P
|
||
></LI
|
||
><LI
|
||
><P
|
||
>DVD drive with <A
|
||
HREF="#dma"
|
||
>DMA</A
|
||
> enabled</P
|
||
></LI
|
||
></UL
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect2"
|
||
><HR><H2
|
||
CLASS="sect2"
|
||
><A
|
||
NAME="symlink"
|
||
></A
|
||
>2.2. Creating the /dev/dvd symlink</H2
|
||
><P
|
||
>If you don't already have a <TT
|
||
CLASS="filename"
|
||
>/dev/dvd</TT
|
||
> symbolic
|
||
link, then run (as root) the
|
||
command<TABLE
|
||
BORDER="0"
|
||
BGCOLOR="#E0E0E0"
|
||
WIDTH="100%"
|
||
><TR
|
||
><TD
|
||
><FONT
|
||
COLOR="#000000"
|
||
><PRE
|
||
CLASS="programlisting"
|
||
><TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>ln -s</B
|
||
> /dev/hdc /dev/dvd</B
|
||
></TT
|
||
>
|
||
</PRE
|
||
></FONT
|
||
></TD
|
||
></TR
|
||
></TABLE
|
||
>
|
||
to create a symbolic link from
|
||
<TT
|
||
CLASS="filename"
|
||
>/dev/dvd</TT
|
||
> to the
|
||
actual hardware device representing your DVD-ROM drive
|
||
(which in this example is <TT
|
||
CLASS="filename"
|
||
>/dev/hdc</TT
|
||
>, but you should
|
||
replace it with the actual device file used by your drive). The
|
||
<TT
|
||
CLASS="filename"
|
||
>/dev/dvd</TT
|
||
> link is not merely a matter of
|
||
convenience; almost all of the player software mentioned in this HOWTO
|
||
assumes that the link is there.</P
|
||
><P
|
||
>If you don't know which device name your DVD-ROM drive uses, you
|
||
can usually find it with the command <B
|
||
CLASS="command"
|
||
>dmesg | grep
|
||
DVD</B
|
||
> in the console or a shell right after booting up the system.</P
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect2"
|
||
><HR><H2
|
||
CLASS="sect2"
|
||
><A
|
||
NAME="region"
|
||
></A
|
||
>2.3. Setting the DVD Region</H2
|
||
><P
|
||
>All DVD drives (except for <A
|
||
HREF="http://www.dvdcca.org/rpc.html"
|
||
TARGET="_top"
|
||
>RPC Phase I drives</A
|
||
> made in
|
||
1999 or before) enforce <A
|
||
HREF="http://www.dvddemystified.com/dvdfaq.html#1.10"
|
||
TARGET="_top"
|
||
>region playback
|
||
restrictions</A
|
||
> in the drive firmware and consequently are supposed to
|
||
be set to a specific region before they can play back discs from that
|
||
region (and only that region). In reality, most Linux DVD playback
|
||
software can bypass the DVD drive's built-in region locks, but it takes
|
||
extra time for the software to break the region lock, and it is better
|
||
to avoid the complications of region locks if you can.</P
|
||
><P
|
||
> For the small minority of readers who own RPC-I drives, you do not need
|
||
to do anything: your drive is already capable of handling DVDs from all
|
||
geographical regions. These drives are old enough by now that everybody
|
||
who has one of them probably knows already that they have one.
|
||
</P
|
||
><P
|
||
> For the majority of readers who have RPC-II drives, there are several
|
||
options available:
|
||
</P
|
||
><P
|
||
></P
|
||
><OL
|
||
TYPE="1"
|
||
><LI
|
||
><P
|
||
>If you only watch discs from one region, the easiest option
|
||
is to use the <A
|
||
HREF="http://linvdr.org/projects/regionset/"
|
||
TARGET="_top"
|
||
>regionset</A
|
||
> program to
|
||
set your DVD drive to the correct region.</P
|
||
></LI
|
||
><LI
|
||
><P
|
||
>If you want to watch discs from multiple regions, you can
|
||
try to find a firmware upgrade for your DVD drive in the <A
|
||
HREF="http://www.firmware-flash.com/"
|
||
TARGET="_top"
|
||
>firmware-flash.com
|
||
collection</A
|
||
> of unofficial firmware files. Note that most of these
|
||
files require you to boot to DOS or Windows to install.
|
||
</P
|
||
></LI
|
||
><LI
|
||
><P
|
||
>You can buy a separate DVD drive for each DVD region that you
|
||
wish to use. The prices for DVD-ROM drives have dropped low enough to make
|
||
this strategy feasible.
|
||
</P
|
||
></LI
|
||
><LI
|
||
><P
|
||
>Of course, you can simply do nothing, and rely on the
|
||
built-in ability of Linux software to bypass the region restrictions.
|
||
Note that even in this case you should use the <A
|
||
HREF="http://linvdr.org/projects/regionset/"
|
||
TARGET="_top"
|
||
>regionset</A
|
||
> program to
|
||
set the drive to the region that you will be using the most, because an
|
||
RPC-II drive without a region setting behaves as if
|
||
<EM
|
||
>all</EM
|
||
> the regions are locked out.
|
||
</P
|
||
></LI
|
||
></OL
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect2"
|
||
><HR><H2
|
||
CLASS="sect2"
|
||
><A
|
||
NAME="overlay"
|
||
></A
|
||
>2.4. X Video Overlay</H2
|
||
><P
|
||
>The XFree86 video overlay extension is a very poorly documented
|
||
standard feature of XFree86 4.x and is <EM
|
||
>absolutely
|
||
essential</EM
|
||
> for high quality video playback under Linux. It is
|
||
the only type of hardware playback acceleration that is widely
|
||
supported in Linux, and it is by far the single most important
|
||
configuration element for DVD playback on a Linux system. </P
|
||
><P
|
||
>To check if you have this extension, type
|
||
<B
|
||
CLASS="command"
|
||
>xvinfo</B
|
||
> in an X terminal. If the command returns
|
||
several screens full of important-looking output, then congratulations,
|
||
you have hardware video overlay and you need not worry about it anymore.
|
||
</P
|
||
><P
|
||
> If, on the other hand, xvinfo returns with a negative answer like:
|
||
<TABLE
|
||
BORDER="0"
|
||
BGCOLOR="#E0E0E0"
|
||
WIDTH="100%"
|
||
><TR
|
||
><TD
|
||
><FONT
|
||
COLOR="#000000"
|
||
><PRE
|
||
CLASS="programlisting"
|
||
><TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>xvinfo</B
|
||
></B
|
||
></TT
|
||
>
|
||
<TT
|
||
CLASS="computeroutput"
|
||
> X-Video Extension version 2.2
|
||
screen #0
|
||
no adaptors present
|
||
</TT
|
||
>
|
||
</PRE
|
||
></FONT
|
||
></TD
|
||
></TR
|
||
></TABLE
|
||
>
|
||
then that means you don't have hardware overlay support. See <A
|
||
HREF="#overlaytrouble"
|
||
>Overlay Troubleshooting</A
|
||
> for tips
|
||
on how to get overlay support working.
|
||
</P
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect2"
|
||
><HR><H2
|
||
CLASS="sect2"
|
||
><A
|
||
NAME="dma"
|
||
></A
|
||
>2.5. Enabling DMA</H2
|
||
><P
|
||
>DMA drive access is critical for DVD playback because it lowers
|
||
the CPU overhead of disc reading and leaves more of the CPU free for
|
||
video playback. On most systems, enabling DMA support for the DVD drive
|
||
means the difference between choppy playback and smooth playback.</P
|
||
><P
|
||
>To see if you have DMA enabled, type (as root) the
|
||
command<TABLE
|
||
BORDER="0"
|
||
BGCOLOR="#E0E0E0"
|
||
WIDTH="100%"
|
||
><TR
|
||
><TD
|
||
><FONT
|
||
COLOR="#000000"
|
||
><PRE
|
||
CLASS="programlisting"
|
||
><TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>hdparm</B
|
||
> -d /dev/hdc</B
|
||
></TT
|
||
>
|
||
</PRE
|
||
></FONT
|
||
></TD
|
||
></TR
|
||
></TABLE
|
||
>(replacing <TT
|
||
CLASS="filename"
|
||
>/dev/hdc</TT
|
||
> with
|
||
your DVD drive's actual device name). If DMA is already on, then you're
|
||
done. Otherwise, you should turn it on by typing <B
|
||
CLASS="command"
|
||
>hdparm -d 1
|
||
/dev/hdc</B
|
||
>. You may want to add this command to a startup
|
||
script such as <TT
|
||
CLASS="filename"
|
||
>/etc/rc.d/rc.local</TT
|
||
> to ensure that
|
||
the DMA support is active every time your computer boots.
|
||
</P
|
||
><P
|
||
>See the <A
|
||
HREF="#dmatrouble"
|
||
>DMA Troubleshooting</A
|
||
> section
|
||
if DMA won't turn on even after you've typed the command to turn it
|
||
on.</P
|
||
></DIV
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect1"
|
||
><HR><H1
|
||
CLASS="sect1"
|
||
><A
|
||
NAME="install"
|
||
></A
|
||
>3. Software Installation</H1
|
||
><P
|
||
> Here we cover the installation of the DVD playback software on various
|
||
Linux distributions. For each Linux distribution we indicate how to
|
||
install <A
|
||
HREF="http://www.mplayerhq.hu/"
|
||
TARGET="_top"
|
||
>MPlayer</A
|
||
>, <A
|
||
HREF="http://xine.sourceforge.net/"
|
||
TARGET="_top"
|
||
>Xine</A
|
||
>, <A
|
||
HREF="http://www.dtek.chalmers.se/groups/dvd/"
|
||
TARGET="_top"
|
||
>Ogle</A
|
||
>, and <A
|
||
HREF="http://www.videolan.org/"
|
||
TARGET="_top"
|
||
>VideoLAN</A
|
||
> onto the system. These
|
||
are the four most popular software packages for DVD playback in Linux.
|
||
Usage instructions for these programs will be given in the next section.
|
||
</P
|
||
><P
|
||
> Read the section that corresponds to your Linux distribution. All
|
||
of the installation commands given below should be run as root.
|
||
</P
|
||
><DIV
|
||
CLASS="sect2"
|
||
><HR><H2
|
||
CLASS="sect2"
|
||
><A
|
||
NAME="redhat"
|
||
></A
|
||
>3.1. Red Hat / Fedora</H2
|
||
><P
|
||
>If you run Red Hat Linux or Fedora, you can download all of the
|
||
DVD playback software from the <A
|
||
HREF="http://freshrpms.net/"
|
||
TARGET="_top"
|
||
>FreshRPMS</A
|
||
> package repository. Since
|
||
there are so many packages needed for DVD playback, the easiest way to
|
||
install all of them is to use <B
|
||
CLASS="command"
|
||
>apt-get</B
|
||
>. Here's how
|
||
to do it: </P
|
||
><P
|
||
></P
|
||
><OL
|
||
TYPE="1"
|
||
><LI
|
||
><P
|
||
>Follow the link to the version of apt that matches your Red Hat
|
||
version:</P
|
||
><P
|
||
></P
|
||
><UL
|
||
><LI
|
||
><P
|
||
><A
|
||
HREF="http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/1/apt/"
|
||
TARGET="_top"
|
||
>Fedora
|
||
Core 1</A
|
||
></P
|
||
></LI
|
||
><LI
|
||
><P
|
||
><A
|
||
HREF="http://ftp.freshrpms.net/pub/freshrpms/redhat/9/apt/"
|
||
TARGET="_top"
|
||
>Red Hat
|
||
Linux 9</A
|
||
></P
|
||
></LI
|
||
><LI
|
||
><P
|
||
><A
|
||
HREF="http://ftp.freshrpms.net/pub/freshrpms/redhat/8.0/apt/"
|
||
TARGET="_top"
|
||
>Red Hat
|
||
Linux 8</A
|
||
></P
|
||
></LI
|
||
><LI
|
||
><P
|
||
><A
|
||
HREF="http://ftp.freshrpms.net/pub/freshrpms/redhat/7.3/apt/"
|
||
TARGET="_top"
|
||
>Red Hat Linux 7.3</A
|
||
></P
|
||
></LI
|
||
></UL
|
||
><P
|
||
>Download the appropriate binary x86 RPM package (in this example,
|
||
<TT
|
||
CLASS="filename"
|
||
>apt-0.5.15cnc3-0.1.fr.i386.rpm</TT
|
||
>) and install it
|
||
using the <B
|
||
CLASS="command"
|
||
>rpm</B
|
||
> command as follows:<TABLE
|
||
BORDER="0"
|
||
BGCOLOR="#E0E0E0"
|
||
WIDTH="100%"
|
||
><TR
|
||
><TD
|
||
><FONT
|
||
COLOR="#000000"
|
||
><PRE
|
||
CLASS="programlisting"
|
||
><TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>rpm -Uvh</B
|
||
> apt-0.5.15cnc3-0.1.fr.i386.rpm</B
|
||
></TT
|
||
></PRE
|
||
></FONT
|
||
></TD
|
||
></TR
|
||
></TABLE
|
||
></P
|
||
></LI
|
||
><LI
|
||
><P
|
||
>Run the
|
||
commands<TABLE
|
||
BORDER="0"
|
||
BGCOLOR="#E0E0E0"
|
||
WIDTH="100%"
|
||
><TR
|
||
><TD
|
||
><FONT
|
||
COLOR="#000000"
|
||
><PRE
|
||
CLASS="programlisting"
|
||
><TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>apt-get</B
|
||
> update</B
|
||
></TT
|
||
>
|
||
<TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>apt-get</B
|
||
> install mplayer xine ogle_gui</B
|
||
></TT
|
||
>
|
||
</PRE
|
||
></FONT
|
||
></TD
|
||
></TR
|
||
></TABLE
|
||
>to have apt install everything for you.</P
|
||
></LI
|
||
></OL
|
||
><DIV
|
||
CLASS="sect3"
|
||
><HR><H3
|
||
CLASS="sect3"
|
||
><A
|
||
NAME="AEN167"
|
||
></A
|
||
>3.1.1. Special note about VideoLAN and Red Hat</H3
|
||
><P
|
||
>The FreshRPMS repository contains the
|
||
<TT
|
||
CLASS="filename"
|
||
>videolan-client</TT
|
||
> package for Red Hat 9 and Red Hat
|
||
7.3, but not for Red Hat 8 or Fedora Core 1. If you want to install
|
||
VideoLAN on Red Hat 9 or Red Hat 7.3, you can just type
|
||
<B
|
||
CLASS="command"
|
||
>apt-get install videolan-client</B
|
||
> and let the
|
||
program take care of it for you. Fedora Core 1 users who want VideoLAN
|
||
will need to visit the <A
|
||
HREF="http://www.videolan.org/vlc/download-redhat.html"
|
||
TARGET="_top"
|
||
>official VideoLAN
|
||
Red Hat page</A
|
||
> instead, and follow the instructions there. I do not
|
||
recommend that Fedora users install VideoLAN, since the VideoLAN
|
||
packages interfere to a large degree with the FreshRPMS packages installed in the previous step.</P
|
||
><P
|
||
>There appears to be no easy way to install VideoLAN on Red Hat 8.</P
|
||
></DIV
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect2"
|
||
><HR><H2
|
||
CLASS="sect2"
|
||
><A
|
||
NAME="debian"
|
||
></A
|
||
>3.2. Debian</H2
|
||
><P
|
||
>These instructions are for Debian, stable only (3.0r1 as of
|
||
this writing) -- it is assumed that if you run testing or unstable versions
|
||
then you should already know what you are doing.
|
||
</P
|
||
><P
|
||
> Make sure the following lines are in your
|
||
<TT
|
||
CLASS="filename"
|
||
>/etc/apt/sources.list</TT
|
||
>
|
||
file:<TABLE
|
||
BORDER="0"
|
||
BGCOLOR="#E0E0E0"
|
||
WIDTH="100%"
|
||
><TR
|
||
><TD
|
||
><FONT
|
||
COLOR="#000000"
|
||
><PRE
|
||
CLASS="programlisting"
|
||
>deb http://hpisi.nerim.net/ stable main
|
||
deb http://www.interq.or.jp/libra/oohara/debian-unofficial/ ./
|
||
deb http://download.videolan.org/pub/videolan/debian woody main
|
||
</PRE
|
||
></FONT
|
||
></TD
|
||
></TR
|
||
></TABLE
|
||
></P
|
||
><P
|
||
>(The first line is for MPlayer, the second is for the Xine CSS
|
||
plugins, and the third is for VideoLAN.) Then run the
|
||
commands:</P
|
||
><TABLE
|
||
BORDER="0"
|
||
BGCOLOR="#E0E0E0"
|
||
WIDTH="100%"
|
||
><TR
|
||
><TD
|
||
><FONT
|
||
COLOR="#000000"
|
||
><PRE
|
||
CLASS="programlisting"
|
||
><TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>apt-get</B
|
||
> update</B
|
||
></TT
|
||
>
|
||
<TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>apt-get</B
|
||
> install mplayer-686 mplayer-fonts mplayer-doc ogle</B
|
||
></TT
|
||
>
|
||
<TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>/usr/share/doc/ogle/examples/install-css.sh</B
|
||
></B
|
||
></TT
|
||
>
|
||
<TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>apt-get</B
|
||
> install xine-ui xine-d5d-plugin xine-d4d-plugin gnome-vlc libdvdcss2</B
|
||
></TT
|
||
>
|
||
</PRE
|
||
></FONT
|
||
></TD
|
||
></TR
|
||
></TABLE
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect2"
|
||
><HR><H2
|
||
CLASS="sect2"
|
||
><A
|
||
NAME="slackware"
|
||
></A
|
||
>3.3. Slackware</H2
|
||
><P
|
||
>The best site for Slackware add-on packages is <A
|
||
HREF="http://www.linuxpackages.net/"
|
||
TARGET="_top"
|
||
>http://www.linuxpackages.net/</A
|
||
>. You can use their search
|
||
engine to find and download the Ogle, Xine, MPlayer, libdvdcss,
|
||
libdvdnav, libdvdread, lame, and a52dec packages from the web site. Put
|
||
the packages into a single directory and run
|
||
<B
|
||
CLASS="command"
|
||
>pkgtool</B
|
||
> to install the packages onto your
|
||
system.</P
|
||
><P
|
||
>For VideoLAN, you will have to build it from
|
||
source since there is no precompiled package on the LinuxPackages web
|
||
site yet. To make matters worse, the version of mpeg2dec included
|
||
with Slackware 9.1 is too old to be used with VideoLAN, so you have to
|
||
compile a newer version of mpeg2dec as well.
|
||
</P
|
||
><P
|
||
>That said, if you <EM
|
||
>still</EM
|
||
> want to install
|
||
VideoLAN, then download the latest source packages for <A
|
||
HREF="http://libmpeg2.sourceforge.net/"
|
||
TARGET="_top"
|
||
>mpeg2dec</A
|
||
> and <A
|
||
HREF="http://www.videolan.org/"
|
||
TARGET="_top"
|
||
>VideoLAN</A
|
||
> and run the following
|
||
commands. Note that you have to disable ffmpeg support for the VideoLAN
|
||
build because the Slackware MPlayer packages omit some of the header files
|
||
needed by ffmpeg.</P
|
||
><TABLE
|
||
BORDER="0"
|
||
BGCOLOR="#E0E0E0"
|
||
WIDTH="100%"
|
||
><TR
|
||
><TD
|
||
><FONT
|
||
COLOR="#000000"
|
||
><PRE
|
||
CLASS="programlisting"
|
||
><TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>tar </B
|
||
>xzvf mpeg2dec-0.4.0.tar.gz</B
|
||
></TT
|
||
>
|
||
<TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>cd </B
|
||
>mpeg2dec-0.4.0</B
|
||
></TT
|
||
>
|
||
<TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>./configure</B
|
||
> </B
|
||
></TT
|
||
>
|
||
<TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>make</B
|
||
> </B
|
||
></TT
|
||
>
|
||
<TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>make</B
|
||
> install </B
|
||
></TT
|
||
>
|
||
<TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>cd </B
|
||
>..</B
|
||
></TT
|
||
>
|
||
<TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>tar </B
|
||
>xzvf vlc-0.7.0.tar.gz</B
|
||
></TT
|
||
>
|
||
<TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>cd </B
|
||
>vlc-0.7.0</B
|
||
></TT
|
||
>
|
||
<TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>./configure</B
|
||
> --disable-ffmpeg</B
|
||
></TT
|
||
>
|
||
<TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>make</B
|
||
> </B
|
||
></TT
|
||
>
|
||
<TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>make</B
|
||
> install </B
|
||
></TT
|
||
>
|
||
</PRE
|
||
></FONT
|
||
></TD
|
||
></TR
|
||
></TABLE
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect2"
|
||
><HR><H2
|
||
CLASS="sect2"
|
||
><A
|
||
NAME="mandrake"
|
||
></A
|
||
>3.4. Mandrake</H2
|
||
><P
|
||
>Mandrake users can get packages for all of the video programs from
|
||
the <A
|
||
HREF="http://plf.zarb.org/"
|
||
TARGET="_top"
|
||
>Penguin Liberation Front</A
|
||
>
|
||
web site. The fastest way is to visit the <A
|
||
HREF="http://urpmi.org/easyurpmi/"
|
||
TARGET="_top"
|
||
>Easy Urpmi</A
|
||
> site and follow the
|
||
instructions to generate a listing of the commands you need to type for
|
||
PLF access in urpmi. You should then type in the commands returned by
|
||
the web site to set up your system for PLF access.
|
||
</P
|
||
><P
|
||
>After you have set up PLF access, type:
|
||
<TABLE
|
||
BORDER="0"
|
||
BGCOLOR="#E0E0E0"
|
||
WIDTH="100%"
|
||
><TR
|
||
><TD
|
||
><FONT
|
||
COLOR="#000000"
|
||
><PRE
|
||
CLASS="programlisting"
|
||
><TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>urpmi.update</B
|
||
> -a</B
|
||
></TT
|
||
>
|
||
<TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>urpmi</B
|
||
> mplayer libdvdcss2 xine-ui ogle ogle_gui vlc</B
|
||
></TT
|
||
>
|
||
</PRE
|
||
></FONT
|
||
></TD
|
||
></TR
|
||
></TABLE
|
||
>to install all the video programs.</P
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect2"
|
||
><HR><H2
|
||
CLASS="sect2"
|
||
><A
|
||
NAME="suse"
|
||
></A
|
||
>3.5. SuSE</H2
|
||
><P
|
||
>The YaST package program included with SuSE works only with
|
||
official packages, and there are no official packages that support DVD.
|
||
Therefore you will have to install the packages for all of the DVD
|
||
software manually.</P
|
||
><P
|
||
>MPlayer and Xine packages for SuSE are available on the <A
|
||
HREF="http://packman.links2linux.org/?action=index"
|
||
TARGET="_top"
|
||
>PackMan site</A
|
||
>.
|
||
For MPlayer, you need the MPlayer, lzo, and xvid packages on that
|
||
page as well as the <SPAN
|
||
CLASS="QUOTE"
|
||
>"additionally needed binary packages"</SPAN
|
||
> listed
|
||
on the page for each package. SuSE 9.0 users should note that as of this
|
||
writing the MPlayer package for SuSE 9.0 has a broken
|
||
<TT
|
||
CLASS="filename"
|
||
>libsmbclient.so.0</TT
|
||
> dependency. You can work around
|
||
this problem with the commands<TABLE
|
||
BORDER="0"
|
||
BGCOLOR="#E0E0E0"
|
||
WIDTH="100%"
|
||
><TR
|
||
><TD
|
||
><FONT
|
||
COLOR="#000000"
|
||
><PRE
|
||
CLASS="programlisting"
|
||
><TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>rpm -Uvh</B
|
||
> --nodeps MPlayer-1.0pre3-pm.1.i686.rpm</B
|
||
></TT
|
||
>
|
||
<TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>ln -s</B
|
||
> libsmbclient3.so.0 /usr/lib/libsmbclient.so.0</B
|
||
></TT
|
||
>
|
||
</PRE
|
||
></FONT
|
||
></TD
|
||
></TR
|
||
></TABLE
|
||
>
|
||
</P
|
||
><P
|
||
>To install Xine, you should download and install the
|
||
libxine1-dvd and xine-ui packages from <A
|
||
HREF="http://packman.links2linux.org/?action=index"
|
||
TARGET="_top"
|
||
>PackMan</A
|
||
>.
|
||
Encrypted DVD support in Xine also requires installing <A
|
||
HREF="http://download.videolan.org/pub/libdvdcss/1.2.8/rpm/redhat/"
|
||
TARGET="_top"
|
||
> libdvdcss</A
|
||
> from the VideoLAN site.</P
|
||
><P
|
||
>Ogle can be installed using the <A
|
||
HREF="http://www.dtek.chalmers.se/groups/dvd/redhat.shtml"
|
||
TARGET="_top"
|
||
>Red Hat
|
||
RPMs</A
|
||
> from the Ogle site. SuSE 9.0 users who want to install the
|
||
Ogle_gui package will also need to install <A
|
||
HREF="ftp://rpmfind.net/linux/SuSE-Linux/i386/8.2/suse/i586/orbit-0.5.17-116.i586.rpm"
|
||
TARGET="_top"
|
||
> orbit</A
|
||
>,
|
||
<A
|
||
HREF="ftp://rpmfind.net/linux/SuSE-Linux/i386/8.2/suse/i586/gdk-pixbuf-0.18.0-248.i586.rpm"
|
||
TARGET="_top"
|
||
> gdk-pixbuf</A
|
||
>, <A
|
||
HREF="ftp://rpmfind.net/linux/SuSE-Linux/i386/8.2/suse/i586/gnome-libs-1.4.1.7-273.i586.rpm"
|
||
TARGET="_top"
|
||
> gnome-libs</A
|
||
>, and <A
|
||
HREF="ftp://rpmfind.net/linux/SuSE-Linux/i386/8.2/suse/i586/libglade-0.16-1015.i586.rpm"
|
||
TARGET="_top"
|
||
> libglade</A
|
||
> from SuSE 8.2.</P
|
||
><P
|
||
>VideoLAN users will need to download the <A
|
||
HREF="http://download.videolan.org/vlc/download-redhat.html"
|
||
TARGET="_top"
|
||
>Red Hat
|
||
RPMs</A
|
||
> from the VideoLAN site and install them forcibly using
|
||
<B
|
||
CLASS="command"
|
||
>rpm --nodeps</B
|
||
>. The VideoLAN packages also require
|
||
<A
|
||
HREF="ftp://rpmfind.net/linux/SuSE-Linux/i386/8.2/suse/i586/XFree86-compat-libs-4.3.0-19.i586.rpm"
|
||
TARGET="_top"
|
||
>XFree86-compat-libs</A
|
||
>
|
||
and <A
|
||
HREF="ftp://rpmfind.net/linux/SuSE-Linux/i386/8.2/suse/i586/freetype-1.3.1-801.i586.rpm"
|
||
TARGET="_top"
|
||
>freetype</A
|
||
>
|
||
from SuSE 8.2 in order to run.</P
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect2"
|
||
><HR><H2
|
||
CLASS="sect2"
|
||
><A
|
||
NAME="gentoo"
|
||
></A
|
||
>3.6. Gentoo</H2
|
||
><P
|
||
>The basic command to use is:<TABLE
|
||
BORDER="0"
|
||
BGCOLOR="#E0E0E0"
|
||
WIDTH="100%"
|
||
><TR
|
||
><TD
|
||
><FONT
|
||
COLOR="#000000"
|
||
><PRE
|
||
CLASS="programlisting"
|
||
><TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>emerge</B
|
||
> sync</B
|
||
></TT
|
||
>
|
||
<TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>USE="dvd mmx sse" emerge</B
|
||
> mplayer xine-ui vlc ogle-gui</B
|
||
></TT
|
||
>
|
||
</PRE
|
||
></FONT
|
||
></TD
|
||
></TR
|
||
></TABLE
|
||
></P
|
||
><P
|
||
> If you have an AMD processor, you should type <B
|
||
CLASS="command"
|
||
>USE="dvd
|
||
mmx 3dnow"</B
|
||
> instead of using the <TT
|
||
CLASS="varname"
|
||
>sse</TT
|
||
> flag.
|
||
Athlon XP owners can use the <TT
|
||
CLASS="varname"
|
||
>3dnow</TT
|
||
> and
|
||
<TT
|
||
CLASS="varname"
|
||
>sse</TT
|
||
> flags together.</P
|
||
></DIV
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect1"
|
||
><HR><H1
|
||
CLASS="sect1"
|
||
><A
|
||
NAME="usage"
|
||
></A
|
||
>4. Software Usage</H1
|
||
><P
|
||
> Although I have tried very hard to keep this HOWTO focused on practical
|
||
advice instead of abstract theory, it is necessary to have some minimal
|
||
background in television video in order to understand how to get the
|
||
best possible video quality under Linux.
|
||
</P
|
||
><DIV
|
||
CLASS="sect2"
|
||
><HR><H2
|
||
CLASS="sect2"
|
||
><A
|
||
NAME="principles"
|
||
></A
|
||
>4.1. General principles: deinterlacing, telecine, and framerates</H2
|
||
><P
|
||
> Regular television video is <EM
|
||
>interlaced</EM
|
||
>, meaning
|
||
that the odd-numbered scanlines are recorded (and displayed) first,
|
||
followed by the even numbered scanlines, then the odd ones again, then
|
||
the even ones again, etc. Each individual line is displayed 30 times a
|
||
second (or 25, depending on where you live), but because of the
|
||
interlacing, the television image as a whole is refreshed 60 times a
|
||
second (or 50), with only half of the total lines being refreshed each
|
||
time.
|
||
</P
|
||
><P
|
||
> In general, with interlaced motion pictures, there is no way to
|
||
reconstruct any single video frame perfectly without artifacts. This
|
||
point is important enough to repeat: <EM
|
||
>there is no way to
|
||
perfectly reconstruct any single frame!</EM
|
||
> The reason is that
|
||
the odd-numbered lines are recorded onto the video tape with a timing
|
||
skew of one half-frame relative to the even-numbered lines. If the video
|
||
picture is still, this timing skew is no problem, but for moving
|
||
pictures it causes half the lines to be displaced from the other half.
|
||
On a television screen, you can't see this displacement, since TV
|
||
screens (except for high-end HDTV monitors) are of such low quality that
|
||
the artifacts aren't visible. However, on a computer screen, this
|
||
displacement is very visible and causes comb-like artifacts to appear in
|
||
the video. You can see screenshots of interlacing artifacts in the
|
||
<A
|
||
HREF="http://www.lukesvideo.com/interlacing.html"
|
||
TARGET="_top"
|
||
>interlacing
|
||
section</A
|
||
> of <A
|
||
HREF="http://www.lukesvideo.com/"
|
||
TARGET="_top"
|
||
>Luke's Video
|
||
Guide</A
|
||
>.</P
|
||
><DIV
|
||
CLASS="sect3"
|
||
><HR><H3
|
||
CLASS="sect3"
|
||
><A
|
||
NAME="deinterlace"
|
||
></A
|
||
>4.1.1. How to fix interlacing artifacts</H3
|
||
><P
|
||
>The process of removing interlacing artifacts is called
|
||
<EM
|
||
>deinterlacing</EM
|
||
>. Unfortunately, all deinterlacing
|
||
techniques are imperfect to some extent, and there is no single method
|
||
which works best in all situations. It is therefore important to
|
||
experiment with all of the different possible deinterlace settings to
|
||
see which one works best for a particular disc.
|
||
</P
|
||
><P
|
||
> <A
|
||
HREF="#mplayer"
|
||
>MPlayer</A
|
||
> users can get a list of deinterlacing options
|
||
by typing <B
|
||
CLASS="command"
|
||
>mplayer -pphelp</B
|
||
> at the command line.
|
||
Find the option that you want to use, and then use the <B
|
||
CLASS="command"
|
||
>-vf
|
||
pp=<option></B
|
||
> syntax to activate the option. For example,
|
||
I usually use the <TT
|
||
CLASS="varname"
|
||
>lb</TT
|
||
> option, which is
|
||
done with the command: <B
|
||
CLASS="command"
|
||
>mplayer -vf pp=lb</B
|
||
>, followed by
|
||
whatever other options you would normally use to play the DVD.
|
||
</P
|
||
><P
|
||
> <A
|
||
HREF="#vlc"
|
||
>VideoLAN</A
|
||
> users can right-click on the movie to get a
|
||
list of deinterlacing options (under <SPAN
|
||
CLASS="guimenuitem"
|
||
>Video
|
||
Settings</SPAN
|
||
> or <SPAN
|
||
CLASS="guimenuitem"
|
||
>Deinterlace</SPAN
|
||
>,
|
||
depending on the program version).
|
||
</P
|
||
><P
|
||
> <A
|
||
HREF="#xine"
|
||
>Xine</A
|
||
> has a list of
|
||
deinterlacing options in the configuration panel; to get to it, right-click on the movie window, open the
|
||
<SPAN
|
||
CLASS="guimenu"
|
||
>Settings</SPAN
|
||
>-><SPAN
|
||
CLASS="guimenuitem"
|
||
>Setup</SPAN
|
||
> dialog, set <SPAN
|
||
CLASS="QUOTE"
|
||
>"Configuration experience level"</SPAN
|
||
> to
|
||
<SPAN
|
||
CLASS="QUOTE"
|
||
>"Advanced"</SPAN
|
||
>, and then look for <SPAN
|
||
CLASS="QUOTE"
|
||
>"Software deinterlace
|
||
method"</SPAN
|
||
> under the <SPAN
|
||
CLASS="QUOTE"
|
||
>"Video"</SPAN
|
||
> tab.</P
|
||
><P
|
||
><A
|
||
HREF="#ogle"
|
||
>Ogle</A
|
||
> has no deinterlacing support, so it is not
|
||
recommended to use Ogle for watching interlaced video.
|
||
</P
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect3"
|
||
><HR><H3
|
||
CLASS="sect3"
|
||
><A
|
||
NAME="telecine"
|
||
></A
|
||
>4.1.2. Telecined video</H3
|
||
><P
|
||
>This section only applies to video in NTSC format (used in North
|
||
America, east Asia, and parts of Latin America) -- PAL users (the rest of
|
||
the world) can skip ahead.</P
|
||
><P
|
||
> The one exception to all of the above discussion about interlacing is in
|
||
the case of telecined video. Briefly put, <EM
|
||
>telecine</EM
|
||
>
|
||
is a special kind of interlacing that is done only to theatrical (i.e.
|
||
cinematic) movies and some forms of hand-drawn animated shows. The
|
||
special thing about telecine is that it can usually be perfectly undone.
|
||
The details are too complicated to explain here, but you can read about
|
||
it in <A
|
||
HREF="http://www.lukesvideo.com/telecining.html"
|
||
TARGET="_top"
|
||
>Luke's
|
||
Video Guide</A
|
||
> or <A
|
||
HREF="http://www.access-one.com/rjn/laser/legacy/ld12.txt"
|
||
TARGET="_top"
|
||
>Bob Niland's
|
||
FAQs</A
|
||
> if you're curious.
|
||
</P
|
||
><P
|
||
>The process of undoing the telecine artifacts is called
|
||
<EM
|
||
>inverse telecine</EM
|
||
>. The good news is that inverse
|
||
telecine, done properly, fully restores the original video quality of
|
||
the source video with no artifacts whatsoever. The bad news is that
|
||
<A
|
||
HREF="#mplayer"
|
||
>MPlayer</A
|
||
> is the only player program in the world right
|
||
now that can perform inverse telecine.</P
|
||
><P
|
||
>To perform inverse telecine in MPlayer, simply add the
|
||
<TT
|
||
CLASS="varname"
|
||
>-vf ivtc</TT
|
||
> option to the MPlayer command. This
|
||
option is the right one to use if you are watching a movie you know
|
||
originated as a theatrical release, or if you are watching animated
|
||
shows. Warning: this option is very CPU intensive. You need at least a 1 GHz
|
||
processor to even think about doing it.</P
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect3"
|
||
><HR><H3
|
||
CLASS="sect3"
|
||
><A
|
||
NAME="windows"
|
||
></A
|
||
>4.1.3. How come Windows users don't have to deal with all this?</H3
|
||
><P
|
||
>Windows DVD players hide most of the complexity of DVD playback
|
||
and fall back to the lowest common demoninator when playing DVDs. The
|
||
result is that you get playback quality which is decent in a wide range
|
||
of situations but not always the best that can be achieved in any given
|
||
situation. For example, no Windows DVD player in the world has an
|
||
inverse telecine filter like MPlayer does, so telecined material always
|
||
looks dramatically worse in Windows than in MPlayer under Linux.</P
|
||
></DIV
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect2"
|
||
><HR><H2
|
||
CLASS="sect2"
|
||
><A
|
||
NAME="AEN345"
|
||
></A
|
||
>4.2. Specific usage instructions</H2
|
||
><P
|
||
>Here we give specific instructions for launching basic DVD
|
||
playback in the various player programs. These commands only cover the
|
||
basic steps of operating each program. You are encouraged to refer to
|
||
the man pages of each program for further instructions.</P
|
||
><P
|
||
>Put the DVD that you want to play into your drive before
|
||
attempting playback.</P
|
||
><DIV
|
||
CLASS="sect3"
|
||
><HR><H3
|
||
CLASS="sect3"
|
||
><A
|
||
NAME="mplayer"
|
||
></A
|
||
>4.2.1. MPlayer</H3
|
||
><P
|
||
>Type <B
|
||
CLASS="command"
|
||
>mplayer dvd://1</B
|
||
> to begin playing title
|
||
#1 on the disc. To play other title numbers, substitute the appropriate
|
||
number in place of <B
|
||
CLASS="command"
|
||
>1</B
|
||
>.
|
||
</P
|
||
><P
|
||
>Old versions of MPlayer, such as the one used in Debian, require
|
||
the command <B
|
||
CLASS="command"
|
||
>mplayer -dvd 1</B
|
||
> instead. In some cases
|
||
you also have to explicitly add the option <TT
|
||
CLASS="varname"
|
||
>-vo xv</TT
|
||
>
|
||
in order to make MPlayer use the hardware video overlay port.</P
|
||
><P
|
||
>Subtitle and audio options for MPlayer have to be specified on the
|
||
command line. The format is <TT
|
||
CLASS="varname"
|
||
>-alang NN</TT
|
||
> or
|
||
<TT
|
||
CLASS="varname"
|
||
>-slang NN</TT
|
||
> where <TT
|
||
CLASS="varname"
|
||
>NN</TT
|
||
> is the two-letter
|
||
language code of the language you want. For example, to play back
|
||
Japanese audio with English subtitles, type:<TABLE
|
||
BORDER="0"
|
||
BGCOLOR="#E0E0E0"
|
||
WIDTH="100%"
|
||
><TR
|
||
><TD
|
||
><FONT
|
||
COLOR="#000000"
|
||
><PRE
|
||
CLASS="programlisting"
|
||
><TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>mplayer</B
|
||
> dvd://1 -alang ja -slang en</B
|
||
></TT
|
||
>
|
||
</PRE
|
||
></FONT
|
||
></TD
|
||
></TR
|
||
></TABLE
|
||
>
|
||
on the command line.
|
||
</P
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect3"
|
||
><HR><H3
|
||
CLASS="sect3"
|
||
><A
|
||
NAME="xine"
|
||
></A
|
||
>4.2.2. Xine</H3
|
||
><P
|
||
>Simply type <B
|
||
CLASS="command"
|
||
>xine</B
|
||
> at the command prompt to
|
||
start the program.</P
|
||
><P
|
||
>The first time you start the program, it will display a
|
||
configuration screen with a bunch of options. In most cases you can
|
||
leave all of the options at the defaults.</P
|
||
><P
|
||
>The program has a graphical console with a row of labeled buttons
|
||
along the bottom. Press the DVD button to start playing the DVD. (However, if
|
||
your version of Xine has a D5D button, use that instead.)</P
|
||
><P
|
||
>Xine supports DVD menus, so you can set language or subtitling
|
||
options as you normally would via the disc's own menu.</P
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect3"
|
||
><HR><H3
|
||
CLASS="sect3"
|
||
><A
|
||
NAME="ogle"
|
||
></A
|
||
>4.2.3. Ogle</H3
|
||
><P
|
||
>Type <B
|
||
CLASS="command"
|
||
>ogle</B
|
||
> to start the program. Depending on
|
||
which version of the program you have, it may start playing the DVD
|
||
automatically. If it doesn't, then click on the <SPAN
|
||
CLASS="guimenu"
|
||
>File</SPAN
|
||
>
|
||
menu and select <SPAN
|
||
CLASS="guimenuitem"
|
||
>Open Disc</SPAN
|
||
> to begin reading
|
||
the disc.</P
|
||
><P
|
||
>Ogle, like Xine, supports DVD menus for setting the language or
|
||
subtitling options.</P
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect3"
|
||
><HR><H3
|
||
CLASS="sect3"
|
||
><A
|
||
NAME="vlc"
|
||
></A
|
||
>4.2.4. VideoLAN</H3
|
||
><P
|
||
>Use the <B
|
||
CLASS="command"
|
||
>vlc</B
|
||
> command to bring up the VideoLAN
|
||
GUI and click on the disc icon to open the disc and start playing.
|
||
Right click the playback window to bring up the options menu, which
|
||
includes deinterlacing, audio, and subtitle options.</P
|
||
></DIV
|
||
></DIV
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect1"
|
||
><HR><H1
|
||
CLASS="sect1"
|
||
><A
|
||
NAME="AEN383"
|
||
></A
|
||
>5. Troubleshooting</H1
|
||
><DIV
|
||
CLASS="qandaset"
|
||
><DL
|
||
><DT
|
||
>5.1. <A
|
||
HREF="#overlaytrouble"
|
||
><B
|
||
CLASS="command"
|
||
>xvinfo</B
|
||
> returns <SPAN
|
||
CLASS="QUOTE"
|
||
>"no adaptors
|
||
present"</SPAN
|
||
></A
|
||
></DT
|
||
><DT
|
||
>5.2. <A
|
||
HREF="#overlaybug"
|
||
><B
|
||
CLASS="command"
|
||
>xvinfo</B
|
||
> works but overlay output is
|
||
garbled</A
|
||
></DT
|
||
><DT
|
||
>5.3. <A
|
||
HREF="#dmatrouble"
|
||
>DMA isn't working</A
|
||
></DT
|
||
><DT
|
||
>5.4. <A
|
||
HREF="#choppyvideo"
|
||
>Video playback is choppy
|
||
</A
|
||
></DT
|
||
><DT
|
||
>5.5. <A
|
||
HREF="#choppysound"
|
||
>Sound playback is choppy
|
||
</A
|
||
></DT
|
||
><DT
|
||
>5.6. <A
|
||
HREF="#cssgarbled"
|
||
>Out of region discs play back garbled
|
||
</A
|
||
></DT
|
||
><DT
|
||
>5.7. <A
|
||
HREF="#csstimeout"
|
||
>Out-of-region discs hang on playback
|
||
</A
|
||
></DT
|
||
></DL
|
||
><DIV
|
||
CLASS="qandaentry"
|
||
><DIV
|
||
CLASS="question"
|
||
><P
|
||
><A
|
||
NAME="overlaytrouble"
|
||
></A
|
||
><B
|
||
>5.1. </B
|
||
><B
|
||
CLASS="command"
|
||
>xvinfo</B
|
||
> returns <SPAN
|
||
CLASS="QUOTE"
|
||
>"no adaptors
|
||
present"</SPAN
|
||
></P
|
||
></DIV
|
||
><DIV
|
||
CLASS="answer"
|
||
><P
|
||
><B
|
||
> </B
|
||
>Make sure you are running XFree86 4.1 or above. You can find
|
||
out your version of XFree86 by typing <B
|
||
CLASS="command"
|
||
>X
|
||
-version</B
|
||
> at the command prompt.</P
|
||
><P
|
||
>Use an appropriate driver for your video card. Some Linux
|
||
distributions default to using the generic XFree86 VESA driver instead
|
||
of the specific driver for your video card. You need to use the
|
||
hardware-specific driver for your card in order to get hardware
|
||
overlay support.</P
|
||
><P
|
||
></P
|
||
><UL
|
||
><LI
|
||
><P
|
||
>ATI users should try downloading the improved ATI XFree86
|
||
drivers from the <A
|
||
HREF="http://gatos.sourceforge.net/"
|
||
TARGET="_top"
|
||
>GATOS</A
|
||
> home page, or from the
|
||
<A
|
||
HREF="http://www.ati.com/support/faq/linux.html"
|
||
TARGET="_top"
|
||
>official ATI
|
||
Linux support page</A
|
||
>.</P
|
||
></LI
|
||
><LI
|
||
><P
|
||
>NVidia users should try downloading the <A
|
||
HREF="http://www.nvidia.com/content/drivers/drivers.asp"
|
||
TARGET="_top"
|
||
>official NVidia
|
||
Linux drivers</A
|
||
> for their video card.</P
|
||
></LI
|
||
><LI
|
||
><P
|
||
>Sometimes upgrading <A
|
||
HREF="http://www.xfree86.org/"
|
||
TARGET="_top"
|
||
>XFree86</A
|
||
> can provide you with an
|
||
improved driver that has hardware overlay support, but such an upgrade is
|
||
beyond the scope of this HOWTO.</P
|
||
></LI
|
||
></UL
|
||
></DIV
|
||
></DIV
|
||
><DIV
|
||
CLASS="qandaentry"
|
||
><DIV
|
||
CLASS="question"
|
||
><P
|
||
><A
|
||
NAME="overlaybug"
|
||
></A
|
||
><B
|
||
>5.2. </B
|
||
><B
|
||
CLASS="command"
|
||
>xvinfo</B
|
||
> works but overlay output is
|
||
garbled</P
|
||
></DIV
|
||
><DIV
|
||
CLASS="answer"
|
||
><P
|
||
><B
|
||
> </B
|
||
>Problems with garbled or missing overlay output usually mean
|
||
that you don't have enough video RAM to hold both the regular desktop
|
||
display and the video overlay display at once. Typically you need twice
|
||
as much video RAM as normal at a given video resolution in order to use
|
||
hardware video overlay. In some cases you may even need 3 to 5 times more
|
||
RAM because of internal buffering in the video card.</P
|
||
><P
|
||
>The only easy way to lower your video RAM requirements is to
|
||
switch to a lower video resolution while playing videos.</P
|
||
></DIV
|
||
></DIV
|
||
><DIV
|
||
CLASS="qandaentry"
|
||
><DIV
|
||
CLASS="question"
|
||
><P
|
||
><A
|
||
NAME="dmatrouble"
|
||
></A
|
||
><B
|
||
>5.3. </B
|
||
>DMA isn't working</P
|
||
></DIV
|
||
><DIV
|
||
CLASS="answer"
|
||
><P
|
||
><B
|
||
> </B
|
||
>You can tell that DMA is broken if using the command
|
||
<B
|
||
CLASS="command"
|
||
>hdparm -d1</B
|
||
> on your DVD drive returns a message like the
|
||
following:<TABLE
|
||
BORDER="0"
|
||
BGCOLOR="#E0E0E0"
|
||
WIDTH="100%"
|
||
><TR
|
||
><TD
|
||
><FONT
|
||
COLOR="#000000"
|
||
><PRE
|
||
CLASS="programlisting"
|
||
><TT
|
||
CLASS="prompt"
|
||
># </TT
|
||
><TT
|
||
CLASS="userinput"
|
||
><B
|
||
><B
|
||
CLASS="command"
|
||
>hdparm</B
|
||
> -d1 /dev/hda</B
|
||
></TT
|
||
>
|
||
<TT
|
||
CLASS="computeroutput"
|
||
>
|
||
/dev/hda:
|
||
setting using_dma to 1 (on)
|
||
HDIO_SET_DMA failed: Operation not permitted
|
||
using_dma = 0 (off)
|
||
</TT
|
||
></PRE
|
||
></FONT
|
||
></TD
|
||
></TR
|
||
></TABLE
|
||
></P
|
||
><P
|
||
> The only way to fix this problem is to compile a kernel with DMA support
|
||
for your particular chipset. It is beyond the scope of this HOWTO to
|
||
explain how to compile a kernel, but the steps which are particularly
|
||
relevant to DMA support are as follows:</P
|
||
><P
|
||
></P
|
||
><OL
|
||
TYPE="1"
|
||
><LI
|
||
><P
|
||
>Download a <EM
|
||
>recent</EM
|
||
> kernel so that
|
||
you have the greatest possible chance of DMA being supported on your
|
||
chipset.</P
|
||
></LI
|
||
><LI
|
||
><P
|
||
>Unpack your kernel and type <B
|
||
CLASS="command"
|
||
>make
|
||
xconfig</B
|
||
>
|
||
in the kernel build directory. Under <SPAN
|
||
CLASS="QUOTE"
|
||
>"ATA/IDE/MFM/RLL support"</SPAN
|
||
>,
|
||
select <SPAN
|
||
CLASS="QUOTE"
|
||
>"IDE, ATA, and ATAPI Block devices"</SPAN
|
||
> and enable
|
||
<SPAN
|
||
CLASS="QUOTE"
|
||
>"Generic PCI bus-master DMA support"</SPAN
|
||
> and <SPAN
|
||
CLASS="QUOTE"
|
||
>"Use DMA by
|
||
default when available"</SPAN
|
||
>.</P
|
||
></LI
|
||
><LI
|
||
><P
|
||
>On the same page there are several dozen chipset-specific DMA
|
||
drivers that continue downward for several screens. Find and select one
|
||
relevant to your chipset, if there are any. For example if you have
|
||
an AMD Athlon based VIA chipset, enable the <SPAN
|
||
CLASS="QUOTE"
|
||
>"VIA82CXXX chipset
|
||
support"</SPAN
|
||
> item.</P
|
||
></LI
|
||
></OL
|
||
><P
|
||
>For more information on compiling kernels, see the <A
|
||
HREF="http://en.tldp.org/HOWTO/Kernel-HOWTO/"
|
||
TARGET="_top"
|
||
>Kernel HOWTO</A
|
||
> as
|
||
well as the <A
|
||
HREF="http://www.tldp.org/HOWTO/Ultra-DMA.html"
|
||
TARGET="_top"
|
||
>Linux
|
||
Ultra-DMA Mini-Howto</A
|
||
>.</P
|
||
></DIV
|
||
></DIV
|
||
><DIV
|
||
CLASS="qandaentry"
|
||
><DIV
|
||
CLASS="question"
|
||
><P
|
||
><A
|
||
NAME="choppyvideo"
|
||
></A
|
||
><B
|
||
>5.4. </B
|
||
>Video playback is choppy
|
||
</P
|
||
></DIV
|
||
><DIV
|
||
CLASS="answer"
|
||
><P
|
||
><B
|
||
> </B
|
||
>On a fast enough computer (say, over 1 GHz), choppy video
|
||
playback usually means that your overlay support or DMA support is
|
||
misconfigured. See the previous troubleshooting items.
|
||
</P
|
||
><P
|
||
>On a very slow computer (say, 0-500 MHz), there is nothing
|
||
you can do short of hardware upgrades to make DVD playback run well.
|
||
</P
|
||
><P
|
||
>For borderline computers (anything in between), you can
|
||
gain a modest (~10%) performance boost by upgrading from kernel 2.2 to
|
||
kernel 2.4 and using an SSE-optimized player program like
|
||
MPlayer.
|
||
</P
|
||
><P
|
||
>Finally, if all else fails, run MPlayer with the option
|
||
<B
|
||
CLASS="command"
|
||
>mplayer -framedrop</B
|
||
> to patch over occasional glitches
|
||
in video playback.
|
||
</P
|
||
></DIV
|
||
></DIV
|
||
><DIV
|
||
CLASS="qandaentry"
|
||
><DIV
|
||
CLASS="question"
|
||
><P
|
||
><A
|
||
NAME="choppysound"
|
||
></A
|
||
><B
|
||
>5.5. </B
|
||
>Sound playback is choppy
|
||
</P
|
||
></DIV
|
||
><DIV
|
||
CLASS="answer"
|
||
><P
|
||
><B
|
||
> </B
|
||
>The most common cause of sound playback problems is from
|
||
sound cards that do not support 48 kHz audio playback. For people in
|
||
this category, I strongly suggest that you purchase a new sound card.
|
||
Even a cheap PCI sound card can give you a substantial upgrade in sound
|
||
quality for less than the cost of two DVDs.
|
||
</P
|
||
><P
|
||
>Failing that, you can lighten the load on your sound playback
|
||
system by not using a sound daemon such as ESounD or aRts and playing
|
||
the DVD audio directly to the OSS driver. To do this with MPlayer, run
|
||
<B
|
||
CLASS="command"
|
||
>mplayer -ao=oss</B
|
||
> along with whatever other options
|
||
you normally use.
|
||
</P
|
||
></DIV
|
||
></DIV
|
||
><DIV
|
||
CLASS="qandaentry"
|
||
><DIV
|
||
CLASS="question"
|
||
><P
|
||
><A
|
||
NAME="cssgarbled"
|
||
></A
|
||
><B
|
||
>5.6. </B
|
||
>Out of region discs play back garbled
|
||
</P
|
||
></DIV
|
||
><DIV
|
||
CLASS="answer"
|
||
><P
|
||
><B
|
||
> </B
|
||
>In the past, older versions of most of the programs
|
||
discussed here have had trouble decrypting out-of-region discs. The
|
||
result of a failed decryption looks like the colored video noise that
|
||
you see.
|
||
</P
|
||
><P
|
||
>Upgrading to the newest available version of any of the
|
||
programs should solve this problem.</P
|
||
></DIV
|
||
></DIV
|
||
><DIV
|
||
CLASS="qandaentry"
|
||
><DIV
|
||
CLASS="question"
|
||
><P
|
||
><A
|
||
NAME="csstimeout"
|
||
></A
|
||
><B
|
||
>5.7. </B
|
||
>Out-of-region discs hang on playback
|
||
</P
|
||
></DIV
|
||
><DIV
|
||
CLASS="answer"
|
||
><P
|
||
><B
|
||
> </B
|
||
>Watch the DVD drive's access light while the program is
|
||
hanging. Is the light still blinking in an access pattern? If it is (and
|
||
usually it will be), that means the program is still in the middle of
|
||
decrypting the disc.
|
||
</P
|
||
><P
|
||
>Decrypting the DVD involves mounting a fairly
|
||
large-scale computational effort to recover the key. It is not at all
|
||
unusual for a computer to take five or even ten minutes to decrypt a
|
||
single DVD key.</P
|
||
><P
|
||
>In-region discs never have this problem because the DVD drive
|
||
firmware automatically decrypts discs that match with the drive's own
|
||
region.</P
|
||
></DIV
|
||
></DIV
|
||
></DIV
|
||
></DIV
|
||
><DIV
|
||
CLASS="sect1"
|
||
><HR><H1
|
||
CLASS="sect1"
|
||
><A
|
||
NAME="moreinfo"
|
||
></A
|
||
>6. Further Information</H1
|
||
><P
|
||
></P
|
||
><UL
|
||
><LI
|
||
><P
|
||
><A
|
||
HREF="http://dag.wieers.com/howto/dvd/"
|
||
TARGET="_top"
|
||
>Dag
|
||
Wieers' overview</A
|
||
> of the Linux DVD playback programs</P
|
||
></LI
|
||
><LI
|
||
><P
|
||
><A
|
||
HREF="http://www.bunkus.org/dvdripping4linux/en/separate/index.html"
|
||
TARGET="_top"
|
||
>Moritz
|
||
Bunkus's DVD ripping guide</A
|
||
> for Linux</P
|
||
></LI
|
||
></UL
|
||
></DIV
|
||
></DIV
|
||
></BODY
|
||
></HTML
|
||
> |