old-www/HOWTO/DVD-Playback-HOWTO/prep.html

465 lines
8.2 KiB
HTML

<HTML
><HEAD
><TITLE
>System Preparation</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="DVD Playback HOWTO"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Introduction"
HREF="intro.html"><LINK
REL="NEXT"
TITLE="Software Installation"
HREF="install.html"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>DVD Playback HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="intro.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="install.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><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
>&#13;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="prep.html#overlay"
>X Video Overlay</A
> support</P
></LI
><LI
><P
>DVD drive with <A
HREF="prep.html#dma"
>DMA</A
> enabled</P
></LI
></UL
></DIV
><DIV
CLASS="sect2"
><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"
><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
>&#13;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
>&#13;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"
><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
>&#13;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"
>&#13;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="x383.html#overlaytrouble"
>Overlay Troubleshooting</A
> for tips
on how to get overlay support working.
</P
></DIV
><DIV
CLASS="sect2"
><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="x383.html#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="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="intro.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="install.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Introduction</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Software Installation</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>