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

517 lines
11 KiB
HTML

<HTML
><HEAD
><TITLE
>Software Usage</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="Software Installation"
HREF="install.html"><LINK
REL="NEXT"
TITLE="Troubleshooting"
HREF="x383.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="install.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x383.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="usage"
></A
>4. Software Usage</H1
><P
>&#13;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"
><H2
CLASS="sect2"
><A
NAME="principles"
></A
>4.1. General principles: deinterlacing, telecine, and framerates</H2
><P
>&#13;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
>&#13;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"
><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
>&#13;<A
HREF="usage.html#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=&#60;option&#62;</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
>&#13;<A
HREF="usage.html#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
>&#13;<A
HREF="usage.html#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
>-&gt;<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="usage.html#ogle"
>Ogle</A
> has no deinterlacing support, so it is not
recommended to use Ogle for watching interlaced video.
</P
></DIV
><DIV
CLASS="sect3"
><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
>&#13;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="usage.html#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"
><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"
><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"
><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"
><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"
><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"
><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="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="install.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="x383.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Software Installation</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Troubleshooting</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>