
                          The Xine Video Player HOWTO
                                       
ߣ Rich Wareham, <richwareham@users.sourceforge.net>
ߣ½ [1]clavin@mail.rm.kmu.edu.tw

   v0.92, Apr 27 2001 ڣ 14 May 2001
     _________________________________________________________________
   
   ļ˵ΰװ趨ʹ Xine ӰƬ塣
     _________________________________________________________________
   
1. 

     * 1.1 ļ°汾
     * 1.2 Ӧ
     * 1.3 
     * 1.4 ȨѶϢ
     * 1.5 ύıӵ HOWTO?
       
2.  Xine

     * 2.1 ҴԵõ Xine ?
     * 2.2 ֧Ԯƽ̨ϵͳ
     * 2.3 ҿԵǱ Xine 򱨸?
       
3. 벢װ Xine

     * 3.1 аװָ?
     * 3.2 װ˵
     * 3.3 װ Xine ڲͬĿ¼
     * 3.4 ṩ C Ա flags ?
     * 3.5  K7 α Xine ?
     * 3.6 ѱõĶλ
       
4. ʹ Xine

     * 4.1 ָӰƬԴ
     * 4.2 ѡ
     * 4.3 ʾĻ
     * 4.4 ǿʹ MIT-SHM (XShm) ʾ
     * 4.5 ǿʹضʽ
     * 4.6 Զ
     * 4.7 ң Xine
     * 4.8 ʹʱС Tips and tricks
       
5.  Xine  DVDs

6.  Xine  AVI 

     * 6.1  Xine ڲ AVI ʱ
       
7. ƽ̨رעϵͳ

     * 7.1 FreeBSD
       
8. Ч

     * 8.1 Ӳ
     * 8.2 ĺ MTRR ֧Ԯ
     * 8.3 趨ʹԭװãraw devices dvd ȡ
     * 8.4 XVideo 칦
     * 8.5 MTRR (Linux)
     * 8.6 ѻŵȡ
       
9. ų

     * 9.1 Xine ϵ DVD ťû
     * 9.2 һƺܺõȴ;ֹͣȦ
     * 9.3 ҵõѶϢ: demux error! 00 00 00 (should be 0x000001)
     * 9.4 ѶϢ ``200 frames delivered, 200 frames skipped, 0
       frames discarded''
     * 9.5 Ҳһر𵵰/ Xine ʾһЩͼƬȴû
     * 9.6 ڲ SVCD ʱ
     * 9.7 Xine ص
     * 9.8 ȫөĻģʽ
     * 9.9 ҵЧ S/PDIF  AC3 ܲ
     * 9.10 ǱҿԵõµķչ?
     * 9.11 ʹ dvd ҳʽ/ dvd:// MRL ʽ?
     * 9.12 ѶϢʾ޷ dvd (/dev/dvd)  Xine ޷ DVD 
       
     * 9.13 өĻ߿ȴ!
     * 9.14 δ STDIN ?
     * 9.15 ҿԸı?
     * 9.16 ҿԸıɫ//Ա?
     * 9.17 ҵ X 浱 Xine ӰƬʱЩط͸!
     * 9.18 ţֻѶϢ ``audio driver 'oss' failed, using
       null driver instead.''ʾ
     * 9.19 ִ xine ᣬ޷
     * 9.20  FreeBSD ʹ Xine 
     * 9.21 ƴ Xine ķ
     * 9.22 ҵһ!
       
10.  Xine 

11. Դ

     * 11.1 DVD Ѷ
     * 11.2 չԴ
     _________________________________________________________________
   
1. 

   ļΪһʹдṩʹ Xine ӰƬӰƬ
   δ DVD ӰƬķ. ע Xine ӰƬδǰ޷
   CSS-ܵ DVD ӰƬ
   
1.1 ļ°汾

   ļ°汾ɴλַõ:
   
     * [2]http://xine.sourceforge.net/
     * [3]http://www.srcf.ucam.org/~rjw57/xine
       
   λַԵõļ°汾ĸָʽ:
   
   [4]http://www.srcf.ucam.org/~rjw57/xine
   
1.2 Ӧ

   κۣ󱨸棬ѶֱӼĸ:
  richwareham@users.sourceforge.net

1.3 

   ļΪݸκΡʹô˹и 
   һڰ汾пǲȷġ
   
   ܵ趨еһڴ  Linux Уһͨ
   ෽
   
   ֪ᵽ嶼ܵ GNU ͨù֤Ͽͨù
   ֤Ĺ
   
1.4 ȨѶϢ

   ļȨ Xine (c)2001 ƻвйɢ:
   
     * ļп˰ȨѶϢκʻӷʽȫ
       ƺɢҵ ɢҹ; Ȼ 
       ɢʱõ֪
     * з룬ƷκδļľۺϲƷܵȨı
       ֮㲻κδ HOWTO Ʒ϶ɢĶơ
       
1.5 ύıӵ HOWTO?

   ϺõķǱ༭ Xine-HOWTO.sgml ϲı䣬 һ
   diff 
  diff -uw ԭʼ µ

   Ҽĵ richwareham@users.sourceforge.net. 㲻 Ϥ SGML ûϵ
   κʽĸıѶϢɱܡ  diff ֻ HOWTO ά߽
   άˡ :-)
   
2.  Xine

   Xine һΪ Unix-ҵϵͳƵͨù֤ӰƬ塣 
   ֧Ԯ MPEG-2  MPEG-1 ѹʽ ( + Ӱ ) Ѷţ MPEG 
   (磺 MP3)  AVI  (ʹ Windows ȡõһЩ DLL ).
   
   Xine ӰѶڲʱͬ ʣ
   ʱ账б ȫٶȲ MPEG 2 ʹ 400 MHz PII ϵ
   ͳͿԴɡ
   
   Xine ֱӲ Video CDs, SVCDs and DVDs  ҵǣż/
    DVD  ĳЩзԵ޷ Xine м
   κ DVD /ĳʽ롣 Ҫ DVD 㽫Ҫʽһ
   ر Xine ҳʽ ϸ  DVD  һ¡
   
   Xine ǿֱЧʡ ڴʱչŵĻۡ ҪĿĽ
   춴ﵽƽ˳ӰƬĿꡣ
   
2.1 ҴԵõ Xine ?

   Xine Դ [5]http://xine.sourceforge.net/ õ ʱ°汾Ϊ
   0.4.2. Xine ͬʱṩ tar.gz ѹ Debian  RPM װʽ
   
2.2 ֧Ԯƽ̨ϵͳ

   Xine Ҫ߱ʾөĻ (͸· X-session δṩҲ
   Զʵ֣Ϊ ӰҪƵ)
   
   Xine Ҫ MIT-SHM ( MIT 칦)˹ XFree86  3.3.x 
   ֧Ԯ  X-Video 칦 (Xv) -- ˹ܽϿ֧ԮȫөĻֻв
    XFree86 4.x ʽ֧Ԯ ˽ Xv (֪ʾǷ
   ֧Ԯ)ο Xine Чܡһ»ο XFree86 ֯վ (
   [6]http://www.xfree86.org/).
   
   δʹ Xv ܣ趨өĻɫΪ 16 λԪ-ÿ- (bpp) 
   ٶȡ Xv ƺ 16bpp  24bpp ʱЧܽϼѡ
   
   ӵ Matrox G200  G400 ͼʾѡ sybcfb/teletux Ӱ
   ʽ ο Xine ں README.syncfb ˽顣 ʹ
   ʽĺôǿӰͼөĻͬ Գȥ춿ƶ
   ʱ "˺"ëѶ
   
   Ҫһ֧Ԯ OSS  ALSA ʽЧ ESD ЧפʽҲ֧Ԯ
    HOWTO Ѿȷİװ趨Ч X ŷ
   
   Xine Ѿɹװʹϵͳ:
     * Linux on a Pentium III 667 using XFree86 4.01 on a nVidia Riva TNT
       2
     * Linux on a Pentium II 400 using XFree86 3.3.6, 4.0, 4.01 and 4.02
       on a nVidia Riva TNT
     * FreeBSD 4.1-Release on a Celeron 400 using XFree86 3.3.6 and 4.0.1
       on a Matrox G400
     * Linux on a Pentium 120 (no MMX) using XFree86 3.3.5 on a Trident
       9660
     * Linux on an AMD K6-266 using XFree86 3.3.5 on a ATI AIW M64-8Mb
       PCI
     * Linux on an AMD K6-III 450 using XFree86 3.3.6 on a ATI RageII 8MB
     * Linux on a Celeron 633 using XFree86 4.0.1 on a ATI AIW
       Rage128-16MB
     * Linux on a Amd K7@550 using Xfree 4.0.1 on a Ati Rage 128 16 Mb
       (Xv is working on this configuration with drivers from GATOS
       project)
     * Linux on a Celeron 667 using XFree86 4.0.2 on a Riva TNT 16Mb (Xv
       is working on this configuration with closed-sources drivers
       version 0.9.5 from NVidia).
     * Linux on a Pentium III 500 using XFree86 4.0.2 on a Matrox G400.
       
   ֲ -Intel ƽ̨ĹеԲ졣 Xine  Mac ϵ
   Linux/PPC 
   
2.3 ҿԵǱ Xine 򱨸?

   һλ Sourceforge  xine-user ʼб
    Ҳ Xine վ ( [7]http://xine.sourceforge.net/)
   
   Ҳһ IRC ҡ #xine λ irc.openprojects.net.
   
3. 벢װ Xine

   ָ Xine վصԭʼѹװ (ƿ
   xine-xx.xx.xx.tar.gz) װʽָ
   
   ص㷽Ŀ¼ ն˻ʽĿ¼ 磬ص
   /home/rich/src/ ָ:
  $ cd /home/rich/src/

   ָѹ Xine ԭʼѹ ԭʼĿ¼
  $ tar xvzf xine-*.tar.gz
  $ cd xine

3.1 аװָ?

   ȫİװָ INSTALLС ˵Ϊװָ档
   
3.2 װ˵

   ѹ Xine ԭʼѹ [8]벢װ Xineһ Ļ
   趨ԭʼ벢·:
  $ ./configure
  $ make

   ڣʹ root Ȩ rootָ:
  $ make install

3.3 װ Xine ڲͬĿ¼

   Ҫװ Xine ڣ磬 /usr/local/xineĿ¼
  $ ./configure --prefix=/usr/local/xine

    root 
  $ make install

3.4 ṩ C Ա flags ?

   趨 GLOBAL_CFLAGS ٴִ ./configure
   
   Ҫָ include paths  library paths :
  $ export GLOBAL_CFLAGS="-I/usr/include -L/home/guenter/xine_libs"

3.5  K7 α Xine ?

   ýµ gcc  K7 ֧Ԯ (especially better
   instruction sheduling)  configure script ޷ȷĴ
   /gcc ȷȷ趨 XINE_BUILD 磺
  $ export XINE_BUILD=k7-pc-linux-gnu
  $ rm -f config.cache
  $ ./autogen.sh
  $ make
  $ make install

3.6 ѱõĶλ

   㲻ϣԼ Xine  Xine վмԤȱõ"׼"ȡ
   
   
   ע⣺Ҳ԰װ"׼"ϣͼνʽ kpackage
   װ
   
  Debian ׼ (.deb)
  
   ʹ Debian `ȶ' ķ֧װ Xine root:
  $ apt-get install xine

   ⣬ص .deb ָ صĵ
   ȡ
  $ dpkg -i xine-x.x.x.deb

  Red-Hat ׼ (.rpm)
  
    Xine վ RPM ָ rootǵصĵȡ
   
  $ rpm -ivh xine-x.x.x.rpm

4. ʹ Xine

   ʹ Xine ʱвҲԲ롣 벥 VCD 
   DVD򵥵ķ ָ:
  $ xine

   Ȼ Xine е DVD  VCD ť Xineʵɨ DVD  VCD
    Xine DVD  VCD ڣ԰ `play' ťʼŵӰˡ
   
    Xine ״ʱXine Ӵʾ (ڵ׵ Xine logo) ڻϵ
    Ҽ  Xine Ŀ塣
   
   Xine Ŀ VCR вţֹͣͣƶʼյ
   ܡ
   
   ֪ʹ÷ʹָ
  $ xine --help

4.1 ָӰƬԴ

   Xine ʹ media resource locator (MRL)ָӰƬԴõ MRLs 
   :
   
     * file://some/file.vob - ָ /some/file.vob.
     * fifo://[[mpeg1:mpeg2]:/]some/fifo - Xine ر FIFO ߵõӰƬ
        /some/fifo Ԥ裬Xine Ϊ mpeg-2 ʽ MRL 
       ȷָʹ mpeg1  mpeg2
     * stdin://[mpeg1:mpeg2] - Xine  stdin ȡӰƬ ʹô fifo://
       MRL, Xine Ϊ mpeg2 Ƕ趨
     * dvd://VTS_xx_y.VOB - ʹ DVD ϵ ָ VOB ʹ
       file:// MRL ǲͬģΪ Xine ֱӴ DVD ϶͸
       Unix ϵͳ
     * vcd://track -  VCD ضĹ졣
       
   ܹһ䣬 Xine ִз
  $ xine <mrl>

   ˵ŵ /some/where/foo.vob:
  $ xine file://some/where/foo.vob

   Ҳֱָһţ:
  $ xine /some/where/foo.vob

   Ҳ԰ʾ MRL stdin://mpeg2 :
  $ xine -

  
  
   зԲ /path/foo.vob:
  $ xine /path/foo.vob
  $ xine file://path/foo.vob

   Xine ֧Ԯ xdnd Э ( 3 ) Լһ֧ԮЭĵ (
    gmc)ӰƬ xine š
   
    VCD ĵ:
  $ xine vcd://3

   ֱӲ DVD:
  $ xine dvd://VTS_01_1.VOB

4.2 ѡ

   ЩӰƬ ( DVDs) ַѡ졣 
   ķʹ Xine ͼʾ״Եļͷѡ
   
   ߣҲʹ -a в Ҫŵĵֹ
   /path/foo.mpg:
  $ xine -a 3 /path/foo.mpg

    MPEG-1 ӰƬֻ֧Ԯ mpeg  (ײ 1, 2 and 3)
   
   MPEG-2 вͬʽ Xine ֧Ԯ AC3 (dolby digital)
   mpeg  LPCM  Ǳ䵽:
  Track    selected audio stream

   0- 7    AC3 stream 0-7
   8-15    MPG audio stream 0-7
  16-23    PCM audio stram 0-7

   磬 PCM  0 ʹָ
  $ xine -a 16 file.vob

  SPDIF 
  
   ЩЧ֧ԮλΪ SPDIF вָ -S, Xine ͼʹ
    ע⣺ֻ趨ʹ ALSA ʽ ALSA ʽ
   ֧Ԯʱá :
  $ xine -S file.vob

4.3 ʾĻ

   DVDs  VOB ܰĻѶ Xine ӰƬʾĻ 
   ԤǹرյĵǿԸı Xine ĻͼʾҲĻĺ
   
   
   ⣬Ҳʹ -u в 磬 ʾ 0 Ļʹ:
  $ xine -u 0 <file or MRL>

4.4 ǿʹ MIT-SHM (XShm) ʾ

   Xine ͼԶөĻԳܵʾ ǿʹ MIT-SHM ʾ
    Xv ʹ -s в :
  $ xine -s /path/file.mpg

4.5 ǿʹضʽ

   в -A ѡ OSS (oss) ALSA (alsa), ESD (esd)  NULL
   (null) ʽ 磬ǿʹ ALSA ʽ:
  $ xine -A alsa /path/file.mpg

   NULL ʽʹκЧӲֻ춲;
   
4.6 Զ

   Xine ʼʱ -p вԶš :
  $ xine -p /path/file.mpg

    -p Ҳһ Xine:
     * f - ȫөĻģʽ Xine (ֻ Xv)
     * h - ؿ塣
     * q - ӰƬʱͬʱ Xine
     * d -  DVD ȡò嵥
     * v -  VCD ȡò嵥
       
   磬ȫөĻԶҴ DVD ȡò嵥:
  $ xine -pfhd

4.7 ң Xine

   УFIXME: Include Tobj Jaffey's post about LIRC
   
4.8 ʹʱС Tips and tricks

   зʹʱһЩСʹܸ Xine
   
  رөĻ
  
    Xine ޷лȫөĻʱرөĻͿհөĻ(DPMS) Ҫ
   رգʹ xset :
  $ xset s off     # رөĻ
  $ xset -dpms     # ر DPMS

  Ƴն˻
  
   Ϊ Xine ڷչУִʱѶն˻ Ҫڿʼ Xine ʱ
   Ƴն˻:
  $ xine mrl 2>&1 >/dev/null

  ԶִƳն˻
  
   һ򵥵ָ壨shell script Xine ʱԶִ
   ¡
  #!/bin/sh
  xset s off -dpms
  xine "$1" 2>&1 >/dev/null
  xset s on +dpms

5.  Xine  DVDs

   Xine  δ DVDs ڽ(out-of-the-box)֧Ԯ 󲿷 DVDs 
   Content Scrambling System (CSS)ϵͳܵġ дͷƽּ
   зϵ顣 Ϊ CSS-سʽĲȷأ Xine 
   ںܡ Ҫõܣһر ҳʽ plugin
   ֳҳʽ captain_css ҳʽ libcss ҳʽ
   
   captain_css ҳʽİװԴ
   [9]http://members.nbci.com/captain_css/ õ
   
   libcss ҳʽҪ libcss ʽ⣬˳ʽ LiViD ƻһ (
   [10]http://www.linuxvideo.org/) ҳʽɴ
   [11]http://www.kuroyi.net/xine/xine_dvd_libcss_plugin-clut.tar.gzõ
   libcss ʽз LiViD CVS ֪:
  $ export CVSROOT=:pserver:anonymous@cvs.linuxvideo.org:/cvs/livid
  $ cvs login (no password needed - just press return)
  $ cvs -z3 co libcss

   ҳʽִʱҲ libcss.so ȷ /usr/local/lib ڵ
   /etc/ld.so.conf  Ѿʹ root ִ ldconfig 
   
   Ҳһ /dev/dvd ָ DVD װá ʹ DVD װ
   Ҫ CDROM (磺ֹųʽʹ DVD ) 
   root ִָ:
  $ ln -s /dev/cdrom /dev/dvd

   ߣ֪ DVD  (磺 /dev/hdc) ָ:
  $ ln -s /dev/hdc /dev/dvd

6.  Xine  AVI 

    Xine 0.3.6 Xine ѾԲ Windows AVI  Ҫﵽ˹
   ʹ Windows ʽ DLLs) š Xine Ԥᵽ
   /usr/lib/win32/ Ŀ¼ ȥҡ һۿ AVI õ DLLs 
   Zip  (е DixX ;-) ʽ) ɴ
   [12]http://bpinaud.free.fr/video  [13]http://divx.euro.ru/ õ (˵
   Ϊ binaries.zip)
   
6.1  Xine ڲ AVI ʱ

    Win32 codec (AVI ֧Ԯ) ʵʡ ϵͳҪӦ
   ÿԹ:
     * Xv ʽá
     *  AVI ں mpeg Ч
     * ʵ DLLs  /usr/lib/win32/
       
   ҲĪ͵ رڵںİʱ
   
7. ƽ̨رעϵͳ

7.1 FreeBSD

  Xine (allocating) ӰʧЧ
  
   ȷ㹻ķ塣 Ԥֵ൱޵ġ
   
   ༭ /etc/sysctl.conf :
  kern.ipc.shmmax=67108864
  kern.ipc.shmall=32768

   VCD
  
    (Ϊ FreeBSD ĵĹϵ) Xine ܹ ATAPI  VCDs 
   ܴ SCSI š
   
    (Jan 2001) FreeBSD-ȶҪһĵĲʹ VCDs Թ
   (㲻ȷò һԶģ FreeBSD ļ)
   
   Ҫĵ /sys/dev/ata/atapi-cd.c ˲ǰ
   README.freebsd  Xine ԭʼɢ
   
8. Ч

   ӰƬ (ر DVDs)  ǳ ġ Ҫƽ˳ Xine 
   ͼʹøʽ Ӳٹܡ ϶ x86 PCs  Linux ص
   ϵͳܹммɡ
   
8.1 Ӳ

   гһЩõӲ塣
   
  AGP bus ʾ
  
   һ AGP ʾõԴӰϵʾЧʡ ˲Żƽ˳
   ǿҽʹá
   
  RAM Ƶ(޸!)
  
   Ϥ BIOS 趨Խ RAM  BIOS صʱ趨 ( CAS
   delay, RAS to CAS delay, ) Ϊ 2. 볢һЩļɣ 
    (˵) [14]http://www.overclockers.com/tips105/index03.asp. 
   վһ Windows-þƬ鹦ܣ  FreeBSD ϵ
   pciconfͬ¡ һЩ linux ׼Ҳƹߡ ʹ via
   apollo pro Ƭ⣬ϵ heiko (heiko@users.sourceforge.net)
   
    [15]http://powertweak.sourceforge.netҵһĺùߡ
   
   йѶο
   [16]http://oreilly.linux.com/pub/a/linux/2000/06/29/hdparm.html
   
8.2 ĺ MTRR ֧Ԯ

   ʹ XFree 3.x, 㽫Լ֪Ǳͼμá 
   linux dvd howto пԵõѶϢ ʹ XFree 4.x ֻҪ MTRR
   ֧ԮͿˡ Դ cat /proc/mtrr - ˵ʾеͼμ
   Ǿûˡ
   
8.3 趨ʹԭװãraw devices dvd ȡ

   linux  2.4.x ʼ֧ԮԭװҲиϾɺĵĲ
   [17]ftp://ftp.kernel.org/pub/linux/kernel/people/sct/raw-io/. Ҫʹԭ
   װãҪһյԭװø dvd װã磺
  $ raw /dev/raw1 /dev/hdc

   Ȼᣬһ "rdvd" ָԭװ
  $ ln -s /dev/raw1 /dev/rdvd

8.4 XVideo 칦

   XVideo 칦 XFree86 X-ŷ 4.0 һܡ 
   ʾ֧Ԯ:
   
   3DFX Voodoo 3
          The 3dfx driver works in XFree86 version 4.0.3 and above.
          
   nVidia GeForce
          Xv only works with nVidia's own drivers. The place to ask is
          the IRC room #nvidia on irc.openprojects.net. They can be
          downloaded from [18]http://www.nvidia.com/
          
   nVidia TNT2 and TNT1
          As with the GeForce, only NVidia's drivers work.
          
   ATI cards
          Xv is reported to work with Rage 128 and Mach64 based cards
          with drivers from the GATOS project (
          [19]http://www.linuxvideo.org/).
          
   Matrox Gx00 cards
          Xv ڽ
          
   Intel i810 and i815
          Xv ڽ
          
    Xv 칦ȷװ xvinfo ʽ:
  Adaptor #1: "Matrox G-Series Backend Scaler"
    number of ports: 1
    port base: 47
    operations supported: PutImage
    supported visuals:
      depth 16, visualID 0x23
      depth 16, visualID 0x24
      depth 16, visualID 0x25
      depth 16, visualID 0x26
    number of attributes: 3
      "XV_COLORKEY" (range 0 to 16777215)
              client settable attribute
              client gettable attribute (current value is 2110)
      "XV_BRIGHTNESS" (range -128 to 127)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_CONTRAST" (range 0 to 255)
              client settable attribute
              client gettable attribute (current value is 128)
    maximum XvImage size: 1024 x 1024
    Number of image formats: 0

   Ҳܱ XF86Config-4  Modules μ `Load "v4l"'
   
8.5 MTRR (Linux)

    Linux ļ:
   Intel P6 崦 (Pentium Pro, Pentium II )
  Memory Type Range Registers (MTRRs) ƴȡΡ
   PCI  AGP bus ʾ (VGA)õġ  write-combining
  allows bus д transfers to be combined into a larger transfer
  before bursting over the PCI/AGP bus. ⽫Ӱд붯Чʴ 2.5 ϡ

  Cyrix 6x86, 6x86MX and M II  Address Range Registers (ARRs) ṩһ

   MTRRs Ĺܡ ڴˣ ARRs ģ MTRRs

  AMD K6-2 (stepping 8 )  K6-3  MTRRs Ҳ֧Ԯ

  Centaur C6 (WinChip)  8 MCRs,  write-combining. Ҳ֧Ԯ

   ʹ XShm ȷ MTRRs 趨ȷ Ե Ч 
   Ƿ /proc/mtrr ȷĺ֧Ԯ MTRR
   
    cat /proc/mtrr ȷһйʾļ塣 ûУ
   Linux ԭʼļ mtrr.txt 
   
8.6 ѻŵȡ

   ˵ IDE ӲЧ ȷ֧Ԯ UDMA/33 Э (
    UDMA Э) ʹ hdparm ߳ʽʹ Linux ʹô˽ѻŵ
   ϴ䡣
   
   : hdparm һΣԵĹߣȷʹÿӰĵԶȡ 
   Ӳ ʹΣԼ
   
    hdparm drive_device :
  S hdparm /dev/dvd
  ...
    using_dma    = 1 (on)
  ...

   ʾ off ıκβ hdparm ֲᡣ
   
9. ų

   ½гһЩͽ һһ Xine ʹҾ
   һδ룬  e-mail  HOWTO ά:
  richwareham@users.sourceforge.net

9.1 Xine ϵ DVD ťû

   ȷ /dev/dvd 趨ȷ (μ DVDs һ)
   
9.2 һƺܺõȴ;ֹͣȦ

    2.4.1 ĵĳ Ҫ¡
   
9.3 ҵõѶϢ: demux error! 00 00 00 (should be 0x000001)

    xine ܴȡԴ 󲿷ֳ춵벥ż/
   DVDs ʱ Xine ڽܲܲ DVDs ()
   
   Ҫʹһ̨ css- DVD ҳʽ⡣ Ѷ
    [20]http://xine.cjb.net/ ע⣺ CSS ܵ DVDs  Xine 
   ܡ
   
   Ѿأmounted DVD  Xine Թ Linux 
   ϵͳ DVD ʱ޷  umount ָأunmounting
   
   
   һԭ (RPC-2) DVD δ趨Ϊȷ롣
   
9.4 ѶϢ ``200 frames delivered, 200 frames skipped, 0 frames
discarded''

   ѾѡƵһ Xine δ֧Ԯϸʽ
   
9.5 Ҳһر𵵰/ Xine ʾһЩͼƬȴû

   һƵ:
  $ xine -a channel stream.vob

   Щ .VOB Ƶ (磺 3, 7, 10)
   
9.6 ڲ SVCD ʱ

   Xine   SVCDs Ƶ ʱӦ÷
   #8 ˫ SVCDs  #9 죬
  $ xine -a 8

   Ӧÿ԰ ``vcd'' ťҲ SVCDs
   
9.7 Xine ص

   Ӳ Xine ˵̫ˡ ȷٶѻѡ ο
   <@ref>Performance Xine Ч
   ½ڡ
   
9.8 ȫөĻģʽ

    Xv 칦ܹǷ
   
9.9 ҵЧ S/PDIF  AC3 ܲ

    S/PDIF  AC3  ALSA ֧Ԯֻ֧Ԯ Trident 4DWaveNX 
   YMF ƬЧ Ч
  $ xine -S -A alsa

   -S ѡرڽ AC3  ԷǳĻӰƬ (û
   )  Xine
  $ xine -S -A null

9.10 ǱҿԵõµķչ?

   ȣչ Ǹչõġ δʵ
   ܲ   ΪչѪĴ㣬ǵ CVS:
  $ cvs -d :pserver:anonymous@cvs.xine.sourceforge.net:/cvsroot/xine login
  (enter an emptry password)
  $ cvs -d :pserver:anonymous@cvs.xine.sourceforge.net:/cvsroot/xine co xine

9.11 ʹ dvd ҳʽ/ dvd:// MRL ʽ?

   Ŀǰ Xine ɢ DVD ҳʽ֧Ԯ/ DVDs 
   DVDs һ йȡһر Xine `ҳʽ' Щ DVDs Ϊ
    CSS ȷķǲδ֮κ Xine ׼У Ҳ
   ͬ ʹЩ (ӦȷסĵطʹǷϷ) 
   ϣλܿơ
   
   Խ/ dvds ˵ȵ DVD ԼЩ档 Щ
    .../VIDEO_TS/VTS_xx_x.VOB  x ֡ Щ DVD Ӵ
   .VOB ӰƬڡ δ֧ԮӰƬ޷첥 - ֻܸ
   Щ
   
   Ҫ VOB ʹָ
  $ xine dvd://VTS_xx_x.VOB

   ȷûκ· ( VIDEO_TS/)
   
   Xine  /dev/dvd  dvd  FreeBSD ֻ㽨һᵽ
    dvd-devicenode ʱá
   
9.12 ѶϢʾ޷ dvd (/dev/dvd)  Xine ޷ DVD 

   û /dev/dvd (һ)  ֻҪһ /dev/dvd
   ָ DVD װüɡ ָ
  $ cd /dev
  $ ln -s hdc dvd

   ͿԽ
   
9.13 өĻ߿ȴ!

    "A" ( xine ֹͣʱ õһδѶϢ)
   
9.14 δ STDIN ?

   ʹָ
  $ cat stream.mpg | xine stdin://mpeg1

    Ҫ mpeg-2 ʹָ
  $ cat stream.vob | xine stdin://mpeg2

9.15 ҿԸı?

   Xine  `skins' ۡ Ŀ㽫ڿ͸ı
   棬㻹༭һ
   
   ִ xine һ - дԼ config  .xinerc ļĿ¼ 
   ִһ "skin:default" ĳҪõĽ档
   
9.16 ҿԸıɫ//Ա?

   ֻһЩ Xv ʽ֧Ԯ   /.xinerc ҵ:
  brightness:0
  saturation:0
  contrast:128

   ֵͿܡΧ Xv ʽʵһҳֵ
   
9.17 ҵ X 浱 Xine ӰƬʱЩط͸!

   ͼν GUI ĳЩɫ Xv ʹõ colourkey ͻˡ 
    ı colorkey ֵ⡣  ~/.xinerc ĳ
  colorkey:2110

   Ըı Xine ʹӰƬ overlay ɫ
   
9.18 ţֻѶϢ ``audio driver 'oss' failed, using null driver
instead.''ʾ

   ȣ ȷ OSS Чʽ (Ҳ˵岥
   )
   
   ԭҲͬʱõЧװá ʹ linux ָ
   ``fuser /dev/dsp'' Ըִ PID 롣
   
9.19 ִ xine ᣬ޷

   Ӧ Xine 0.3.3 汾Ѿ Ȼ ֻ "
   ȷ" ķʽ뿪 Xine  (磺 ʹÿͰ "q" ) Ҫ ֻ
   ӴرӰƬӴ - xine ͷŷ
   (!)
   
9.20  FreeBSD ʹ Xine 

   鵵 README.freebsd ɷõ𰸣˵ Xine ԭʼҵ
   
9.21 ƴ Xine ķ

   Ϊ [ksi:n]. ksi  `ks'  `knocks'  n  `een' 
   `been' 
   
9.22 ҵһ!

   Xine ڷչڡ Щ ʱ䣬ϵǲһر
    ն˻Ӳҵϵͳ꾡ϡ һ `
    x DVD' ĳرûж;ġ
   
    email ϵ:
  Xine Mailing List <xine-user@lists.sourceforge.net>

10.  Xine 

   Xine չС ȤԴ CVS õչ沢 TODO
   
   
   Ͳ
  Xine Mailing List <xine-user@lists.sourceforge.net>

   Ҫǵ Xine һԸԷչ߿ܻһʱŻӦ
   
11. Դ

11.1 DVD Ѷ

   Դλҵ DVD Ѷ
     * [21]http://www.linuxvideo.org/ - һ DVD-רԭʼƻ 
       ๩ Linux ӰƬӦóʽѶԴ
     * [22]http://www.videolan.org/ - վ ( english) ҪĿ 
       ·ɢ MPEG2 ӰƬ DVD
     * [23]http://www.opendvd.org/ - кܶ DVD Ѷĺվ
       
11.2 չԴ

     * [24]http://www.linuxtv.org/ - õλ TV/DVD ԭʼ
       Ѷ

References

   1. mailto:clavin@mail.rm.kmu.edu.tw
   2. http://xine.sourceforge.net/
   3. http://www.srcf.ucam.org/~rjw57/xine
   4. http://www.srcf.ucam.org/~rjw57/xine
   5. http://xine.sourceforge.net/
   6. http://www.xfree86.org/
   7. http://xine.sourceforge.net/
   8. file://localhost/tmp/zh-sgmltools.29992/Xine-Video-Player-HOWTO.txt.html#compiling
   9. http://members.nbci.com/captain_css/
  10. http://www.linuxvideo.org/
  11. http://www.kuroyi.net/xine/xine_dvd_libcss_plugin-clut.tar.gz
  12. http://bpinaud.free.fr/video
  13. http://divx.euro.ru/
  14. http://www.overclockers.com/tips105/index03.asp
  15. http://powertweak.sourceforge.net/
  16. http://oreilly.linux.com/pub/a/linux/2000/06/29/hdparm.html
  17. ftp://ftp.kernel.org/pub/linux/kernel/people/sct/raw-io/
  18. http://www.nvidia.com/
  19. http://www.linuxvideo.org/
  20. http://xine.cjb.net/
  21. http://www.linuxvideo.org/
  22. http://www.videolan.org/
  23. http://www.opendvd.org/
  24. http://www.linuxtv.org/
