diff options
-rw-r--r-- | doc/faq/Makefile.am | 10 | ||||
-rw-r--r-- | doc/faq/README | 2 | ||||
-rw-r--r-- | doc/faq/faq.html | 3680 | ||||
-rw-r--r-- | doc/faq/faq.sgml | 3015 | ||||
-rw-r--r-- | doc/faq/faq.txt | 873 |
5 files changed, 3782 insertions, 3798 deletions
diff --git a/doc/faq/Makefile.am b/doc/faq/Makefile.am index 3b4d2c15c..08ae350c2 100644 --- a/doc/faq/Makefile.am +++ b/doc/faq/Makefile.am @@ -1,9 +1,9 @@ include $(top_srcdir)/misc/Makefile.common EXTRA_DIST = $(docs_DOCS) README faq.sgml -docdir = $(prefix)/share/doc/xine/faq docs_DOCS = faq.html faq.txt +docdir = $(prefix)/share/doc/xine/faq install-data-local: @documentations='$(docs_DOCS)'; \ @@ -25,3 +25,11 @@ uninstall-local: rm -f $$dir/$$name; \ echo "removing $$dir/$$name" ; \ done + +docs: $(docs_DOCS) + +faq.html: faq.sgml + sgmltools -b onehtml faq.sgml + +faq.txt: faq.sgml + sgmltools -b txt faq.sgml diff --git a/doc/faq/README b/doc/faq/README index f44d8a6c3..f3fe650dd 100644 --- a/doc/faq/README +++ b/doc/faq/README @@ -10,5 +10,7 @@ sgmltools -b txt faq.sgml to transform it into html/txt (sgmltools-lite package in debian). +Alternatively, you can simply run "make docs" here. + guenter Sat Jan 4 22:59:33 CET 2003 diff --git a/doc/faq/faq.html b/doc/faq/faq.html index 6d5431def..91e33a987 100644 --- a/doc/faq/faq.html +++ b/doc/faq/faq.html @@ -1,4 +1,3 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML ><HEAD ><TITLE @@ -19,8 +18,8 @@ CLASS="TITLEPAGE" CLASS="TITLE" ><A NAME="AEN2" ->The xine engine FAQ</A -></H1 +></A +>The xine engine FAQ</H1 ><P CLASS="COPYRIGHT" >Copyright © 2001-2003 the xine project team</P @@ -33,7 +32,14 @@ CLASS="TOC" >Table of Contents</B ></DT ><DT ->1. <A +><A +HREF="#AEN8" +></A +></DT +><DD +><DL +><DT +><A HREF="#GENERAL" >General questions about xine and this document</A ></DT @@ -56,6 +62,11 @@ HREF="#WHERETOGETHELP" ></DT ><DT ><A +HREF="#PRONOUNCE" +>How do I pronounce "xine"?</A +></DT +><DT +><A HREF="#MODULES" >What are those xine-lib, xine-ui, gxine, ... modules in cvs for?</A ></DT @@ -72,7 +83,7 @@ HREF="#BINARIES" ></DL ></DD ><DT ->2. <A +><A HREF="#BUILDING" >Building and installing xine from source</A ></DT @@ -85,23 +96,9 @@ HREF="#BUILDREQUIREMENTS" ></DT ><DT ><A -HREF="#AEN61" +HREF="#AEN66" >How do I compile xine?</A ></DT -><DD -><DL -><DT -><A -HREF="#SIMPLEBUILDINSTR" ->Simple build instructions for beginners</A -></DT -><DT -><A -HREF="#COMPLETEBUILDINSTR" ->Complete build instructions</A -></DT -></DL -></DD ><DT ><A HREF="#RPMBUILD" @@ -115,50 +112,27 @@ HREF="#CFLAGS" ><DT ><A HREF="#ATHLONFLAGS" ->Are there binaries for my AMD K7 (Athlon (TM) ) available? Can I build them?</A +>Are there binaries for my AMD K7 (Athlon™) available? Can I build them?</A ></DT ><DT ><A -HREF="#AEN111" +HREF="#AEN151" >Build problems: xine engine (xine-lib)</A ></DT -><DD -><DL -><DT -><A -HREF="#DOESNTCOMPILE" ->The package doesn't compile at all!</A -></DT -><DT -><A -HREF="#XVPLUGINFAILSTOBUILD" ->The Xv video-out plugin fails to compile!</A -></DT -></DL -></DD -><DT -><A -HREF="#AEN126" ->Build problems: frontend (gxine/xine-ui/...)</A -></DT -><DD -><DL ><DT ><A -HREF="#XINELIBNOTFOUND" ->I have installed xine-lib but the frontend complains about not finding it!</A +HREF="#AEN169" +>Build problems in frontends (gxine/xine-ui/...)</A ></DT -></DL -></DD ><DT ><A HREF="#NONROOTBUILD" ->Can I install xine in my home directory (without being root) ?</A +>Can I install xine in my home directory (without being root)?</A ></DT ></DL ></DD ><DT ->3. <A +><A HREF="#PLAYBACK" >Playback of various stream types</A ></DT @@ -166,28 +140,9 @@ HREF="#PLAYBACK" ><DL ><DT ><A -HREF="#AEN148" +HREF="#AEN199" >DVD Playback with xine</A ></DT -><DD -><DL -><DT -><A -HREF="#DVDPLAYBACK" ->How do I play back DVDs with xine?</A -></DT -><DT -><A -HREF="#DVDLONGWAIT" ->DVD playback works, but it takes a long time until playback starts</A -></DT -><DT -><A -HREF="#REGIONSET" ->I have problems setting up my RPC-2 drive for the right region!</A -></DT -></DL -></DD ><DT ><A HREF="#VCDSUPPORT" @@ -200,32 +155,18 @@ HREF="#QUICKTIME" ></DT ><DT ><A -HREF="#AEN199" +HREF="#AEN253" >Real Network files/streams</A ></DT -><DD -><DL -><DT -><A -HREF="#REALFILEPLAYBACK" ->Can I watch Real (.rm, .ram) files using xine ?</A -></DT -><DT -><A -HREF="#REALNETWORKSTREAMS" ->What about (live) network streams (pnm://, rtsp:// style urls) ?</A -></DT -></DL -></DD ><DT ><A HREF="#WMV" ->Can I watch Windows Media (.asf/.wmv) files using xine?</A +>Can I watch Windows Media (.asf/.wmv/.wma) files using xine?</A ></DT ><DT ><A HREF="#DVB" ->Can I watch Digital TV (Digital Video Broadcast) using xine ?</A +>Can I watch Digital TV (Digital Video Broadcast) using xine?</A ></DT ><DT ><A @@ -240,7 +181,7 @@ HREF="#AVISUBTITLES" ></DL ></DD ><DT ->4. <A +><A HREF="#RUNNING" >Running xine</A ></DT @@ -254,7 +195,7 @@ HREF="#SPEEDUP" ><DT ><A HREF="#SMOOTHNESS" ->Oki, xine doesn't drop frames now but video output still is not really smooth</A +>Oki, xine doesn't drop frames now but video output still is not really smooth!</A ></DT ><DT ><A @@ -285,7 +226,7 @@ HREF="#DXR3" ></DL ></DD ><DT ->5. <A +><A HREF="#AUDIO" >Audio related questions</A ></DT @@ -299,7 +240,7 @@ HREF="#AUDIODRIVERS" ><DT ><A HREF="#COMPRESSOR" ->When I'm watching a movie, the sound effects are much higher volume than the voices</A +>When I'm watching a movie, the sound effects are much higher in volume than the voices!</A ></DT ><DT ><A @@ -321,36 +262,6 @@ HREF="#SPDIF" HREF="#SBLIVESPDIF" >Getting SPDIF output from a SBLive 5.1 using OSS drivers</A ></DT -><DD -><DL -><DT -><A -HREF="#AEN372" ->Requirements</A -></DT -><DT -><A -HREF="#AEN384" ->The OSS driver is maintained by creative and can be downloaded at - <A -HREF="http://opensource.creative.com/" -TARGET="_top" -> http://opensource.creative.com/ </A -></A -></DT -><DT -><A -HREF="#AEN406" ->Setting up xine for SPDIF (AC3_passthrough) output</A -></DT -><DT -><A -HREF="#AEN411" ->The cable used for the SBLive can easily be self-made - or buy a stereo 3.5mm jack to dual RCA cable.</A -></DT -></DL -></DD ><DT ><A HREF="#VOLUMECONTROL" @@ -369,7 +280,7 @@ HREF="#SOUNDLOSS" ></DL ></DD ><DT ->6. <A +><A HREF="#VIDEO" >Video related questions</A ></DT @@ -413,7 +324,7 @@ HREF="#VIDEODRIVER" ></DL ></DD ><DT ->7. <A +><A HREF="#ERRORS" >Error Messages: What they mean and what you can do</A ></DT @@ -436,6 +347,11 @@ HREF="#UNABLETOOPENDVDDRIVE" ></DT ><DT ><A +HREF="#STATUS0X51" +>My drive doesn't work and the kernel says "status=0x51 { DriveReady SeekComplete Error }"</A +></DT +><DT +><A HREF="#DEMUXERROR0000" >"demux error! 00 00 00 (should be 0x000001)"</A ></DT @@ -446,7 +362,7 @@ HREF="#OSSFAILED" ></DT ><DT ><A -HREF="#THROWINGAWARIMAGE" +HREF="#THROWINGAWAYIMAGE" >"video_out: throwing away image with pts xxx because it's too old"</A ></DT ><DT @@ -456,7 +372,7 @@ HREF="#NOVIDEOPLUGINAVAILABLE" ></DT ><DT ><A -HREF="#DEMUXERFAILEDTOSTART" +HREF="#DECODERFAILEDTOSTART" >"w32codec: decoder failed to start. Is 'xxxxxx' installed?"</A ></DT ><DT @@ -467,1862 +383,2132 @@ HREF="#XINECRASHED" ></DL ></DD ></DL +></DD +></DL ></DIV ><DIV -CLASS="CHAPTER" -><HR><H1 -><A -NAME="GENERAL" -></A ->Chapter 1. General questions about xine and this document</H1 +CLASS="ARTICLE" ><DIV CLASS="SECT1" ><H2 CLASS="SECT1" ><A +NAME="GENERAL" +></A +>General questions about xine and this document</H2 +><DIV +CLASS="SECT2" +><H3 +CLASS="SECT2" +><A NAME="ABOUT" ->What is the xine engine?</A -></H2 +></A +>What is the xine engine?</H3 ><P > - The xine engine is a free media player engine. It comes in the form of - a shared libarary and is typically used by media player frontends - and other multimedia applications for playback of multimedia streams - such as movies, radio/tv network streams, DVDs, VCDs. + The xine engine is a free media player engine. It comes in the form of + a shared libarary and is typically used by media player frontends + and other multimedia applications for playback of multimedia streams + such as movies, radio/tv network streams, DVDs, VCDs. + </P +><P +> Since there are several frontends for the xine library available, + this document has a problem when it comes to examples. + The two most common frontends xine-ui and gxine are mixed in command + line examples throughout this FAQ. When you use a different + frontend, some of these will not work for you. The filename of + the config file also varies amongst frontends. If you get confused, + I recommend you try with one of xine-ui or gxine. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="SCOPE" ->What's the aim and scope of this text?</A -></H2 +></A +>What's the aim and scope of this text?</H3 ><P -> The primary goal of this FAQ is to cover all recurring questions related - to the xine engine. Frontend specific questions are not covered here. +> The primary goal of this FAQ is to cover all recurring questions related + to the xine engine. Frontend specific questions are usually not covered here. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="WHERETOGETHELP" ->My question is not yet covered here - where can I ask for help?</A -></H2 +></A +>My question is not yet covered here - where can I ask for help?</H3 ><P -> First of all be sure that your question is really not covered here and - that you haven't just been a bit too lazy to read through all of this - text. ;-). Also check out the xine HOWTO and documentation specific to - the frontend (e.g. <B +> First of all be sure that your question is really not covered here and + that you haven't just been a bit too lazy to read through all of this + text. ;-). Also check out the documentation specific to + the frontend (e.g. <B CLASS="COMMAND" -> xine-ui </B +>xine-ui</B > or <B CLASS="COMMAND" -> gxine </B -> or - <B +>gxine</B +> or + <B CLASS="COMMAND" -> totem </B +>totem</B >). </P ><P -> That said - you are welcome to mail to our user mailing list: - - <CODE +> That said - you are welcome to mail to our user mailing list: + <TT CLASS="EMAIL" ><<A HREF="mailto:xine-user@lists.sourceforge.net" >xine-user@lists.sourceforge.net</A ->></CODE +>></TT > - - Please provide some info about your setup so people have a chance to - help you, e.g. include information about your audio/video hardware - and drivers you use, operating system, cpu type and some console - output/any error messages. Also include command line parameters you - have specified and information about the type of stream you're - trying to play back. Also very important is the version of xine - you're using and information about any additional plugins you - may have installed on your system. + Please provide some info about your setup so people have a chance to + help you, e.g. include information about your audio/video hardware + and drivers you use, operating system, cpu type and some console + output/any error messages. Also include command line parameters you + have specified and information about the type of stream you're + trying to play back. Also very important is the version of xine + you're using and information about any additional plugins you + may have installed on your system. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" +><A +NAME="PRONOUNCE" +></A +>How do I pronounce "xine"?</H3 +><P +> As long as people know what you are talking about, you are free to + pronounce it the way you like, but the official pronounciation is + [ksi:n], like the name "Maxine" with the "Ma" removed. + </P +></DIV +><DIV +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="MODULES" ->What are those xine-lib, xine-ui, gxine, ... modules in cvs for?</A -></H2 +></A +>What are those xine-lib, xine-ui, gxine, ... modules in cvs for?</H3 ><P -> Some time ago xine just became too complex to be just one big program. - Therefore it was split into two major parts. +> Some time ago xine just became too complex to be just one big program. + Therefore it was split into two major parts. </P ><P -> xine-lib is simply speaking the engine of xine. It contains all plugins - and is necessary to run anything that relies on xine (this is the part that - is covered in this FAQ). +> xine-lib is simply speaking the engine of xine. It contains all basic plugins + and is necessary to run anything that relies on xine. (This is the part that + is covered in this FAQ.) </P ><P -> Then there are frontends - applications that use xine. The most - common frontend is that of a media player. There are currently - two frontends being developed in the xine project, xine-ui (skinned - dvd-player style frontend directly based on xlib) and gxine, - a desktop media-player style frontend using the standard gtk widget set - and comes with a mozilla browser plugin. - External projects like sinek and totem develop additional frontends. - In the future you will likely see more and different types of apllications - being developed which will use the xine engine for video processing - and other multimedia purposes. +> Then there are frontends - applications that use xine. The most + common frontend is that of a media player. There are currently + two frontends being developed in the xine project, xine-ui (skinned + dvd-player style frontend directly based on xlib) and gxine, + a desktop media-player style frontend using the standard gtk widget set + and comes with a mozilla browser plugin. + External projects like kaffeine, sinek and totem develop additional frontends. + In the future you will likely see more and different types of applications + being developed which will use the xine engine for video processing + and other multimedia purposes. </P ><P -> If you simply want a media/dvd player, you'll need to install xine-lib - first and then choose and install a player frontend like xine-ui or gxine. +> If you simply want a media/dvd player, you'll need to install xine-lib + first and then choose and install a player frontend like xine-ui or gxine. </P ><P -> Other modules in CVS: <TT +> Other modules in CVS are: <TT CLASS="FILENAME" >xine-plugin</TT > a mozilla browser plugin - for streaming media playback using xine (at the time of this writing - unmaintained and somewhat obsoleted by gxine's browser plugin), - <TT + for streaming media playback using xine, + <TT CLASS="FILENAME" >xine-www</TT > the - xine project website sources. + xine project website sources. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="CVS" ->Where and how do I get the latest development version?</A -></H2 -><P -> Be advised that end-users should stick to the official xine releases. - CVS is only intended for developers. - </P +></A +>Where and how do I get the latest development version?</H3 ><P -> To check out xine-modules from CVS, first do this: +> Be advised that end-users should stick to the official xine releases. + CVS is only intended for developers and for others who know why they use it. </P ><P -> <B +> To check out xine-modules from CVS, first do this: + <TABLE +BORDER="0" +BGCOLOR="#E0E0E0" +WIDTH="100%" +><TR +><TD +><PRE +CLASS="SCREEN" +> <B CLASS="COMMAND" -> cvs -d :pserver:anonymous@cvs.xine.sourceforge.net:/cvsroot/xine login </B +>cvs -d :pserver:anonymous@cvs.xine.sourceforge.net:/cvsroot/xine login</B +></PRE +></TD +></TR +></TABLE > - [empty password] + The password is empty, just press Enter. </P ><P -> then, to check out individual modules (e.g. <TT +> Then, to check out individual modules (e.g. <TT CLASS="FILENAME" >xine-lib</TT >, - <TT + <TT CLASS="FILENAME" >gxine</TT ->, <TT +> or <TT CLASS="FILENAME" >xine-ui</TT >): - </P -><P -> <B + <TABLE +BORDER="0" +BGCOLOR="#E0E0E0" +WIDTH="100%" +><TR +><TD +><PRE +CLASS="SCREEN" +> <B CLASS="COMMAND" ->cvs -d :pserver:anonymous@cvs.xine.sourceforge.net:/cvsroot/xine co modulename</B +>cvs -d :pserver:anonymous@cvs.xine.sourceforge.net:/cvsroot/xine co <modulename></B +></PRE +></TD +></TR +></TABLE > </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="BINARIES" ->Where can I find pre-compiled binaries, e.g. RPMs?</A -></H2 -><P -> The xine project does not provide pre-compiled binaries for legal - reasons (some parts of xine may be covered by patents in some countries). - Some OS projects/vendors (e.g. debian, freebsd, ...) offer binaries - for their distributions - please contact them for further info. - You can also find links to third parties providing xine RPMs on - the xine homepage : - <A -HREF="http://xine.sf.net/index.php/about" +></A +>Where can I find pre-compiled binaries, e.g. RPMs?</H3 +><P +> The xine project does not provide pre-compiled binaries for legal + reasons (some parts of xine may be covered by patents in some countries). + Some OS projects/vendors (e.g. debian, freebsd, ...) offer binaries + for their distributions - please contact them for further info. + You can also find links to third parties providing xine RPMs on + the xine homepage at + <A +HREF="http://xinehq.de/index.php/releases" TARGET="_top" ->http://xine.sf.net/index.php/about</A -> +>http://xinehq.de/index.php/releases</A +>. </P ><P -> See the next chapter of this FAQ for instructions on how to build xine - from source. +> See the next section of this FAQ for instructions on how to build xine + from source. </P ></DIV ></DIV ><DIV -CLASS="CHAPTER" -><HR><H1 +CLASS="SECT1" +><HR><H2 +CLASS="SECT1" ><A NAME="BUILDING" ></A ->Chapter 2. Building and installing xine from source </H1 +>Building and installing xine from source</H2 ><DIV -CLASS="SECT1" -><H2 -CLASS="SECT1" +CLASS="SECT2" +><H3 +CLASS="SECT2" ><A NAME="BUILDREQUIREMENTS" ->What do I need to compile everything properly?</A -></H2 +></A +>What do I need to compile everything properly?</H3 ><P -> First of all an official and stable release of gcc. Also be aware - that patched gcc versions may break parts of xine and are therefore - not supported by the xine project. +> First of all an official and stable release of gcc. Also be aware + that patched gcc versions may break parts of xine and are therefore + not supported by the xine project. </P ><P -> Furthermore you'll have to use GNU make to compile xine. On most GNU/Linux - systems "make" is GNU make - on other platforms use "gmake" instead. - Also, zlib iss required (including the appropriate header files, which are - often found in a package called zlib-devel or similar.) +> Furthermore you'll have to use GNU make to compile xine. On most GNU/Linux + systems "make" is GNU make - on other platforms use "gmake" instead. + Also, zlib is required (including the appropriate header files, which are + often found in a package called zlib-devel or similar.) </P ><P -> If you want to compile xine from CVS, you'll need to have the autobuild tools - installed (automake, autoconf and libtool - in recent versions). +> If you want to compile xine from CVS, you'll need to have the autobuild tools + installed (automake, autoconf and libtool - in recent versions). </P ><P -> Frontends might need additional libraries, e.g. for gxine you'll need to have - GTK installed. Make sure you have not only the shared libraries themselves - but also the header files (often packaged seperately as so-called -dev packages) - on your system. +> Frontends might need additional libraries, e.g. for gxine you'll need to have + GTK installed. Make sure you have not only the shared libraries themselves + but also the header files (often packaged seperately as so-called -dev packages) + on your system. </P ><P -> Some plugins that come with the xine engine need additional libraries (otherwise - they will not be built). For example, libogg and libvorbis (plus their include files) - are needed for ogg/vorbis support. +> Some plugins that come with the xine engine need additional libraries (otherwise + they will not be built). For example, libogg and libvorbis (plus their include files) + are needed for ogg/vorbis support. Most notably, if you want to see any video + on your X11 desktop (and that's what you're here for, isn't it?), you need the + XFree developer packages as well. </P ><P -> Don't worry about this too much right now, xine's <B +> Don't worry about this too much right now, xine's <B CLASS="COMMAND" >configure</B > - (see below) will check for all the stuff needed and will tell you what's missing - (which means that you should check the output it produces carefully ;) ) + (see below) will check for all the stuff needed and will tell you what's missing + (which means that you should check the output it produces carefully ;) ). </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" -><A -NAME="AEN61" ->How do I compile xine?</A -></H2 -><DIV CLASS="SECT2" -><H3 +><HR><H3 CLASS="SECT2" ><A +NAME="AEN66" +></A +>How do I compile xine?</H3 +><DIV +CLASS="SECT3" +><H4 +CLASS="SECT3" +><A NAME="SIMPLEBUILDINSTR" ->Simple build instructions for beginners</A -></H3 +></A +>Simple build instructions for beginners</H4 ><P -> Download the latest xine-lib and gxine/xine-ui tarballs, then follow - these instruction. To unpack a tarball, use: - </P -><TABLE +> Download the latest xine-lib and gxine/xine-ui tarballs, then follow + these instruction. To unpack a tarball, use: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> tar xfvz tarballname.tar.gz - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>tar xfvz tarballname.tar.gz</B +></PRE ></TD ></TR ></TABLE +> + </P ><P -> The following instructions will install xine in <TT +> The following instructions will install xine in <TT CLASS="FILENAME" >/usr/local</TT -> for all - users. You need root privileges to do this on most systems. - </P +> + where it will be visible for all users. You need root privileges to do this on most systems. + </P ><P -> First unpack xine-lib, then: - </P -><TABLE +> After unpacking xine-lib, issue: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> ./configure - make install - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>./configure</B +> + <B +CLASS="COMMAND" +>make install</B +></PRE ></TD ></TR ></TABLE +> + </P ><P -> Make sure your <TT +> Make sure your <TT CLASS="FILENAME" >/etc/ld.so.conf</TT > contains - <TT + <TT CLASS="FILENAME" >/usr/local/lib</TT ->, then: - </P -><TABLE +> and continue with: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> ldconfig - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>ldconfig</B +></PRE ></TD ></TR ></TABLE +> + </P ><P -> Now unpack your frontend (gxine or xine-ui or ...), then: - </P -><TABLE +> Now unpack your frontend (gxine or xine-ui or ...), then: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> ./configure - make install - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>./configure</B +> + <B +CLASS="COMMAND" +>make install</B +></PRE ></TD ></TR ></TABLE +> + </P ></DIV ><DIV -CLASS="SECT2" -><HR><H3 -CLASS="SECT2" +CLASS="SECT3" +><HR><H4 +CLASS="SECT3" ><A NAME="COMPLETEBUILDINSTR" ->Complete build instructions</A -></H3 +></A +>Complete build instructions</H4 ><P -> The build process is the same for all of the xine modules. - </P +> The build process is the same for all of the xine modules. + </P ><P -> You have to start with xine-lib. If built and installed successfully, you - can continue with the frontend(s). - </P +> You have to start with xine-lib. If built and installed successfully, you + can continue with the frontend(s). + </P ><P -> If you have installed xine-lib to a non-standard prefix, make sure you - that you have <TT +> If you have installed xine-lib to a non-standard prefix, make sure + that you have <TT CLASS="FILENAME" >$prefix/bin</TT > in your PATH and that your linker finds - libs in <TT + libs in <TT CLASS="FILENAME" -> $prefix/lib </TT +>$prefix/lib</TT > - otherwise trying to build modules that - rely on xine-lib will fail with configure complaining about not - finding certain parts of libxine. Using bash you can do something like: - </P -><TABLE + rely on xine-lib will fail with configure complaining about not + finding certain parts of libxine. Using bash you can do something like: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> export PATH="$prefix/bin:$PATH" - export LD_LIBRARY_PATH="$prefix/lib:$LD_LIBRARY_PATH" - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>export PATH="$prefix/bin:$PATH"</B +> + <B +CLASS="COMMAND" +>export LD_LIBRARY_PATH="$prefix/lib:$LD_LIBRARY_PATH"</B +></PRE ></TD ></TR ></TABLE +> + to make sure libxine can be found by the frontend(s). + </P ><P -> to make sure libxine can be found by the frontend(s). - </P -><P -> Last but not least. Here the build instructions. As stated earlier, - those are the same for every xine module. - </P -><TABLE +> Last but not least. Here the build instructions. As stated earlier, + those are the same for every xine module. + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> ./autogen.sh [-> *only* if you checked your sources out of CVS] - ./configure - make - make install - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>./autogen.sh</B +> [-> *only* if you checked your sources out of CVS] + <B +CLASS="COMMAND" +>./configure</B +> + <B +CLASS="COMMAND" +>make</B +> + <B +CLASS="COMMAND" +>make install</B +></PRE ></TD ></TR ></TABLE +> + </P ></DIV ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="RPMBUILD" ->Making your own RPM packages (xine-lib, xine-ui)</A -></H2 -><P -> Basically you will only have to issue one command, if you have just - downloaded a source tarball from our web site: - </P +></A +>Making your own RPM packages (xine-lib, xine-ui)</H3 ><P -> <B +> Basically you will only have to issue one command, if you have just + downloaded a source tarball from our web site: + <TABLE +BORDER="0" +BGCOLOR="#E0E0E0" +WIDTH="100%" +><TR +><TD +><PRE +CLASS="SCREEN" +> <B CLASS="COMMAND" -> rpm -ta THE_NAME_OF_YOUR_SOURCE_TAR_BALL </B +>rpm -ta <THE_NAME_OF_YOUR_SOURCE_TAR_BALL></B +></PRE +></TD +></TR +></TABLE > </P ><P -> This will start the binary and source RPM building. After compiling is - finished, a binary rpm is placed in your rpm binary directory which is - usally <TT +> This will start the binary and source RPM building. After compiling is + finished, a binary rpm is placed in your rpm binary directory which is + something like <TT CLASS="FILENAME" ->/usr/src/RPM/RPMS/[YOUR_ARCHITECTURE]</TT -> and a source RPM is written - to your rpm source dir (e.g. <TT +>/usr/src/RPM/RPMS/<YOUR_ARCHITECTURE></TT +> + and a source RPM is written to your rpm source dir + (e.g. <TT CLASS="FILENAME" >/usr/src/RPM/SRPMS</TT >). </P ><P -> In case that you have a fresh CVS checkout, you will need to do the - following first in order to get a tarball release out of it which you - can later use with the <B +> In case that you have a fresh CVS checkout, you will need to do the + following first in order to get a tarball release out of it which you + can later use with the <B CLASS="COMMAND" -> rpm -ta </B +>rpm -ta</B > command above: - </P -><P -> <B + <TABLE +BORDER="0" +BGCOLOR="#E0E0E0" +WIDTH="100%" +><TR +><TD +><PRE +CLASS="SCREEN" +> <B CLASS="COMMAND" -> ./autogen.sh && make clean && make dist </B +>./autogen.sh && make clean && make dist</B +></PRE +></TD +></TR +></TABLE > </P ><P -> In any case, please keep in mind that you have to build and install - xine-lib first before you can proceed with xine-ui. +> In any case, please keep in mind that you have to build and install + xine-lib first before you can proceed with xine-ui. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="CFLAGS" ->Can I provide additional CFLAGS for compilation?</A -></H2 +></A +>Can I provide additional CFLAGS for compilation?</H3 ><P -> Yes, you can do so by setting the CFLAGS variable and then run - configure again. +> Yes, you can do so by setting the CFLAGS variable and then running + <B +CLASS="COMMAND" +>configure</B +> again. You can even pass them to + <B +CLASS="COMMAND" +>configure</B +> directly. Example: + <TABLE +BORDER="0" +BGCOLOR="#E0E0E0" +WIDTH="100%" +><TR +><TD +><PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>./configure CFLAGS="-march=i686"</B +></PRE +></TD +></TR +></TABLE +> </P ><P -> This can be useful to specify additional include paths or library paths - to the compiler. +> Other user variables <B +CLASS="COMMAND" +>configure</B +> respects are: + <P +></P +><UL +><LI +><P +> <B +CLASS="COMMAND" +>CC</B +> to specify the compiler executable + </P +></LI +><LI +><P +> <B +CLASS="COMMAND" +>CPP</B +> to specify the C preprocessor executable + </P +></LI +><LI +><P +> <B +CLASS="COMMAND" +>LD</B +> to specify the linker executable + </P +></LI +><LI +><P +> <B +CLASS="COMMAND" +>CPPFLAGS</B +> to pass additional include paths or other + preprocessor options + </P +></LI +><LI +><P +> <B +CLASS="COMMAND" +>LDFLAGS</B +> to pass additional library paths or other + linker options + </P +></LI +></UL +> </P ><P -> Example: <B +> An example combining some of these would look like: + <TABLE +BORDER="0" +BGCOLOR="#E0E0E0" +WIDTH="100%" +><TR +><TD +><PRE +CLASS="SCREEN" +> <B CLASS="COMMAND" -> export CFLAGS="-I/usr/include -L/home/guenter/xine_libs" </B +>./configure CC="/opt/intel/bin/icc" LD="/opt/intel/bin/xild" CPPFLAGS="-I/usr/local/include/dvdnav" LDFLAGS="-L/home/guenter/xine_libs"</B +></PRE +></TD +></TR +></TABLE > </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="ATHLONFLAGS" ->Are there binaries for my AMD K7 (Athlon (TM) ) available? Can I build them?</A -></H2 +></A +>Are there binaries for my AMD K7 (Athlon™) available? Can I build them?</H3 ><P -> If you have a recent gcc you can try to compile "more" k7 support in (esp. - better instruction scheduling). If the configure script should fail to - detect your processor/gcc correctly, try setting the xine_BUILD envvar - explicitly to a valid description string for your configuration, e.g. - </P -><TABLE +> If you have a recent gcc you can try to compile "more" k7 support in (esp. + better instruction scheduling). If the configure script should fail to + detect your processor/gcc correctly, try passing the canonical system name for + your machine to configure with the <B +CLASS="COMMAND" +>--host</B +> option, e.g. + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> export xine_BUILD=k7-pc-linux-gnu - rm -f config.cache - ./autogen.sh - make - make install - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>./configure --host=k7-pc-linux-gnu</B +></PRE ></TD ></TR ></TABLE +> + </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" -><A -NAME="AEN111" ->Build problems: xine engine (xine-lib)</A -></H2 -><DIV CLASS="SECT2" -><H3 +><HR><H3 CLASS="SECT2" ><A +NAME="AEN151" +></A +>Build problems: xine engine (xine-lib)</H3 +><DIV +CLASS="SECT3" +><H4 +CLASS="SECT3" +><A NAME="DOESNTCOMPILE" ->The package doesn't compile at all!</A -></H3 +></A +>The package doesn't compile at all!</H4 ><P -> In order to be able to compile xine-lib, you need (amongst other things) - the zlib compression library plus the appropriate headers, which are - often found in a package called zlib-devel or similar. - </P +> In order to be able to compile xine-lib, you need (amongst other things) + the zlib compression library plus the appropriate headers, which are + often found in a package called zlib-devel or similar. + </P ><P -> Read again carefully the output <B +> Read again carefully the output <B CLASS="COMMAND" >./configure</B > - produced and/or compiler warnings and error reports, they often contain - helpfull information to find out what's going on. If you're stuck here - and decide to post your problem on the xine-user mailing list, - make sure you include these outputs. - </P + produced and/or compiler warnings and error reports, they often contain + helpful information to find out what's going on. If you're stuck here + and decide to post your problem on the xine-user mailing list, + make sure you include these outputs. + </P ></DIV ><DIV -CLASS="SECT2" -><HR><H3 -CLASS="SECT2" +CLASS="SECT3" +><HR><H4 +CLASS="SECT3" ><A NAME="XVPLUGINFAILSTOBUILD" ->The Xv video-out plugin fails to compile!</A -></H3 +></A +>The Xv video-out plugin fails to compile!</H4 ><P -> If you want to have Xv support compiled in, make sure you either have - a shared Xv library on your system, e.g. - <B +> If you want to have Xv support compiled in, make sure you either have + a shared Xv library on your system, e.g. + <B CLASS="COMMAND" -> ls /usr/X11R6/lib/libXv* </B +>ls /usr/X11R6/lib/libXv*</B > - should give you some .so libs, like this: - <TABLE + should give you some .so libs, like this: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> /usr/X11R6/lib/libXv.a - /usr/X11R6/lib/libXv.so - /usr/X11R6/lib/libXv.so.1 - </PRE +CLASS="SCREEN" +> /usr/X11R6/lib/libXv.a + /usr/X11R6/lib/libXv.so + /usr/X11R6/lib/libXv.so.1</PRE ></TD ></TR ></TABLE > - </P + </P ><P -> Alternatively you need to have libtool 1.4 or newer installed, then - libXv.a is sufficient. Otherwise you can create the shared versions yourself: - <TABLE +> Alternatively you need to have libtool 1.4 or newer installed, then + libXv.a is sufficient. Otherwise you can create the shared versions yourself: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> ld --whole-archive -shared -o libXv.so.1 libXv.a - ln -s libXv.so.1 libXv.so - ldconfig - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>ld --whole-archive -shared -o libXv.so.1 libXv.a</B +> + <B +CLASS="COMMAND" +>ln -s libXv.so.1 libXv.so</B +> + <B +CLASS="COMMAND" +>ldconfig</B +></PRE ></TD ></TR ></TABLE > - </P + </P ><P -> Now you should be ready to build the Xv video-out plugin on your system. - </P +> Now you should be ready to build the Xv video-out plugin on your system. + </P ></DIV ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" -><A -NAME="AEN126" ->Build problems: frontend (gxine/xine-ui/...)</A -></H2 -><DIV CLASS="SECT2" -><H3 +><HR><H3 CLASS="SECT2" ><A +NAME="AEN169" +></A +>Build problems in frontends (gxine/xine-ui/...)</H3 +><DIV +CLASS="SECT3" +><H4 +CLASS="SECT3" +><A NAME="XINELIBNOTFOUND" ->I have installed xine-lib but the frontend complains about not finding it!</A -></H3 +></A +>I have installed xine-lib but the frontend complains about not finding it!</H4 ><P -> First of all take a closer look at the compilation instructions above again. - You will probably find your answer there right away. - </P +> First of all take a closer look at the compilation instructions above again. + You will probably find your answer there right away. + </P ><P -> As stated there (there again that hint *grin*), make sure that you - have <TT +> As stated there (there again that hint *grin*), make sure that you + have <TT CLASS="FILENAME" -> $prefix/bin </TT -> in your path and that your - linker is able to find - libraries installed in <TT +>$prefix/bin</TT +> in your path and that your + linker is able to find libraries installed in <TT CLASS="FILENAME" >$prefix/lib</TT -> (by the way, $prefix is where you - installed your xine-lib to earlier (yes, installing xine-lib with - <B +> + By the way, $prefix is where you installed your xine-lib to earlier + (yes, installing xine-lib with <B CLASS="COMMAND" -> make install </B -> would be a good idea before trying to compile - the frontend ;)). - </P +>make install</B +> would be a good + idea before trying to compile the frontend ;) ). + </P ></DIV ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="NONROOTBUILD" ->Can I install xine in my home directory (without being root) ?</A -></H2 +></A +>Can I install xine in my home directory (without being root)?</H3 ><P -> yes. first set up a subdir where you install your private software, eg - </P -><TABLE +> Sure. First set up a subdir where you install your private software, eg. + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> $ mkdir ~/usr - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>mkdir ~/xine</B +></PRE ></TD ></TR ></TABLE +> + </P ><P -> then you have to set a few environment variables - it's probably a good - idea to add this to your <TT +> Then you have to set a few environment variables - it's probably a good + idea to add this to your <TT CLASS="FILENAME" -> ~/.bashrc </TT +>~/.bashrc</TT > (or somewhere similar): - </P -><TABLE + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> export PATH="$HOME/usr/bin:$PATH" - export LD_LIBRARY_PATH="$HOME/usr/lib:$LD_LIBRARY_PATH" - export CFLAGS="-I$HOME/usr/include -L$HOME/usr/lib -O3" - export ACLOCAL_FLAGS="-I $HOME/usr/share/aclocal" - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>export PATH="$HOME/xine/bin:$PATH"</B +> + <B +CLASS="COMMAND" +>export LD_LIBRARY_PATH="$HOME/xine/lib:$LD_LIBRARY_PATH"</B +></PRE ></TD ></TR ></TABLE +> + </P ><P -> now you can unpack tarballs e.g. in <TT +> Now you can unpack tarballs e.g. in <TT CLASS="FILENAME" ->~/usr/src</TT +>~/xine/src</TT > - (<B + (<B CLASS="COMMAND" ->mkdir ~/usr/src</B +>mkdir ~/xine/src</B > if necessary) and do a + <TABLE +BORDER="0" +BGCOLOR="#E0E0E0" +WIDTH="100%" +><TR +><TD +><PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>./configure --prefix=$HOME/xine</B +> + <B +CLASS="COMMAND" +>make install</B +></PRE +></TD +></TR +></TABLE +> </P -><TABLE +><P +> You also need to tell frontends using xine-lib, where to find it: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> $ ./configure --prefix=$HOME/usr - $ make install - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>./configure --prefix=$HOME/xine --with-xine-prefix=$HOME/xine</B +></PRE ></TD ></TR ></TABLE +> + </P ></DIV ></DIV ><DIV -CLASS="CHAPTER" -><HR><H1 -><A -NAME="PLAYBACK" -></A ->Chapter 3. Playback of various stream types</H1 -><DIV CLASS="SECT1" -><H2 +><HR><H2 CLASS="SECT1" ><A -NAME="AEN148" ->DVD Playback with xine</A -></H2 +NAME="PLAYBACK" +></A +>Playback of various stream types</H2 ><DIV CLASS="SECT2" ><H3 CLASS="SECT2" ><A +NAME="AEN199" +></A +>DVD Playback with xine</H3 +><DIV +CLASS="SECT3" +><H4 +CLASS="SECT3" +><A NAME="DVDPLAYBACK" ->How do I play back DVDs with xine?</A -></H3 +></A +>How do I play back DVDs with xine?</H4 ><P -> Newer xine (1.0.x) releases come with a full-featured - DVD plugin that should be able to handle any unencrypted, - non-locked DVD with full menu navigation support. No external - plugins are required anymore here. - </P +> Newer xine (1.0.x) releases come with a full-featured + DVD plugin that should be able to handle any unencrypted, + non-locked DVD with full menu navigation support. No external + plugins are required anymore here. + </P ><P -> To get DVD playback working, first make sure you have - a symlink <TT +> To get DVD playback working, first make sure you have + a symlink <TT CLASS="FILENAME" >/dev/dvd</TT > pointing to your - DVD device on your system. For example, if your DVD drive - is the master ide drive on the second IDE channel, - <TT + DVD device on your system. For example, if your DVD drive + is the master ide drive on the second IDE channel, + <TT CLASS="FILENAME" >/dev/dvd</TT > should point to - <TT + <TT CLASS="FILENAME" >/dev/hdc</TT >. Please note that if you - are using the ide-scsi emulation on your system, it is - likely that you dvd drive got mapped to a scsi device - node even though it is an ide drive. In that case first - check out you boot/kernel logs (or run <B + are using the ide-scsi emulation on your system, it is + likely that your DVD drive got mapped to a scsi device + node even though it is an ide drive. In that case first + check out you boot/kernel logs (or run <B CLASS="COMMAND" -> cdrecord -scanbus </B +>cdrecord -scanbus</B >) - to find out which device it got mapped to and set the - symlink accordingly (should be something like <TT + to find out which device it got mapped to and set the + symlink accordingly (should be something like <TT CLASS="FILENAME" >/dev/scd0</TT >, - <TT + <TT CLASS="FILENAME" >/dev/scd1</TT >, ... in that case). - Also make sure you (as a user) have sufficient (read) permissions - on your dvd drive (this could mean you either have to change the device - permissions or add your user to a special group - (e.g. <B + Also make sure you (as a user) have sufficient (read and write) permissions + on your DVD drive. This could mean you either have to change the device + permissions or add your user to a special group + (e.g. <B CLASS="COMMAND" >addgroup cdrom username</B >), - depending on your setup and/or distribution. - </P + depending on your setup and/or distribution. + </P ><P -> It is highly recommended to switch DMA mode on for your DVD drive - (without it even very recent machines will have trouble producing - smooth video output). Use a command like - <B +> It is highly recommended to switch DMA mode on for your DVD drive + (without it even very recent machines will have trouble producing + smooth video output). Use a command like + <B CLASS="COMMAND" ->hdparm -d 1 device</B +>hdparm -d 1 <device></B > - on your dvd device. Please note that even if you're using ide-scsi - you will have to set the dma flag on the ide device node (e.g. - <TT + on your DVD device. Please note that even if you're using ide-scsi + you will have to set the dma flag on the ide device node (e.g. + <TT CLASS="FILENAME" >/dev/hdc</TT >), not the mapped <TT CLASS="FILENAME" >/dev/scd</TT > - scsi device. - </P + scsi device. + </P ><P -> To be able to play back encrypted dvds you need to have - libdvdcss installed on your system (please check if this is legal where - you live). - </P +> To be able to play back encrypted DVDs you need to have + libdvdcss installed on your system (please check if this is legal where + you live). If you do not understand what the term "encrypted DVD" means + here: As a rule of thumb, every DVD you have to pay money for is most + likely encrypted. + </P ><P -> - Newer (post-2000) dvd drives (so-called RPC-2 drives) check the dvd - region, which means they'll prevent you from playing back dvds that have - a different region code from what the drive is set up for (most drives - come with a factory setting of region 0 so they can only play back - region 0 dvds and there are not many of those available). The easiest - way to handle this is to use the regionset utility from - <A -HREF="http://www.linuxtv.org/download/dvd/dvd_disc_20000215.tar.gz" +> To make matters worse, apart from encryption, there is another obstacle + to take: the region code. The DVD authorities decided to divide the world + into eight geographical regions. Have a look at + <A +HREF="http://www.dvdforum.gr.jp/RegionMap.pdf" TARGET="_top" -> http://www.linuxtv.org/download/dvd/dvd_disc_20000215.tar.gz</A +>http://www.dvdforum.gr.jp/RegionMap.pdf</A +> + if you want to know which number has been assigned to your country. It is + now their idea, that you shall only play DVDs, which have been produced + for your region. If you take a DVD off the shelf in your local store, + you should find a little globe-like icon which shows the region code the + disc is for. + </P +><P +> Newer (post-2000) DVD drives (so-called RPC-2 drives) check the DVD + region, which means they'll prevent you from playing back DVDs that have + a different region code from what the drive is set up for. Some drives + come with a factory setting of region 0 so they can play back + any DVD until a region code is set. Others refuse to play any DVD at all + until they are told a region. The easiest way to handle this is to use + the regionset utility from + <A +HREF="http://sourceforge.net/project/showfiles.php?group_id=31346&release_id=168415" +TARGET="_top" +> http://sourceforge.net/project/showfiles.php?group_id=31346&release_id=168415 + </A >. - </P + </P ><P -> Once you have everything set up, try something like - <B +> Once you have everything set up, try something like + <B CLASS="COMMAND" -> gxine dvd:// </B +>gxine dvd:/</B > or <B CLASS="COMMAND" -> xine -p dvd:// </B +>xine -p dvd:/</B > - to start dvd playback. Some frontend also offer so-called autoplay - buttons or menu entries that start dvd playback immediately. - </P + to start dvd playback. Some frontend also offer so-called autoplay + buttons or menu entries that start dvd playback immediately. + </P ><P -> Important: do not try to mount the DVD. Just insert it and hit the DVD autoplay - button or start xine from the command line. - </P +> Important: do not try to mount the DVD. Just insert it and hit the DVD autoplay + button or start xine from the command line. + </P ><P -> If things do not work as expected, try running the <B +> If things do not work as expected, try running the <B CLASS="COMMAND" -> xine-check </B +>xine-check</B > - shellscript that comes with libxine to see if this gives you further hints on - what could be wrong. - </P + shellscript that comes with xine to see if this gives you further hints on + what could be wrong. + </P ></DIV ><DIV -CLASS="SECT2" -><HR><H3 -CLASS="SECT2" +CLASS="SECT3" +><HR><H4 +CLASS="SECT3" ><A NAME="DVDLONGWAIT" ->DVD playback works, but it takes a long time until playback starts</A -></H3 +></A +>DVD playback works, but it takes a long time until playback starts</H4 ><P -> This points to a region code problem. Some versions of libdvdcss can play - back DVDs from other regions than the RPC-2 DVD drive is set up for, - but this usually means a cryptographic attack (which takes time) has - to be used to access the DVD. - </P +> This points to a region code problem. Some versions of libdvdcss can play + back DVDs from other regions than the RPC-2 DVD drive is set up for, + but this usually means a cryptographic attack (which takes time) has + to be used to access the DVD. + </P ><P -> You can download a tool to set the region code of RPC-Drives here: - <A -HREF="http://linuxtv.org/download/dvd/dvd_disc_20000215_css.tar.gz" +> You can download a tool to set the region code of RPC-Drives here: + <A +HREF="http://sourceforge.net/project/showfiles.php?group_id=31346&release_id=168415" TARGET="_top" -> http://linuxtv.org/download/dvd/dvd_disc_20000215_css.tar.gz - </A -> - </P +> http://sourceforge.net/project/showfiles.php?group_id=31346&release_id=168415 + </A +>. + </P ><P -> Warning: Please be aware that the number of region code changes in RPC-2 - drives is limited (usually about 5 times), after that your drive will - stay locked to the region you last set it up for. - </P +> Warning: Please be aware that the number of region code changes in RPC-2 + drives is limited (usually about 5 times), after that your drive will + stay locked to the region you last set it up for. + </P ></DIV ><DIV -CLASS="SECT2" -><HR><H3 -CLASS="SECT2" +CLASS="SECT3" +><HR><H4 +CLASS="SECT3" ><A NAME="REGIONSET" ->I have problems setting up my RPC-2 drive for the right region!</A -></H3 +></A +>I have problems setting up my RPC-2 drive for the right region!</H4 ><P -> You can download a tool to set the region code of RPC-Drives here: - <A -HREF="http://linuxtv.org/download/dvd/dvd_disc_20000215_css.tar.gz" +> You can download a tool to set the region code of RPC-Drives here: + <A +HREF="http://sourceforge.net/project/showfiles.php?group_id=31346&release_id=168415" TARGET="_top" -> http://linuxtv.org/download/dvd/dvd_disc_20000215_css.tar.gz - </A -> - </P +> http://sourceforge.net/project/showfiles.php?group_id=31346&release_id=168415 + </A +>. + </P ><P -> Warning: Please be aware that the number of region code changes in RPC-2 - drives is limited (usually about 5 times), after that your drive will - stay locked to the region you last set it up for. - </P +> Warning: Please be aware that the number of region code changes in RPC-2 + drives is limited (usually about 5 times), after that your drive will + stay locked to the region you last set it up for. + </P ></DIV ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="VCDSUPPORT" ->Can I watch Video CDs (VCDs)? SVCDS ? CD-i?</A -></H2 +></A +>Can I watch Video CDs (VCDs)? SVCDS ? CD-i?</H3 ><P -> xine supports VCD and SVCD playback out-of-the box. Similar to DVDs, - make sure you have a <TT +> xine supports VCD and SVCD playback out-of-the box. Similar to DVDs, + make sure you have a <TT CLASS="FILENAME" >/dev/cdrom</TT > alias pointing - to your CDROM drive which you will use to play back the (S)VCD. + to your CDROM drive which you will use to play back the (S)VCD. </P ><P -> At the moment, CD-i formats are not supported by xine. +> At the moment, CD-i formats are not supported by xine. </P ><P -> Do not try to mount the (S)VCD. Simply insert it into your CDROM drive - and hit the VCD autoplay button or start something like - <TABLE -BORDER="0" -BGCOLOR="#E0E0E0" -WIDTH="100%" -><TR -><TD -><PRE -CLASS="PROGRAMLISTING" -> gxine VCD:// - </PRE -></TD -></TR -></TABLE +> Do not try to mount the (S)VCD. Simply insert it into your CDROM drive + and hit the VCD autoplay button or start something like + <B +CLASS="COMMAND" +>gxine vcd:/</B +> or <B +CLASS="COMMAND" +>xine vcd:/</B > - from the command line. + from the command line. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="QUICKTIME" ->Can I watch Quicktime (.mov, .mp4) files using xine?</A -></H2 +></A +>Can I watch Quicktime (.mov, .mp4) files using xine?</H3 ><P -> Quicktime is just a system layer (container format) which can contain various - different audio and video formats. The system layer itself is fully supported - in xine. However, only very few typically used quicktime audio/video codecs - are natively supported yet. Luckily, if you are using a x86 compatible machine - (any recent PC hardware should do) you can install and use the original - Quicktime DLLs and watch most streams (trailers) that can be downloaded from the net. +> Quicktime is just a system layer (container format) which can contain various + different audio and video formats. The system layer itself is fully supported + in xine. However, some quicktime audio/video codecs are not natively supported yet. + Luckily, if you are using a x86 compatible machine (any recent PC hardware should do) + you can install and use the original Quicktime DLLs and watch most streams + (trailers) that can be downloaded from the net. </P ><P -> Possibly the most convenient way to get the Quicktime DLLs is to download - them from the mplayer website - <A +> Possibly the most convenient way to get the Quicktime DLLs is to download + them from the mplayer website + <A HREF="http://www1.mplayerhq.hu/MPlayer/releases/codecs/" TARGET="_top" -> http://www1.mplayerhq.hu/MPlayer/releases/codecs/</A +> http://www1.mplayerhq.hu/MPlayer/releases/codecs/ + </A >. - The package is called "QuickTime5 DLLs". Unpack it and move everything you find - inside to <TT + The package is called "QuickTime6 DLLs". Unpack it and move everything you find + inside to <TT CLASS="FILENAME" >/usr/lib/win32</TT > (actually you can place them - anywhere you want, e.g. someplace in your homedirectory, but then you'll - have to set <VAR + anywhere you want, e.g. someplace in your homedirectory, but then you'll + have to set <TT CLASS="PARAMETER" ->codec.win32_path</VAR +><I +>codec.win32_path</I +></TT > in your - xine config file accordingly). Restart xine then and you should be - able to watch Quicktime trailers. + xine config file accordingly). Restart xine then and you should be + able to watch Quicktime trailers. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" -><A -NAME="AEN199" ->Real Network files/streams</A -></H2 -><DIV CLASS="SECT2" -><H3 +><HR><H3 CLASS="SECT2" ><A +NAME="AEN253" +></A +>Real Network files/streams</H3 +><DIV +CLASS="SECT3" +><H4 +CLASS="SECT3" +><A NAME="REALFILEPLAYBACK" ->Can I watch Real (.rm, .ram) files using xine ?</A -></H3 +></A +>Can I watch Real (.rm, .ram) files using xine?</H4 ><P -> The situation with real files and streams is pretty similar to the situation - with Quicktime Streams (see above). Most newer real audio and video formats - are only supported by using binary-only codecs which are available from - real networks but are not included in xine. - </P +> The situation with real files and streams is pretty similar to the situation + with Quicktime Streams (see above). The newer real audio and video formats + are only supported by using binary-only codecs which are available from + real networks but are not included in xine. + </P ><P -> One way to get these codecs is to download and install RealPlayer from - RealNetworks, for example in <TT +> One way to get these codecs is to download and install RealPlayer from + RealNetworks, for example in <TT CLASS="FILENAME" >/usr/local/RealPlayer8</TT > or - <TT + <TT CLASS="FILENAME" >/opt/RealPlayer8</TT >. If you installed it in one of these - places, xine should automatically find and use the real binary codecs. - If it doesn't work, try to find out the exact path to where the real codecs - are installed on your system (look for a file named <TT + places, xine should automatically find and use the real binary codecs. + If it doesn't work, try to find out the exact path to where the real codecs + are installed on your system (look for a file named <TT CLASS="FILENAME" >rv30.so.6.0</TT > - which should reside in a directory called <TT + which should reside in a directory called <TT CLASS="FILENAME" >Codecs</TT > in the - directory where you have installed RealPlayer in) and set - <VAR + directory where you have installed RealPlayer in) and set + <TT CLASS="PARAMETER" ->codec.real_codecs_path</VAR +><I +>codec.real_codecs_path</I +></TT > in your xine config file - accordingly. - </P + accordingly. + </P ></DIV ><DIV -CLASS="SECT2" -><HR><H3 -CLASS="SECT2" +CLASS="SECT3" +><HR><H4 +CLASS="SECT3" ><A NAME="REALNETWORKSTREAMS" ->What about (live) network streams (pnm://, rtsp:// style urls) ?</A -></H3 -><P -> xine supports both pnm and rtsp streaming. However, digging out the actual - pnm/rtsp url can be tricky as they're often packed into heavy JavaScript and - HTML code on most websites. You can either use a combination of your - browser's "save source" function and wget or use a xine browser plugin - (currently the gxine frontend comes with a simple mozilla plugin, - for example). When you decided to dig out the url by hand don't get fooled - by the many redirectors that are often placed around the actual url. - Use wget to download any http://-style urls and use less to look inside - the downloaded .ra/.ram files where you will find the actual pnm/rtsp - url which can be opened using xine. - </P +></A +>What about (live) network streams (pnm://, rtsp:// style urls)?</H4 +><P +> xine supports both pnm and rtsp streaming. However, digging out the actual + pnm/rtsp url can be tricky as they're often packed into heavy JavaScript and + HTML code on most websites. You can either use a combination of your + browser's "save source" function and wget or use a xine browser plugin + (currently the gxine frontend comes with a simple mozilla plugin, + for example). When you decided to dig out the url by hand don't get fooled + by the many redirectors that are often placed around the actual url. + Use wget to download any http://-style urls and use less to look inside + the downloaded .ra/.ram files where you will find the actual pnm/rtsp + url which can be opened using xine. + </P ></DIV ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="WMV" ->Can I watch Windows Media (.asf/.wmv) files using xine?</A -></H2 +></A +>Can I watch Windows Media (.asf/.wmv/.wma) files using xine?</H3 ><P -> While the container format (system layer) ASF (wmv is just an alias) - is fully supported in xine, for newer windows media 8 and 9 based streams - you'll need to install windows binary codecs (.DLLs). +> While the container format (system layer) ASF (wmv is just an alias) + is fully supported in xine, for newer windows media 9 based streams + you'll need to install windows binary codecs (.DLLs). </P ><P -> Possibly the most convenient way to get the windows DLLs is to download - them from the mplayer website - <A +> Possibly the most convenient way to get the windows DLLs is to download + them from the mplayer website + <A HREF="http://www1.mplayerhq.hu/MPlayer/releases/codecs/" TARGET="_top" -> http://www1.mplayerhq.hu/MPlayer/releases/codecs/</A +> http://www1.mplayerhq.hu/MPlayer/releases/codecs/ + </A >. - The package is called "Win32 Codecpack". Unpack it and move everything you find - inside to <TT + The package is called "Win32 Codecpack". Unpack it and move everything you find + inside to <TT CLASS="FILENAME" >/usr/lib/win32</TT > (actually you can place them - anywhere you want, e.g. someplace in your homedirectory, but then you'll - have to set <VAR + anywhere you want, e.g. someplace in your homedirectory, but then you'll + have to set <TT CLASS="PARAMETER" ->codec.win32_path</VAR +><I +>codec.win32_path</I +></TT > in your - xine config file accordingly). Restart xine then and you should be - able to watch windows media streams. + xine config file accordingly). Restart xine then and you should be + able to watch windows media streams. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="DVB" ->Can I watch Digital TV (Digital Video Broadcast) using xine ?</A -></H2 +></A +>Can I watch Digital TV (Digital Video Broadcast) using xine?</H3 ><P -> At the time of this writing DVB support is a very new and experimental - feature in xine. The number of supported cards is pretty limited at the moment. - See <TT +> At the time of this writing DVB support is a very new and experimental + feature in xine. The number of supported cards is pretty limited at the moment. + See <TT CLASS="FILENAME" >doc/README.dvb</TT > (in the xine-lib tarball) for details. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="STDIN" ->How do I play streams from STDIN?</A -></H2 +></A +>How do I play streams from STDIN?</H3 ><P -> Use something like: - <TABLE +> Use something like: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> cat stream.mpg | gxine stdin:/ - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>cat stream.mpg | gxine stdin:/</B +></PRE ></TD ></TR ></TABLE -> +> </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="AVISUBTITLES" ->How can I watch files with external AVI subtitles?</A -></H2 +></A +>How can I watch files with external AVI subtitles?</H3 ><P -> In xine 0.9.13 this used to be: - <TABLE +> In xine 0.9.13 this used to be: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> xine foo.avi%bar.sub - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>xine foo.avi%bar.sub</B +></PRE ></TD ></TR ></TABLE -> +> </P ><P -> Latest xine-lib modules (1-beta3 or newer) support external subtitles - for any media file, not only AVI. In order to use it you can pass an - special MRL construction like: - - <TABLE +> Latest xine-lib modules (1-beta3 or newer) support external subtitles + for any media file, not only AVI. In order to use it you can pass a + special MRL construction like: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> xine test.mpg#subtitle:file.sub - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>xine test.mpg#subtitle:file.sub</B +></PRE ></TD ></TR ></TABLE -> - - The external subtitles support can also be used by any xine - frontend. Currently, just xine-ui implements this feature with a - subtitle selection dialog (press control+shift+s to see it). +> + The external subtitles support can also be used by any xine + frontend. Currently, just xine-ui implements this feature with a + subtitle selection dialog. </P ></DIV ></DIV ><DIV -CLASS="CHAPTER" -><HR><H1 +CLASS="SECT1" +><HR><H2 +CLASS="SECT1" ><A NAME="RUNNING" ></A ->Chapter 4. Running xine </H1 +>Running xine</H2 ><DIV -CLASS="SECT1" -><H2 -CLASS="SECT1" +CLASS="SECT2" +><H3 +CLASS="SECT2" ><A NAME="SPEEDUP" ->I have a lot of dropped frames - what can I do?</A -></H2 +></A +>I have a lot of dropped frames - what can I do?</H3 ><P -> Your hardware might be too slow for xine. Make sure you turn on all - speed optimizing options. A few things you should check (in order of - importance): - - <P +> Your hardware might be too slow for xine. Make sure you turn on all + speed optimizing options. A few things you should check (in order of + importance): + <P ></P ><UL ><LI ><P -> First of all, run the <B +> First of all, run the <B CLASS="COMMAND" >xine-check</B -> script included in xine-lib - package (probably already installed in your system). - <B +> script included in xine + package (probably already installed in your system). + <B CLASS="COMMAND" >xine-check</B > will report several of the most common problems - listed here. Sample output from xine-check: - <TABLE + listed here. Sample output from xine-check: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="90%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> $ xine-check - Please be patient, this script may take a while to run... - [ good ] you're using Linux, doing specific tests - [ good ] looks like you have a /proc filesystem mounted. - [ good ] You seem to have a reasonable kernel version (2.4.18) - [ good ] intel compatible processor, checking MTRR support - [ good ] you have MTRR support and there are some ranges set. - [ good ] found the player at /usr/local/bin/xine - [ good ] /usr/local/bin/xine is in your PATH - [ good ] found /usr/local/bin/xine-config in your PATH - [ good ] plugin directory /usr/local/lib/xine/plugins exists. - [ good ] found input plugins - [ good ] found demux plugins - [ good ] found decoder plugins - [ good ] found video_out plugins - [ good ] found audio_out plugins - [ good ] skin directory /usr/local/share/xine/skins exists. - [ good ] found logo in /usr/local/share/xine/skins - [ good ] I even found some skins. - [ good ] /dev/cdrom points to /dev/hdc - [ good ] /dev/dvd points to /dev/hdc - [ good ] DMA is enabled for your DVD drive - [ good ] found xvinfo: X-Video Extension version 2.2 - [ good ] your Xv extension supports YUV overlays (improves MPEG performance) - [ good ] your Xv extension supports packed YUV overlays - [ good ] Xv ports: YUY2 YV12 I420 UYVY - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>xine-check</B +> + Please be patient, this script may take a while to run... + [ good ] you're using Linux, doing specific tests + [ good ] looks like you have a /proc filesystem mounted. + [ good ] You seem to have a reasonable kernel version (2.4.18) + [ good ] intel compatible processor, checking MTRR support + [ good ] you have MTRR support and there are some ranges set. + [ good ] found the player at /usr/local/bin/xine + [ good ] /usr/local/bin/xine is in your PATH + [ good ] found /usr/local/bin/xine-config in your PATH + [ good ] plugin directory /usr/local/lib/xine/plugins exists. + [ good ] found input plugins + [ good ] found demux plugins + [ good ] found decoder plugins + [ good ] found video_out plugins + [ good ] found audio_out plugins + [ good ] skin directory /usr/local/share/xine/skins exists. + [ good ] found logo in /usr/local/share/xine/skins + [ good ] I even found some skins. + [ good ] /dev/cdrom points to /dev/hdc + [ good ] /dev/dvd points to /dev/hdc + [ good ] DMA is enabled for your DVD drive + [ good ] found xvinfo: X-Video Extension version 2.2 + [ good ] your Xv extension supports YUV overlays (improves MPEG performance) + [ good ] your Xv extension supports packed YUV overlays + [ good ] Xv ports: YUY2 YV12 I420 UYVY</PRE ></TD ></TR ></TABLE > - </P + </P ></LI ><LI ><P -> Try to use the Xv driver, it greatly improves performance and quality - because hardware does image scaling and color conversion. The - <A +> Try to use the Xv driver, it greatly improves performance and quality + because your graphics card does image scaling and colorspace conversion. The + <A HREF="#VIDEO" >video section</A > contains important information - about several Xv drivers. - </P + about several Xv drivers. + </P ><P -> If Xv cannot be used for some reason, make sure your display is set up - to 16bpp, not 24 or higher (reduces memory bandwith). Some Xv drivers - may also have better performance with 16bpp. - </P +> If Xv cannot be used for some reason, make sure your display is set up + to 16bpp, not 24 or higher (reduces memory bandwith). Some Xv drivers + may also have better performance with 16bpp. + </P ></LI ><LI ><P -> Make sure the hard drive (or cdrom/dvd drive) which supplies the - video data is in DMA mode (if supported) - </P +> Make sure the hard drive (or cdrom/dvd drive) which supplies the + video data is in DMA mode (if supported). + </P ><P -> On most linux-based systems, you can use hdparm to check this. - Example: - <TABLE +> On most linux-based systems, you can use hdparm to check this: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="90%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> hdparm /dev/hda - - ... - using_dma = 1 (on) - ... - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>hdparm /dev/hda</B +> + [...] + using_dma = 1 (on) + [...]</PRE ></TD ></TR ></TABLE > - </P + </P ><P -> You can enable DMA mode with the following command: - <TABLE +> You can enable DMA mode with the following command: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="90%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> hdparm -d1 device_of_your_drive_that_supplies_video_data - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>hdparm -d1 device_of_your_drive_that_supplies_video_data</B +></PRE ></TD ></TR ></TABLE > - In some cases where this fails it helps to specify the dma mode - to use, for example: - <TABLE + In some cases where this fails it helps to specify the dma mode + to use, for example: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="90%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> hdparm -d1 -X 66 device_of_your_drive_that_supplies_video_data - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>hdparm -d1 -X 66 device_of_your_drive_that_supplies_video_data</B +></PRE ></TD ></TR ></TABLE > - In RedHat 8.0 an additional entry in /etc/modules.conf - <TABLE + In RedHat 8.0 an additional entry in /etc/modules.conf + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="90%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> options ide-cd dma=1 - </PRE +CLASS="SCREEN" +> options ide-cd dma=1</PRE ></TD ></TR ></TABLE -> - should help (reboot for this change to take effect). - </P +> + should help (reboot for this change to take effect). + </P ><P -> More information about this may be found here: - <A +> More information about this may be found here: + <A HREF="http://oreilly.linux.com/pub/a/linux/2000/06/29/hdparm.html" TARGET="_top" -> http://oreilly.linux.com/pub/a/linux/2000/06/29/hdparm.html - </A -> - </P +> http://oreilly.linux.com/pub/a/linux/2000/06/29/hdparm.html + </A +>. + </P ></LI ><LI ><P -> Use a recent kernel which is optimized for your hardware. Old kernels - may lack support for accelerated instructions like SSE, for example. - </P +> Use a recent kernel which is optimized for your hardware. Old kernels + may lack support for accelerated instructions like SSE, for example. + </P ></LI ><LI ><P -> Close other applications (use a tool like "top" to find out - what applications are using up CPU power). Programs that update the - system clock like ntp should also be disabled. - </P +> Close other applications (use a tool like "top" to find out + what applications are using up CPU power). Programs that update the + system clock like ntp should also be disabled. + </P ></LI ><LI ><P -> Enable MTRR support in your kernel. If you are still using XFree 3.x, - you'll have to tell the kernel yourself where the graphics memory is. - You'll find details about that in the linux dvd howto. - </P +> Enable MTRR support in your kernel. If you are still using XFree 3.x, + you'll have to tell the kernel yourself where the graphics memory is. + You'll find details about that in the linux dvd howto. + </P ><P -> If you're using XFree 4.x, enabling MTRR support in your kernel should - be enough (use a recent kernel!). - </P +> If you're using XFree 4.x, enabling MTRR support in your kernel should + be enough (use a recent kernel!). + </P ><P -> Try a <B +> Try a <B CLASS="COMMAND" -> cat /proc/mtrr </B +>cat /proc/mtrr</B > - if the file exists and you find an entry - corresponding to the amount of graphics memory you have, everything - should be fine. - </P + corresponding to the amount of graphics memory you have, everything + should be fine. + </P ></LI ><LI ><P -> Have your X-server (usually XFree86) running with higher priority. - Most recent linux distributions (like RedHat 8.0 or Mandrake 9.0) should - do that for you, improving not only xine but desktop responsiveness - in general. - </P -><P -> Use the "top" utility and verify under the "NI" column if - the X process has a negative value, this indicates a higher priority. - See "The X Window User HOWTO - Performance considerations" for - further instructions - <A +> Have your X-server (usually XFree86) running with higher priority. + Most recent linux distributions (like RedHat 8.0 or Mandrake 9.0) should + do that for you, improving not only xine but desktop responsiveness + in general. + </P +><P +> Use the "top" utility and verify under the "NI" column if + the X process has a negative value, this indicates a higher priority. + See "The X Window User HOWTO - Performance considerations" for + further instructions + <A HREF="http://www.tldp.org/HOWTO/XWindow-User-HOWTO/performance.html" TARGET="_top" -> http://www.tldp.org/HOWTO/XWindow-User-HOWTO/performance.html</A -> - </P +> http://www.tldp.org/HOWTO/XWindow-User-HOWTO/performance.html + </A +>. + </P ></LI ><LI ><P -> Use the latest or a known-good gcc version. - </P +> Use the latest or a known-good gcc version and build an optimized xine-lib for + your architecture. + </P ></LI ><LI ><P -> Besides boosting X-server priority, sometimes it's possible to avoid - discarding frames by making xine itself higher priority. This is not - a recommended pratice since it will require to run xine as root, - but you may give it a try if you want: - <TABLE +> Besides boosting X-server priority, sometimes it's possible to avoid + discarding frames by making xine itself higher priority. This is not + a recommended pratice since it will require to run xine as root, + but you may give it a try if you want: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="90%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> nice --5 xine - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>nice --5 xine</B +></PRE ></TD ></TR ></TABLE -> - </P +> + </P ></LI ><LI ><P -> xine needs high speed memory access which depends on your chip set. - Make sure you enable all speed-improving options. - </P -><P -> Especially the via apollo pro chipset is known to be quite weird, - (most of all on my gigabyte board). If you can't configure the ram - access thoroughly using the bios you might want to try some really - nasty tricks, as explained on (for example): - </P +> xine needs high speed memory access which depends on your chip set. + Make sure you enable all speed-improving options. + </P ><P -> <A +> Especially the via apollo pro chipset is known to be quite weird, + (most of all on my gigabyte board). If you can't configure the ram + access thoroughly using the bios you might want to try some really + nasty tricks, as explained on (for example): + <A HREF="http://www.overclockers.com/tips105/index03.asp" TARGET="_top" ->http://www.overclockers.com/tips105/index03.asp</A +> http://www.overclockers.com/tips105/index03.asp + </A > - </P + </P ><P -> This website centers around a windows-tool to tweak the chipset, you - can do the same on FreeBSD with <B +> This website centers around a windows-tool to tweak the chipset, you + can do the same on FreeBSD with <B CLASS="COMMAND" >pciconf</B >. - On some linux distributions there are similar tools. - </P + On some linux distributions there are similar tools. + </P ></LI ><LI ><P -> a nice performance tuning tool can be found here: - <A +> a nice performance tuning tool can be found here: + <A HREF="http://powertweak.sourceforge.net" TARGET="_top" >http://powertweak.sourceforge.net</A > - </P + </P ></LI ><LI ><P -> Set up and use raw devices for dvd access. Please note that - this is usually not worth the effort as the performance gain - from it is very small if any. - </P +> Set up and use raw devices for DVD access. Please note that the + actual performance gain during playback is very small if any, but + since raw devices are bypassing the kernel's buffer cache, Linux + will not try to cache the DVDs you play. This would not be useful, + because xine does its own caching and you usually play DVDs + sequentially, which means you won't reuse anything from the cache. + But the problem would be that Linux throws everything out of the + cache that might be in there. + </P ><P -> Raw devices should be available in linux kernel 2.4.x and there are - patches for older kernels available from: - <A +> Raw devices should be available in linux kernel 2.4.x and there are + patches for older kernels available from: + <A HREF="ftp://ftp.kernel.org/pub/linux/kernel/people/sct/raw-io/" TARGET="_top" -> ftp://ftp.kernel.org/pub/linux/kernel/people/sct/raw-io/ - </A +> ftp://ftp.kernel.org/pub/linux/kernel/people/sct/raw-io/ + </A > - </P + </P ><P -> To use raw devices, first connect a free raw device to your dvd - device, use something like: - <TABLE +> To use raw devices, first connect a free raw device to your dvd + device, use something like: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="90%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> raw /dev/raw1 /dev/hdc - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>raw /dev/raw1 /dev/dvd</B +></PRE ></TD ></TR ></TABLE > - </P + </P ><P -> then create a link named "rdvd" pointing to that raw device: - <TABLE +> Then create a link named "rdvd" pointing to that raw device: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="90%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> raw /dev/raw1 /dev/hdc - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>ln -s raw1 /dev/rdvd</B +></PRE ></TD ></TR ></TABLE > - </P + </P ></LI ><LI ><P -> For slow / high-latency dvd drives it might help to increase - the number of video buffers xine allocates. - Try setting - <TABLE -BORDER="0" -BGCOLOR="#E0E0E0" -WIDTH="90%" -><TR -><TD -><PRE -CLASS="PROGRAMLISTING" -> video.num_buffers:500 - </PRE -></TD -></TR -></TABLE +> For slow / high-latency dvd drives it might help to increase + the number of video buffers xine allocates. Try setting + <TT +CLASS="PARAMETER" +><I +>video.num_buffers:500</I +></TT > - to a higher value (e.g. 1000 or 2500) - </P + to a higher value (e.g. 1000 or 2500). + </P ></LI ></UL > </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="SMOOTHNESS" ->Oki, xine doesn't drop frames now but video output still is not really smooth</A -></H2 +></A +>Oki, xine doesn't drop frames now but video output still is not really smooth!</H3 ><P -> video output can be further improved by tuning your linux kernel: - <P +> Video output can be further improved by tuning your linux kernel: + <P ></P ><UL ><LI ><P -> set HZ to 1000 in - <TT +> Set HZ to 1000 in + <TT CLASS="FILENAME" -> /usr/src/linux/include/asm-i386/param.h </TT +>/usr/src/linux/include/asm-i386/param.h</TT > - </P + </P ></LI ><LI ><P -> try applying scheduler patches, especially the O(1) and the preemptive - patches have proven useful at the time of this writing (spring 2003). - </P +> Try applying scheduler patches, especially the O(1) and the preemptive + patches have proven useful at the time of this writing (spring 2003). + </P ></LI ></UL > - linux 2.5/2.6 will probably have these improvements out of the box. + Linux 2.5/2.6 will probably have these improvements out of the box. </P ><P -> Miguel Freitas has written a nice article about his kernel multimedia experiments - <A +> Miguel Freitas has written a nice + <A HREF="http://cambuca.ldhs.cetuc.puc-rio.br/~miguel/multimedia_sim/" TARGET="_top" ->here</A +> article about his kernel multimedia experiments + </A >. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="PORTS" ->I have problems when using xine on FreeBSD, Solaris, ... !</A -></H2 +></A +>I have problems when using xine on FreeBSD, Solaris, ... !</H3 ><P -> Check out the the corresponding README files in the directory <TT +> Check out the the corresponding README files in the directory <TT CLASS="FILENAME" >xine-lib/doc</TT -> +>. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="AAXINE" ->What is aalib? How do I use it in xine?</A -></H2 +></A +>What is aalib? How do I use it in xine?</H3 ><P -> aalib is an ascii art library. xine comes with an aalib video output - plugin so you can watch movies in your xterm, on the console or on your - old vt100 - very cool ;> ... another nice option is to preview movies - on a remote server in your shell over ssh. +> aalib is an ascii art library. xine comes with an aalib video output + plugin so you can watch movies in your xterm, on the console or on your + old vt100 - very cool ;> ... another nice option is to preview movies + on a remote server in your shell over ssh. </P ><P -> To use it make sure you have aalib installed correctly before you - configure/build xine-lib and xine-ui. In addition to the <B +> To use it make sure you have aalib installed correctly before you + configure/build xine-lib and xine-ui. In addition to the <B CLASS="COMMAND" >xine</B > binary a - binary named <B + binary named <B CLASS="COMMAND" >aaxine</B > should get built and installed. You can then use - something like: - <TABLE + something like: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> aaxine foo.mpg - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>aaxine foo.mpg</B +></PRE ></TD ></TR ></TABLE > - to use aalib video output. + to use aalib video output. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="CONFIGOPTIONS" +></A >What do all these <TT CLASS="FILENAME" >~/.xine/config</TT > (<TT CLASS="FILENAME" >~/.gxine/config</TT ->) entries mean?</A -></H2 +>) entries mean?</H3 ><P -> You can find information about them in - <TT +> You can find information about them in + <TT CLASS="FILENAME" >xine-lib/doc/README.config_en</TT >. - Frontends may register additional config entries, you may find out more about - them in their documentation. Also the comments in the config file might - help. + Frontends may register additional config entries, you may find out more about + them in their documentation. Also the comments in the config file might + help. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="DXR3" ->Does xine support my dxr3 / hollywood+ card?</A -></H2 +></A +>Does xine support my dxr3 / hollywood+ card?</H3 ><P -> while xine's focus is clearly on software decoding, - the dxr3 is supported. +> While xine's focus is clearly on software decoding, the dxr3 is supported. </P ><P -> you can find more information about using xine with the dxr3 - <A +> You can find more information about using xine with the dxr3 + <A HREF="http://www.amalthea.de/xine/" TARGET="_top" >here</A > - (also covers how to do tv output using the dxr3). + (also covers how to do tv output using the dxr3). </P ></DIV ></DIV ><DIV -CLASS="CHAPTER" -><HR><H1 +CLASS="SECT1" +><HR><H2 +CLASS="SECT1" ><A NAME="AUDIO" ></A ->Chapter 5. Audio related questions </H1 +>Audio related questions</H2 ><DIV -CLASS="SECT1" -><H2 -CLASS="SECT1" +CLASS="SECT2" +><H3 +CLASS="SECT2" ><A NAME="AUDIODRIVERS" ->What audio drivers does xine support? OSS? Alsa? Arts? Esd?</A -></H2 +></A +>What audio drivers does xine support? OSS? Alsa? Arts? Esd?</H3 ><P -> Currently xine support audio output via OSS (kernel audio drivers), - ALSA 0.9.x (ALSA 0.5.x is no longer supported), arts (KDE's sound daemon) - and esound (esd, gnome's sound daemon - not recommended because it has - serious issues with a/v sync). +> Currently xine support audio output via OSS (kernel audio drivers), + ALSA 0.9.x (ALSA 0.5.x is no longer supported), arts (KDE's sound daemon) + and esound (esd, gnome's sound daemon - not recommended because it has + serious issues with a/v sync). </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="COMPRESSOR" ->When I'm watching a movie, the sound effects are much higher volume than the voices</A -></H2 +></A +>When I'm watching a movie, the sound effects are much higher in volume than the voices!</H3 ><P -> Congratulations, you seem to have an original movie audio track there. +> Congratulations, you seem to have an original movie audio track there. </P ><P -> Uhm. So you don't like it. Well, there are two things you can do: - - <P +> Uhm. So you don't like it. Well, there are two things you can do: + <P ></P ><UL ><LI ><P -> You can enable xine's audio compressor. Most frontends have - a settings window and in that you'll find a slider for the - compressor setting. The values are percent values, so a - slider setting of 200 means that xine will double the volume - of silent parts of the movie (loud parts stay the same). - </P -></LI -><LI +> You can enable xine's audio compressor. Most frontends have + a settings window and in that you'll find a slider for the + compressor setting. The values are percent values, so a + slider setting of 200 means that xine will double the volume + of silent parts of the movie (loud parts stay the same). + </P ><P -> If you have a dolby digital (AC3) soundtrack, you can try - to enable liba52's dynamic range compression setting - <TABLE +> If your frontend does not have such a compression slider, + you can pass the value with the MRL: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="90%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> codec.a52_dynrng:1 - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>xine dvd:/#compression:150</B +></PRE ></TD ></TR ></TABLE > - in your xine config file (or use some gui config dialog). - </P + </P +></LI +><LI +><P +> If you have a dolby digital (AC3) soundtrack, you can try + to enable liba52's dynamic range compression setting + <TT +CLASS="PARAMETER" +><I +>codec.a52_dynrng:1</I +></TT +> + in your xine config file (or use some gui config dialog). + </P ></LI ></UL > - </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="NOAUDIO" ->When I play this stream, xine shows video but there's no audio!</A -></H2 +></A +>When I play this stream, xine shows video but there's no audio!</H3 ><P -> Well, first try a different audio driver (<B -CLASS="COMMAND" -> gxine -A oss </B ->, - <B +> If this happens with any video, first try a different audio driver + (<B CLASS="COMMAND" -> gxine -A arts </B +>gxine -A oss</B >, <B CLASS="COMMAND" -> xine -A alsa </B +>gxine -A arts</B +>, + <B +CLASS="COMMAND" +>xine -A alsa</B > ...). </P ><P -> If this problem only occurs with one specific stream, maybe switching to - a different audio channel (using the gui) helps. Some DVD streams have - audio on strange channels. +> If this problem only occurs with one specific stream, maybe switching to + a different audio channel (using the gui) helps. Some DVD streams have + audio on strange channels. </P ><P -> If all this doesn't help, maybe you're missing an audio codec or you found - a bug. If you decide to post your problem on the xine-user mailing list, - make sure to include all console output xine produced and also clearly - state what type of stream you tried to play back or, even better, make - a test stream available somewhere for developers to download and try. +> If all this doesn't help, maybe you're missing an audio codec or you found + a bug. If you decide to post your problem on the xine-user mailing list, + make sure to include all console output xine produced and also clearly + state what type of stream you tried to play back or, even better, make + a test stream available somewhere for developers to download and try. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="SURROUNDSOUND" ->Can xine produce 4-/5-channel surround audio output?</A -></H2 +></A +>Can xine produce 4-/5-channel surround audio output?</H3 ><P -> Yep, it can do that using OSS or ALSA drivers, provided that the driver - supports it. On startup xine tells you what modes are supported by your - audio driver, e.g: - <TABLE +> Yep, it can do that using OSS or ALSA drivers, provided that the driver + supports it. On startup xine tells you what modes are supported by your + audio driver, e.g: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> audio_alsa_out : supported modes are mono stereo (4-channel not enabled - in xine config) (5-channel not enabled in xine config) (5.1-channel not - enabled in xine config) (a/52 and DTS pass-through not enabled in xine - config) - </PRE +CLASS="SCREEN" +> audio_alsa_out : supported modes are mono stereo (4-channel not enabled in xine config) (5-channel not enabled in xine config) (5.1-channel not enabled in xine config) (a/52 and DTS pass-through not enabled in xine config)</PRE ></TD ></TR ></TABLE > </P ><P -> On this machine 4-channel surround would be possible. However, since xine - cannot detect if there are actually speakers connected to the additional - channels, you'll have to activate that feature manually. +> On this machine 4-channel surround would be possible. However, since xine + cannot detect if there are actually speakers connected to the additional + channels, you'll have to activate that feature manually. </P ><P -> You can do this either in the config dialog while xine is running (press - the config button on the xine panel and go to the AUDIO tab) or have it - the complicated way by editing the config file yourself which is located - in your home directory in <TT +> You can do this either in the config dialog while xine is running (press + the config button on the xine panel and go to the AUDIO tab) or have it + the complicated way by editing the config file yourself which is located + in your home directory in <TT CLASS="FILENAME" >.gxine</TT ->/<TT +> or <TT CLASS="FILENAME" >.xine</TT >: - <TABLE + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" @@ -2330,15 +2516,9 @@ WIDTH="100%" ><TD ><PRE CLASS="PROGRAMLISTING" -> # 4-channel: - audio.four_channel:1 - - # 5-channel: - audio.five_channel:1 - - # 5.1-channel - audio.five_lfe_channel:0 - </PRE +> audio.four_channel:1 + audio.five_channel:1 + audio.five_lfe_channel:0</PRE ></TD ></TR ></TABLE @@ -2346,25 +2526,25 @@ CLASS="PROGRAMLISTING" </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="SPDIF" ->What about ac3 output via spdif to an external ac3 decoder?</A -></H2 +></A +>What about ac3 output via spdif to an external ac3 decoder?</H3 ><P -> xine can do that too. Pretty much the same story as for 4-/5-channel - surround (see above). You can either use the config dialog or edit - the config file (<TT +> xine can do that too. Pretty much the same story as for 4-/5-channel + surround (see above). You can either use the config dialog or edit + the config file (<TT CLASS="FILENAME" >~/.xine/config</TT ->/<TT +> or <TT CLASS="FILENAME" >~/.gxine/config</TT ->) - yourself: - <TABLE +>) + yourself: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" @@ -2372,8 +2552,7 @@ WIDTH="100%" ><TD ><PRE CLASS="PROGRAMLISTING" -> audio.a52_pass_through:1 - </PRE +> audio.a52_pass_through:1</PRE ></TD ></TR ></TABLE @@ -2381,176 +2560,178 @@ CLASS="PROGRAMLISTING" </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="SBLIVESPDIF" ->Getting SPDIF output from a SBLive 5.1 using OSS drivers</A -></H2 +></A +>Getting SPDIF output from a SBLive 5.1 using OSS drivers</H3 ><P -> The following explains how to get the above configuration - going with xine. Some parts of it may applicable to other - configurations (cards that use the EMU10k1 chip) as well. +> The following explains how to get the above configuration + going with xine. Some parts of it may applicable to other + configurations (cards that use the EMU10k1 chip) as well. </P ><DIV -CLASS="SECT2" -><HR><H3 -CLASS="SECT2" +CLASS="SECT3" +><HR><H4 +CLASS="SECT3" ><A -NAME="AEN372" ->Requirements</A -></H3 +NAME="AEN439" +></A +>Requirements</H4 ><P ></P ><OL TYPE="1" ><LI ><P -> xine-lib >= 1.x.x </P +>xine-lib >= 1.x.x</P ></LI ><LI ><P -> OSS driver </P +>OSS driver</P ></LI ><LI ><P -> An external decoder </P +>an external decoder</P ></LI ><LI ><P -> A cable to connect the SBLive to the external decoder </P +>a cable to connect the SBLive to the external decoder</P ></LI ></OL ><P -> The configuration described was tested using the following equipment : - Soundblaster live 5.1 (rev 7) - Yamaha DSP-AX620 external decoder - </P +> The configuration described was tested using a Soundblaster live 5.1 (rev 7) + with a Yamaha DSP-AX620 external decoder. + </P ></DIV ><DIV -CLASS="SECT2" -><HR><H3 -CLASS="SECT2" +CLASS="SECT3" +><HR><H4 +CLASS="SECT3" ><A -NAME="AEN384" ->The OSS driver is maintained by creative and can be downloaded at - <A -HREF="http://opensource.creative.com/" -TARGET="_top" -> http://opensource.creative.com/ </A +NAME="AEN451" ></A -></H3 +>Retrieving the driver</H4 ><P -> The driver package contains documentation on how to install it. - Besides that I'd like to add the following notes. +> The OSS driver is maintained by creative and can be downloaded at + <A +HREF="http://opensource.creative.com/" +TARGET="_top" +>http://opensource.creative.com/</A +>. + The driver package contains documentation on how to install it. + Besides that I'd like to add the following notes. </P ><P -> In order to compile and install these drivers, you need a valid kernel - configuration file. For RedHat Linux's pre-compiled kernels these - configuration files can be found in - <TT +> In order to compile and install these drivers, you need a valid kernel + configuration file. For RedHat Linux's pre-compiled kernels these + configuration files can be found in + <TT CLASS="FILENAME" >/usr/src/linux/configs</TT -> - After you've located the correct config file for your kernel, - you need to copy it to <TT +>. + After you've located the correct config file for your kernel, + you need to copy it to <TT CLASS="FILENAME" >/usr/src/linux/.config</TT > - For example, when you run the 2.4.18-i686 kernel do : - <TABLE + For example, when you run the 2.4.18-i686 kernel do : + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> cp /usr/src/linux/configs/kernel-2.4.18-i686.config /usr/src/linux/.config - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>cp /usr/src/linux/configs/kernel-2.4.18-i686.config /usr/src/linux/.config</B +></PRE ></TD ></TR ></TABLE > - Make sure that the emu10k1 module that is currently installed is - not loaded. To unload the modules : - <TABLE + Make sure that the emu10k1 module that is currently installed is + not loaded. To unload the modules: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> /sbin/modprobe -rv emu10k1.o ac97_codec.o - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>/sbin/modprobe -rv emu10k1.o ac97_codec.o</B +></PRE ></TD ></TR ></TABLE > - - If this mentions that the device is busy, some program is - using the driver. Some example could be a mixer application - or sound daemon like artsd. You'll need to close down the - applications before continuing. - At success it should print something like : - <TABLE + If this mentions that the device is busy, some program is + using the driver. Some example could be a mixer application + or sound daemon like artsd. You'll need to close down the + applications before continuing. + At success it should print something like: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> # delete emu10k1 - # delete ac97_codec - # delete soundcore - </PRE +CLASS="SCREEN" +> # delete emu10k1 + # delete ac97_codec + # delete soundcore</PRE ></TD ></TR ></TABLE > - Run make in the directory where you unpacked the driver and follow the - instructions printed at the end of each step. - The last step should be: - <TABLE + Run make in the directory where you unpacked the driver and follow the + instructions printed at the end of each step. + The last step should be: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> make install-tools - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>make install-tools</B +></PRE ></TD ></TR ></TABLE > - - As the README of the driver package mentions the SPDIF AC3 - output doesn't work by default. In the directory - <TT + As the README of the driver package mentions the SPDIF AC3 + output doesn't work by default. In the directory + <TT CLASS="FILENAME" >utils/scripts</TT > an <TT CLASS="FILENAME" >emu10k1.conf</TT > - file can be found which need to be placed in the default - installation directory (<TT + file can be found which need to be placed in the default + installation directory (<TT CLASS="FILENAME" >/usr/local/etc</TT >). - After this the <TT + After this the <TT CLASS="FILENAME" >emu10k1.conf</TT > needs to be modified. - The following settings worked fine for me (I don't use the analog - outputs of the card) : - - <TABLE + The following settings worked fine for me (I don't use the analog + outputs of the card): + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" @@ -2558,38 +2739,36 @@ WIDTH="100%" ><TD ><PRE CLASS="PROGRAMLISTING" -> CARD_IS_5_1=yes - USE_DIGITAL_OUTPUT=yes - ENABLE_TONE_CONTROL=yes - AC3PASSTHROUGH=yes - ENABLE_LIVEDRIVE_IR=no - INVERT_REAR=no - MULTICHANNEL=yes - ROUTE_ALL_TO_SUB=no - ANALOG_FRONT_BOOST=no - SURROUND=no - PROLOGIC=no - ENABLE_CD_Spdif=yes - ENABLE_OPTICAL_SPDIF=no - ENABLE_LINE2_MIC2=no - ENABLE_RCA_SPDIF=no - ENABLE_RCA_AUX=no - </PRE +> CARD_IS_5_1=yes + USE_DIGITAL_OUTPUT=yes + ENABLE_TONE_CONTROL=yes + AC3PASSTHROUGH=yes + ENABLE_LIVEDRIVE_IR=no + INVERT_REAR=no + MULTICHANNEL=yes + ROUTE_ALL_TO_SUB=no + ANALOG_FRONT_BOOST=no + SURROUND=no + PROLOGIC=no + ENABLE_CD_Spdif=yes + ENABLE_OPTICAL_SPDIF=no + ENABLE_LINE2_MIC2=no + ENABLE_RCA_SPDIF=no + ENABLE_RCA_AUX=no</PRE ></TD ></TR ></TABLE > - After modifying the <TT + After modifying the <TT CLASS="FILENAME" >emu10k1.conf</TT >, - you need to modify your <TT + you need to modify your <TT CLASS="FILENAME" >/etc/modules.conf</TT > and - make sure the following lines are in there. - - <TABLE + make sure the following lines are in there. + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" @@ -2597,46 +2776,46 @@ WIDTH="100%" ><TD ><PRE CLASS="PROGRAMLISTING" -> alias sound-slot-0 emu10k1 - post-install emu10k1 /usr/local/etc/emu-script - </PRE +> alias sound-slot-0 emu10k1 + post-install emu10k1 /usr/local/etc/emu-script</PRE ></TD ></TR ></TABLE > - - After saving the changes to <TT + After saving the changes to <TT CLASS="FILENAME" >modules.conf</TT ->, - run - <TABLE +>, run + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> /sbin/depmod -a - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>/sbin/depmod -a</B +></PRE ></TD ></TR ></TABLE > - - Now, you're ready to load the new modules and set the correct - options for it. To load the modules run : - <TABLE + Now, you're ready to load the new modules and set the correct + options for it. To load the modules run: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> /sbin/modprobe emu10k1 - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>/sbin/modprobe emu10k1</B +></PRE ></TD ></TR ></TABLE @@ -2644,20 +2823,20 @@ CLASS="PROGRAMLISTING" </P ></DIV ><DIV -CLASS="SECT2" -><HR><H3 -CLASS="SECT2" +CLASS="SECT3" +><HR><H4 +CLASS="SECT3" ><A -NAME="AEN406" ->Setting up xine for SPDIF (AC3_passthrough) output</A -></H3 +NAME="AEN478" +></A +>Setting up xine for SPDIF (AC3_passthrough) output</H4 ><P -> You can either use the config dialog or edit the config file - (<TT +> You can either use the config dialog of your frontend or edit + the config file (<TT CLASS="FILENAME" ->~/.xine/config2</TT ->) yourself: - <TABLE +>~/.xine/config</TT +>) yourself: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" @@ -2665,25 +2844,44 @@ WIDTH="100%" ><TD ><PRE CLASS="PROGRAMLISTING" -> audio.a52_pass_through:1 - </PRE +> audio.a52_pass_through:1</PRE ></TD ></TR ></TABLE > - In case the setting is not in the file you can add it. + In case the setting is not in the file you can add it. </P ></DIV ><DIV -CLASS="SECT2" -><HR><H3 -CLASS="SECT2" +CLASS="SECT3" +><HR><H4 +CLASS="SECT3" ><A -NAME="AEN411" +NAME="AEN483" +></A >The cable used for the SBLive can easily be self-made - or buy a stereo 3.5mm jack to dual RCA cable.</A -></H3 -><TABLE + or buy a stereo 3.5mm jack to dual RCA cable.</H4 +><P +> What you need to make the cable yourself: + <P +></P +><UL +><LI +><P +>stereo 3.5mm jack plug</P +></LI +><LI +><P +>RCA plug</P +></LI +><LI +><P +>shielded cable (video coax 75 Ohm will do)</P +></LI +></UL +> + Connect them as follows : + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" @@ -2691,342 +2889,354 @@ WIDTH="100%" ><TD ><PRE CLASS="PROGRAMLISTING" -> What you need to make the cable yourself : - a) stereo 3.5mm jack plug - b) RCA plug - c) shielded cable (video coax 75 Ohm will do) - - Connect them as follows : - - center pin jackplug ------|----- center pin RCA plug - GND __|__ GND - </PRE +> center pin jackplug ------|----- center pin RCA plug + GND __|__ GND</PRE ></TD ></TR ></TABLE +> + </P ><P -> In order to test it use a DVD with AC3 or DTS track - start xine and select the right audio track - from user interface or start xine as: - <TABLE +> In order to test it use a DVD with AC3 or DTS track + start xine and select the right audio track + from user interface or start xine as: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> xine dvd://1 -a 0 - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>xine dvd:/1 -a 0</B +></PRE ></TD ></TR ></TABLE > - The external decoder should display something like - "Dolby Digital" in case the - selected audio track contains AC3 data or "DTS" - in case the selected audio - track contains DTS data. - Of course stereo audio also goes through the SPDIF output, so the analog - outputs of the SBLive 5.1 are not needed anymore. + The external decoder should display something like + "Dolby Digital" in case the selected audio track contains + AC3 data or "DTS" in case the selected audio track + contains DTS data. Of course stereo audio also goes + through the SPDIF output, so the analog outputs of the + SBLive 5.1 are not needed anymore. </P ></DIV ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="VOLUMECONTROL" ->Changing the volume with the GUI control has no effect! What's up!?</A -></H2 +></A +>Changing the volume with the GUI control has no effect! What's up!?</H3 ><P -> Some xine drivers do not support volume changing although the GUI - will show the volume bar. Usually this is not xine's fault: aRts C - API, for example, doesn't offer any volume property to applications. - Similarly, with ac3 pass through it is not possible to set the volume. +> Some xine drivers do not support volume changing although the GUI + will show the volume bar. Usually this is not xine's fault: aRts C + API, for example, doesn't offer any volume property to applications. + Similarly, with ac3 pass through it is not possible to set the volume. </P ><P -> Note that recently we added support to "simulate" volume in aRts by - changing sample values on-the-fly before delivering them to the driver. - Not as good as having access to sound card's mixer but at least users - will not complain about lacking of volume bar anymore! :) +> Note that recently we added support to "simulate" volume in aRts by + changing sample values on-the-fly before delivering them to the driver. + Not as good as having access to sound card's mixer but at least users + will not complain about lacking of volume bar anymore! :) </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="STUTTERING" ->Audio is stuttering and i see a lot of "metronom: fixing sound card drift by -2115 pts" on the console output</A -></H2 -><P -> Might be a soundcard problem, if it only comes in longer intervals. - Your soundcard does not keep it's sampling frequency accurately - enough, which results in audio and video - getting out of sync and xine has to compensate. If you see the message - only from time to time, you might remedy it by using the resampling sync - method. You can do this by setting the configuration entry - <VAR +></A +>Audio is stuttering and i see a lot of "metronom: fixing sound card drift by -2115 pts" on the console output</H3 +><P +> Might be a soundcard problem, if it only comes in longer intervals. + Your soundcard does not keep it's sampling frequency accurately + enough, which results in audio and video + getting out of sync and xine has to compensate. If you see the message + only from time to time, you might remedy it by using the resampling sync + method. You can do this by setting the configuration entry + <TT CLASS="PARAMETER" ->audio.av_sync_method</VAR -> to <VAR +><I +>audio.av_sync_method</I +></TT +> to <TT CLASS="PARAMETER" ->resample</VAR +><I +>resample</I +></TT >. </P ><P -> If you receive the metronom message more often, - maybe switching to different drivers (alsa to oss or vise-versa) - can help here. It has also been reported that setting the configuration - entry <VAR +> If you receive the metronom message more often, + maybe switching to different drivers (alsa to oss or vise-versa) + can help here. It has also been reported that setting the configuration + entry <TT CLASS="PARAMETER" ->audio.force_rate</VAR +><I +>audio.force_rate</I +></TT > to the native sampling - rate of your soundcard (try 44100 and 48000) helps sometimes. + rate of your soundcard (try 44100 and 48000) helps sometimes. </P ><P -> Another, whole different possibility is that you have some background - process running which is messing with the clock (like some ntp client - - chronny, ntpd, ...). +> Another, whole different possibility is that you have some background + process running which is messing with the clock (like some ntp client - + chronny, ntpd, ...). </P ><P -> Occasional messages of "fixing sound card drift" may happen on start and - when playing a long stream (like a movie). This is normal behaviour, - nothing to worry about. +> Occasional messages of "fixing sound card drift" may happen on start and + when playing a long stream (like a movie). This is normal behaviour, + nothing to worry about. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="SOUNDLOSS" ->xine seems to lose sound arbitrarily during playback, especially with DVDs</A -></H2 +></A +>xine seems to lose sound arbitrarily during playback, especially with DVDs</H3 ><P -> You are using the OSS audio output plugin, right? In order to keep video and audio - in sync, xine regularly queries the audio driver for the amount of delay induced by - the current length of the driver's audio buffer. Unfortunately some OSS drivers seem - to be broken because the can return strange values here. This confuses the xine audio - subsystem and makes it drop audio. +> You are using the OSS audio output plugin, right? In order to keep video and audio + in sync, xine regularly queries the audio driver for the amount of delay induced by + the current length of the driver's audio buffer. Unfortunately some OSS drivers seem + to be broken because the can return strange values here. This confuses the xine audio + subsystem and makes it drop audio. </P ><P -> You should try the various settings of the - configuration entry <VAR +> You should try the various settings of the + configuration entry <TT CLASS="PARAMETER" ->audio.oss_sync_method</VAR +><I +>audio.oss_sync_method</I +></TT >. The options - <VAR + <TT CLASS="PARAMETER" ->getodelay</VAR -> and <VAR +><I +>getodelay</I +></TT +> and <TT CLASS="PARAMETER" ->getoptr</VAR +><I +>getoptr</I +></TT > ask the driver and - might therefore show the problem. But chances are that only one is broken and the other - works, so you should try them both first, since they are the most accurate. - The option <VAR + might therefore show the problem. But chances are that only one is broken and the other + works, so you should try them both first, since they are the most accurate. + The option <TT CLASS="PARAMETER" ->probebuffer</VAR +><I +>probebuffer</I +></TT > does not ask the driver directly but - tries to determine the buffer length from outside. This should work with any driver - and is the way to go, of the driver dependent methods fail. - <VAR + tries to determine the buffer length from outside. This should work with any driver + and is the way to go, of the driver dependent methods fail. + <TT CLASS="PARAMETER" ->softsync</VAR +><I +>softsync</I +></TT > is the least accurate and should be used only in - emergency situations. + emergency situations. </P ></DIV ></DIV ><DIV -CLASS="CHAPTER" -><HR><H1 +CLASS="SECT1" +><HR><H2 +CLASS="SECT1" ><A NAME="VIDEO" ></A ->Chapter 6. Video related questions </H1 +>Video related questions</H2 ><DIV -CLASS="SECT1" -><H2 -CLASS="SECT1" +CLASS="SECT2" +><H3 +CLASS="SECT2" ><A NAME="NOVIDEO" ->I can hear the audio - but I don't see a picture!</A -></H2 +></A +>I can hear the audio - but I don't see a picture!</H3 ><P -> Probably your hardware is simply too slow - see above for some - hints on how to speed things up. +> Probably your hardware is simply too slow - see above for some + hints on how to speed things up. </P ><P -> Another possibility is that you using a buggy Xv driver, see the next - question. +> Another possibility is that you using a buggy Xv driver, see the next + question. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="XVEXTENSION" ->How can I make xine use the Xv extension and what drivers do I need?</A -></H2 +></A +>How can I make xine use the Xv extension and what drivers do I need?</H3 ><P -> xine will normally use Xv by default if it is available. In some cases - you might need to choose Xv playback manually (when the <TT +> xine will normally use Xv by default if it is available. In some cases + you might need to choose Xv playback manually (when the <TT CLASS="FILENAME" >~/.xine/config</TT > - file for some reason says that you want to use XShm): - <TABLE + file for some reason says that you want to use XShm): + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> xine -V Xv foo.mpg - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>xine -V Xv foo.mpg</B +></PRE ></TD ></TR ></TABLE > </P ><P -> If this doesn't work for you, it may be possible that Xv is not present - on your system. +> If this doesn't work for you, it may be possible that Xv is not present + on your system. </P ><P -> First you need to install/use XFree 4.x. Once you got that you have to - make sure the XFree drivers you're using are supporting Xv on your - hardware. Here are some hints for individual gfx chips: - <P +> First you need to install/use XFree 4.x. Once you got that you have to + make sure the XFree drivers you're using are supporting Xv on your + hardware. Here are some hints for individual gfx chips: + <P ></P ><UL ><LI ><P > - 3Dfx: if all you get is a solid black window, upgrade at least to - XFree 4.1.0 - </P + 3Dfx: if all you get is a solid black window, upgrade at least to XFree 4.1.0 + </P ></LI ><LI ><P -> - ATI: if you only get "half a picture", try lowering your resolution - or bit depth, disable DRI (looks like you ran out of video RAM) - </P +> + ATI: if you only get "half a picture", try lowering your resolution + or bit depth, disable DRI (looks like you ran out of video RAM) + </P ></LI ><LI ><P > - Trident card: If you see vertical bands jumbled, upgrade to the latest - xfree/experimental trident drivers (for the CyberBlade XP - a driver exists here: - <A + Trident card: If you see vertical bands jumbled, upgrade to the latest + xfree/experimental trident drivers (for the CyberBlade XP + a driver exists here: + <A HREF="http://www.xfree86.org/~alanh/" TARGET="_top" -> - http://www.xfree86.org/~alanh/ </A +>http://www.xfree86.org/~alanh/ </A >) - </P + </P ></LI ><LI ><P > - nvidia: With newer GeForce cards, Xv should work with XFree 4.2.0 or - newer, for older RivaTNT cards use the binary drivers from nvidia - (of course the binary drivers work as well for GeForce cards) - </P + nVidia: With newer GeForce cards, Xv should work with XFree 4.2.0 or + newer, for older RivaTNT cards use the binary drivers from nvidia + (of course the binary drivers work as well for GeForce cards) + </P ></LI ><LI ><P > - Mach64/Rage3D (not Rage128/Radeon) cards/chips get no XVideo with - standard drivers, try - <A + Mach64/Rage3D (not Rage128/Radeon) cards/chips get no XVideo with + standard drivers, try + <A HREF="http://gatos.sourceforge.net/" TARGET="_top" >GATOS drivers - </A + </A > instead - </P + </P ></LI ><LI ><P > - intel: i815 has Xv support in XFree 4.x, others unknown - </P + intel: i815 has Xv support in XFree 4.x, others unknown + </P ></LI ><LI ><P > - Permedia 2/3 has Xv support in XFree 4.x - </P + Permedia 2/3 has Xv support in XFree 4.x + </P ></LI ><LI ><P > - Savage: at least some older drivers tend to lock up the whole machine, - try the drivers available from - <A + Savage: at least some older drivers tend to lock up the whole machine, + try the drivers available from + <A HREF="http://www.probo.com/timr/savage40.html" TARGET="_top" -> www.probo.com/timr/savage40.html - </A +> http://www.probo.com/timr/savage40.html + </A >. - </P + </P ></LI ><LI ><P > - SIS: certain controllers (more info needed!) have Xv support in XFree 4.x - </P + SIS: certain controllers (more info needed!) have Xv support in XFree 4.x + </P ></LI ><LI ><P > - Chips and Tech 6555x, 68554, 69000, 69030 have Xv support in XFree 4.x - </P + Chips and Tech 6555x, 68554, 69000, 69030 have Xv support in XFree 4.x + </P ></LI ><LI ><P > - NeoMagic: certain controllers (more info needed!) have Xv support in Xfree 4.x - </P + NeoMagic: certain controllers (more info needed!) have Xv support in Xfree 4.x + </P ></LI ><LI ><P > - SiliconMotion: certain controllers (more info needed!) have Xv support in Xfree 4.x - </P + SiliconMotion: certain controllers (more info needed!) have Xv support in Xfree 4.x + </P ></LI ><LI ><P > - Matrox: G200 or newer (but not Parhelia) have Xv support in XFree 4.x. - For parhelia, use the binary only drivers available from matrox' website. - </P + Matrox: G200 or newer (but not Parhelia) have Xv support in XFree 4.x. + For Parhelia, use the binary only drivers available from matrox' website. + </P ></LI ></UL > </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="COLORKEY" ->Some parts of my X Desktop get transparent when xine plays the video!</A -></H2 +></A +>Some parts of my X Desktop get transparent when xine plays the video!</H3 ><P -> Looks like some colors on your GUI match the colorkey Xv uses. You can - change the colorkey value to avoid this. There should be a line like: - <TABLE +> Looks like some colors on your GUI match the colorkey Xv uses. You can + change the colorkey value to avoid this. There should be a line like: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" @@ -3034,42 +3244,41 @@ WIDTH="100%" ><TD ><PRE CLASS="PROGRAMLISTING" -> video.XV_COLORKEY:2110 - </PRE +> video.XV_COLORKEY:2110</PRE ></TD ></TR ></TABLE > - in your <TT + in your <TT CLASS="FILENAME" >~/.xine/config</TT > file where you can change the color that's used - by xine for the video overlay. + by xine for the video overlay. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="ASPECTRATIO" ->The aspect ratio of the video is wrong!</A -></H2 +></A +>The aspect ratio of the video is wrong!</H3 ><P -> Try pressing "a" to change the aspect ratio. +> Try pressing "a" to change the aspect ratio. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="DISCARDEDSKIPPED" ->What is the difference between discarded and skipped frames?</A -></H2 +></A +>What is the difference between discarded and skipped frames?</H3 ><P -> Sometimes xine will output a message like that: - <TABLE +> Sometimes xine will output a message like that: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" @@ -3077,173 +3286,181 @@ WIDTH="100%" ><TD ><PRE CLASS="PROGRAMLISTING" -> 200 frames delivered, XX frames skipped, YY frames discarded - </PRE +> 200 frames delivered, XX frames skipped, YY frames discarded</PRE ></TD ></TR ></TABLE > </P ><P -> The difference between these counters is a little subtle for the non - developer. There are two threads running in order to display video: - the decoder thread will deliver frames to the video output thread. - The later is responsible for scheduling the frames to be displayed at - the right time. +> The difference between these counters is a little subtle for the non + developer. There are two threads running in order to display video: + the decoder thread will deliver frames to the video output thread. + The later is responsible for scheduling the frames to be displayed at + the right time. </P ><P -> If your system can't keep up with decoding requirements, decoder will - deliver overdue frames. Imagine if it finished decoding the frame - tagged for displaying at 11:30 but xine clock marks 11:31. When this - situation is detected, xine will try to skip decoding a few frames - to recover. Not every decoder may support this feature. +> If your system can't keep up with decoding requirements, decoder will + deliver overdue frames. Imagine if it finished decoding the frame + tagged for displaying at 11:30 but xine clock marks 11:31. When this + situation is detected, xine will try to skip decoding a few frames + to recover. Not every decoder may support this feature. </P ><P -> When the frame is decoded to be shown somewhere in future but the - output thread doesn't get scheduled in time by the operating system - to complete the operation, the frame is discarded. One cause might - be the disk access operation, which may halt the system for a few - miliseconds without DMA. See performance section tips above. +> When the frame is decoded to be shown somewhere in future but the + output thread doesn't get scheduled in time by the operating system + to complete the operation, the frame is discarded. One cause might + be the disk access operation, which may halt the system for a few + miliseconds without DMA. See performance section tips above. </P ><P -> Note that if a decoder can't skip frames for some reason, you would - never see frames skipped (they would be all discarded). +> Note that if a decoder can't skip frames for some reason, you would + never see frames skipped (they would be all discarded). </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="CONTRASTBRIGHTNESSSATURATION" ->My xine is runing in black and white! / I only get a gray video output!</A -></H2 +></A +>My xine is runing in black and white! / I only get a gray video output!</H3 ><P -> This frequently happens with new Xv drivers or when switching to a - different video card. Background is that different Xv drivers often - use different ranges for the contrast/brightness/saturation settings. +> This frequently happens with new Xv drivers or when switching to a + different video card. Background is that different Xv drivers often + use different ranges for the contrast/brightness/saturation settings. </P ><P -> To fix this, try opening the xine settings window and try adjusting - the sliders for contrast, brightness and saturation. +> To fix this, try opening the xine settings window and try adjusting + the sliders for contrast, brightness and saturation. </P ><P -> Please note that some frontends save these settings in their config file - so when you have found a working combination, make sure you exit - xine cleanly so the values are saved. +> Please note that some frontends save these settings in their config file + so when you have found a working combination, make sure you exit + xine cleanly so the values are saved. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="VIDEODRIVER" ->Which is the best video driver to use?</A -></H2 +></A +>Which is the best video driver to use?</H3 ><P -> xine support several video drivers for outputing the image. These will - differ on how the frames are copied to the video card memory, whether - colorspace conversion and scaling is done in software or hardware, among - other things. They may also differ on ease of use and stability. +> xine support several video drivers for outputing the image. These will + differ on how the frames are copied to the video card memory, whether + colorspace conversion and scaling is done in software or hardware, among + other things. They may also differ on ease of use and stability. </P ><P -> Most of the time, Xv should give the users a good trade-off between - quality, compatibility and ease of use. This is why xine tries to use - Xv by default. +> Most of the time, Xv should give the users a good trade-off between + quality, compatibility and ease of use. This is why xine tries to use + Xv by default. </P ><P -> However some users may want to explore better the available hardware - capabilities (eg. syncing frame drawing with monitor refresh). - Also some Xv drivers contain slow copies and accessing the video card - directly may yield performance gains. +> However some users may want to explore better the available hardware + capabilities (eg. syncing frame drawing with monitor refresh). + Also some Xv drivers contain slow copies and accessing the video card + directly may yield performance gains. </P ><P -> Drivers that access hardware directly includes VIDIX (warning: requires - root priviledges) and SyncFB (requires kernel helper - Matrox only). - User may try one of those, but should be warned that with root access - they can cause the system to crash hard. The support is also limited to - a couple of graphics cards only. +> Drivers that access hardware directly includes VIDIX (warning: requires + root priviledges or kernel helper) and SyncFB (requires kernel helper - Matrox only). + User may try one of those, but should be warned that with root access + they can cause the system to crash hard. The support is also limited to + a couple of graphics cards only. </P ><P -> Graphic workstations like SGI have usually a good support for OpenGL. - In that case, using OpenGL may be a better choice than XShm. However for - most desktop systems the performance of OpenGL will be quite bad. +> Graphic workstations like SGI have usually a good support for OpenGL. + In that case, using OpenGL may be a better choice than XShm. However for + most desktop systems the performance of OpenGL will be quite bad. </P ></DIV ></DIV ><DIV -CLASS="CHAPTER" -><HR><H1 +CLASS="SECT1" +><HR><H2 +CLASS="SECT1" ><A NAME="ERRORS" ></A ->Chapter 7. Error Messages: What they mean and what you can do</H1 +>Error Messages: What they mean and what you can do</H2 ><DIV -CLASS="SECT1" -><H2 -CLASS="SECT1" +CLASS="SECT2" +><H3 +CLASS="SECT2" ><A NAME="AUDIODRIVERERR" ->Starting xine fails with complains about audio drivers/devices!</A -></H2 +></A +>Starting xine fails with complains about audio drivers/devices!</H3 ><P -> You can select the audio driver using the -A option. So try: - <TABLE +> You can select the audio driver using the -A option. So try: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> xine -A null - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>xine -A null</B +></PRE ></TD ></TR ></TABLE > - If you have ALSA drivers installed, try: - <TABLE + If you have ALSA drivers installed, try: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> xine -A alsa - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>xine -A alsa</B +></PRE ></TD ></TR ></TABLE > - If you run ESD (not recommended), try: - <TABLE + If you run ESD (not recommended), try: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> xine -A esd - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>xine -A esd</B +></PRE ></TD ></TR ></TABLE > - If you run artsd, try: - <TABLE + If you run artsd, try: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> xine -A arts - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>xine -A arts</B +></PRE ></TD ></TR ></TABLE @@ -3251,32 +3468,34 @@ CLASS="PROGRAMLISTING" </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="NOVIDEOPORTFOUND" ->"no video port found"</A -></H2 +></A +>"no video port found"</H3 ><P -> You got the Xv extension, but your video card driver doesn't support it. - First try to find a driver that does support Xv on your hardware (check - your graphics card vendor). If your driver has Xv support but you can't - get it working, try at a lower resolution (1024x768 is enough even for - anamorphic mpeg-2). +> You got the Xv extension, but your video card driver doesn't support it. + First try to find a driver that does support Xv on your hardware (check + your graphics card vendor). If your driver has Xv support but you can't + get it working, try at a lower resolution (1024x768 is enough even for + anamorphic DVDs). </P ><P -> If all that fails, you can still use plain X11/XShm: - <TABLE +> If all that fails, you can still use plain X11/XShm: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> gxine -V XShm foo.vob - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>gxine -V XShm foo.vob</B +></PRE ></TD ></TR ></TABLE @@ -3284,276 +3503,295 @@ CLASS="PROGRAMLISTING" </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="UNABLETOOPENDVDDRIVE" ->"Unable to open dvd drive (/dev/dvd)"</A -></H2 +></A +>"Unable to open dvd drive (/dev/dvd)"</H3 ><P -> You probably don't have /dev/dvd (check that). If so, simply create a - link /dev/dvd that points to your DVD device. Something like... - <TABLE +> You probably don't have /dev/dvd (check that). If so, simply create a + link /dev/dvd that points to your DVD device. Something like... + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> cd /dev - ln -s hdc dvd - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>ln -s hdc /dev/dvd</B +></PRE ></TD ></TR ></TABLE > - ...should do the job. Also make sure you have read access on - the device the symlink points to. - See the <A + ...should do the job. Also make sure you have read and write access on + the device the symlink points to. + See the <A HREF="#DVDPLAYBACK" >dvd playback section</A > - for more information. + for more information. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" +><A +NAME="STATUS0X51" +></A +>My drive doesn't work and the kernel says "status=0x51 { DriveReady SeekComplete Error }"</H3 +><P +> This error can be fixed by recompiling your kernel with the option + "Use multi-mode by default" enabled in the IDE settings. + </P +></DIV +><DIV +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="DEMUXERROR0000" ->"demux error! 00 00 00 (should be 0x000001)"</A -></H2 +></A +>"demux error! 00 00 00 (should be 0x000001)"</H3 ><P -> Probably xine can't access your input source. Most commonly this happens - when you're trying to play locked/encrypted DVDs. Remember that xine - can't play such DVDs out-of-the box for legal reasons (see above). +> Probably xine can't access your input source. Most commonly this happens + when you're trying to play locked/encrypted DVDs. Remember that xine + can't play such DVDs out-of-the box for legal reasons (see above). </P ><P -> If it is legal where you live, you can try to install libdvdcss. Once - you have done that and re-start xine, it should automatically detect - and use it to play back encrypted DVDs. +> If it is legal where you live, you can try to install libdvdcss. Once + you have done that and re-start xine, it should automatically detect + and use it to play back encrypted DVDs. </P ><P -> Another reason could be that your (RPC-2) DVD drive isn't set up - for the right region (see above). +> Another reason could be that your (RPC-2) DVD drive isn't set up + for the right region (see above). </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="OSSFAILED" ->"audio driver 'oss' failed, using null driver instead"</A -></H2 +></A +>"audio driver 'oss' failed, using null driver instead"</H3 ><P -> First of all, make sure that your OSS Audio drivers are working (i.e. - you can play music with other software). Maybe you're using alsa? - If so, try <B +> First of all, make sure that your OSS Audio drivers are working (i.e. + you can play music with other software). Maybe you're using alsa? + If so, try <B CLASS="COMMAND" -> gxine -A alsa </B +>gxine -A alsa</B > to see if this helps. </P ><P -> The most common reason for oss not working is that some other program is accesing - your audio device. If you're using linux, the command <B +> The most common reason for oss not working is that some other program is accesing + your audio device. If you're using linux, the command <B CLASS="COMMAND" >fuser /dev/dsp</B > - should give you the PID of the process. + should give you the PID of the process. </P ><P -> If you are using GNOME, chances are that this is caused by ESD. Now you - have two possibilities. Either deactivate ESD (temporarily) by right - clicking on the sound monitor applet and selecting "Place Esound in - standby" or just kill it. Then xine will use OSS audio output. The other - method is to make xine use ESD for audio output with: - <TABLE +> If you are using GNOME, chances are that this is caused by ESD. Now you + have two possibilities. Either deactivate ESD (temporarily) by right + clicking on the sound monitor applet and selecting "Place Esound in + standby" or just kill it. Then xine will use OSS audio output. The other + method is to make xine use ESD for audio output with: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> gxine -A esd - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>gxine -A esd</B +></PRE ></TD ></TR ></TABLE > - This may result in worse playback - exact syncronization is not possible - with esd, so using oss should be preferred. + This may result in worse playback - exact syncronization is not possible + with esd, so using oss should be preferred. </P ><P -> If you are using KDE, there is the possibility that the aRts sound - daemon is currently running and thus blocking your sound device. You - can check that by starting the aRts control (in your KDE menu it should - be under Multimedia). If it is running, you can either use the aRts - audio output plugin: - <TABLE +> If you are using KDE, there is the possibility that the aRts sound + daemon is currently running and thus blocking your sound device. You + can check that by starting the aRts control (in your KDE menu it should + be under Multimedia). If it is running, you can either use the aRts + audio output plugin: + <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE -CLASS="PROGRAMLISTING" -> gxine -A arts - </PRE +CLASS="SCREEN" +> <B +CLASS="COMMAND" +>gxine -A arts</B +></PRE ></TD ></TR ></TABLE > - Or you suspend the aRts daemon by checking the appropriate option in - your aRts control. (recommended) + Or you suspend the aRts daemon by checking the appropriate option in + your aRts control. (recommended) </P ><P -> Newer versions of arts have an auto-suspend mode - this can lead to - some nondeterministic behaviour of xine if it is set up to use - the audio device directly. Using arts is recommended in that case, - however you will loose the ability to do four/five channel audio output. +> Newer versions of arts have an auto-suspend mode - this can lead to + some nondeterministic behaviour of xine if it is set up to use + the audio device directly. Using arts is recommended in that case, + however you will loose the ability to do four/five channel audio output. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A -NAME="THROWINGAWARIMAGE" ->"video_out: throwing away image with pts xxx because it's too old"</A -></H2 +NAME="THROWINGAWAYIMAGE" +></A +>"video_out: throwing away image with pts xxx because it's too old"</H3 ><P -> This is a performance related problem. - - If you have a fast computer and this message shows from time to - time playing dvd/cdrom, it's very likely that your drive is not - DMA enabled. +> This is a performance related problem. + If you have a fast computer and this message shows from time to + time playing dvd/cdrom, it's very likely that your drive is not + DMA enabled. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="NOVIDEOPLUGINAVAILABLE" ->"No video plugin available to decode 'xxxxxx'."</A -></H2 +></A +>"No video plugin available to decode 'xxxxxx'."</H3 ><P -> You have tried to play a stream using a unknown or unhandled codec. - Possibly the file uses some obscure proprietary format and no - information is available on how to decode it. +> You have tried to play a stream using a unknown or unhandled codec. + Possibly the file uses some obscure proprietary format and no + information is available on how to decode it. </P ><P -> If you're on an x86 platform (e.g. PC hardware) you might want to - try installing binary-only windows medial, real networks and - quicktime codecs (see above). +> If you're on an x86 platform (e.g. PC hardware) you might want to + try installing binary-only windows medial, real networks and + quicktime codecs (see above). </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A -NAME="DEMUXERFAILEDTOSTART" ->"w32codec: decoder failed to start. Is 'xxxxxx' installed?"</A -></H2 +NAME="DECODERFAILEDTOSTART" +></A +>"w32codec: decoder failed to start. Is 'xxxxxx' installed?"</H3 ><P -> You probably don't have the win32 dll needed to decode this file. +> You probably don't have the win32 dll needed to decode this file. </P ></DIV ><DIV -CLASS="SECT1" -><HR><H2 -CLASS="SECT1" +CLASS="SECT2" +><HR><H3 +CLASS="SECT2" ><A NAME="XINECRASHED" ->xine just crashed on me - i didn't get any error message</A -></H2 -><P -> OK, yes, that shouldn't happen and you're upset. We can understand that. - But, to help you and of course to fix this, we need some information. - So, let's go through the checklist and maybe prepare a nice bug report - for the xine-user mailing list: - </P +></A +>xine just crashed on me - i didn't get any error message</H3 ><P +> OK, yes, that shouldn't happen and you're upset. We can understand that. + But, to help you and of course to fix this, we need some information. + So, let's go through the checklist and maybe prepare a nice bug report + for the xine-user mailing list: + <P ></P ><UL ><LI ><P -> did xine really crash (segfault) or did it hang (deadlock) ? - </P +> Did xine really crash (segfault) or did it hang (deadlock)? + </P ></LI ><LI ><P -> can you reproduce the bug? (e.g. do you remember what you - did and when you do it again it crashes again?) - </P +> Can you reproduce the bug? (e.g. do you remember what you + did and when you do it again it crashes again?) + </P ></LI ><LI ><P -> is that a specific media file or format which crashes xine? (have you - tried other files types?) - </P +> Is that a specific media file or format which crashes xine? (Have you + tried other files types?) + </P ></LI ><LI ><P -> check the console output (and include it in a bug report), maybe earlier - there is some output that points to the problem. - </P +> Check the console output (and include it in a bug report), maybe earlier + there is some output that points to the problem. + </P ></LI ><LI ><P -> Your X server just froze on you? unfortunately that's a known problem - with some chipsets and drivers (most commonly Savage chipsets) when - using Xv. You might want to try running <B +> Your X server just froze on you? unfortunately that's a known problem + with some chipsets and drivers (most commonly Savage chipsets) when + using Xv. You might want to try running <B CLASS="COMMAND" -> gxine -V XShm </B +>gxine -V XShm</B > - to see if the problem is related to the Xv driver. This will unfortunately - be much slower, as lots of things are now done - in software instead of hardware scaling/colour space conversion. - </P + to see if the problem is related to the Xv driver. This will unfortunately + be much slower, as lots of things are now done in software instead of + hardware scaling/colour space conversion. + </P ><P -> Maybe at the time you read this, there's an XFree upgrade which fixes - this for the Savage driver. If that works for you, please notify the xine crew at - <CODE +> Maybe at the time you read this, there's an XFree upgrade which fixes + this for the Savage driver. If that works for you, please notify the xine crew at + <TT CLASS="EMAIL" ><<A -HREF="mailto: xine-user@lists.sf.net " -> xine-user@lists.sf.net </A ->></CODE +HREF="mailto:xine-user@lists.sourceforge.net" +>xine-user@lists.sourceforge.net</A +>></TT >, so they can update this FAQ! - </P + </P ></LI ><LI ><P -> Even though we try to make each release as bug free as possible, xine is - still under heavy development (nice excuse, isn't it? *grin*). - </P +> Even though we try to make each release as bug free as possible, xine is + still under heavy development (nice excuse, isn't it? *grin*). + </P ><P -> If you write to the xine user mailing list - <CODE +> If you write to the xine user mailing list + <TT CLASS="EMAIL" ><<A HREF="mailto:xine-user@lists.sourceforge.net" >xine-user@lists.sourceforge.net</A ->></CODE +>></TT > - make sure you include a the above information (when applicable) - and also some information about your machine (operating system, cpu type and - speed, gfx card, sound card, ...) and please use a meaningfull subject - line ("xine bug" is bad, "xine fails to play this quicktime trailer in fullscreen mode" - ist much better). - </P + make sure you include a the above information (when applicable) + and also some information about your machine (operating system, cpu type and + speed, gfx card, sound card, ...) and please use a meaningfull subject + line ("xine bug" is bad, "xine fails to play this quicktime trailer in fullscreen mode" + ist much better). + </P ><P -> Thanks for taking the time to help improve xine. - </P +> Thanks for taking the time to help improve xine. + </P ></LI ></UL +> + </P +></DIV ></DIV ></DIV ></DIV diff --git a/doc/faq/faq.sgml b/doc/faq/faq.sgml index 6f9720bee..16e7cdbcb 100644 --- a/doc/faq/faq.sgml +++ b/doc/faq/faq.sgml @@ -1,1949 +1,1732 @@ -<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [ -<!ENTITY intro SYSTEM "intro.sgml"> -]> +<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.1//EN"> <book> -<bookinfo> + <bookinfo> <title>The xine engine FAQ</title> <titleabbrev>xine FAQ</titleabbrev> <copyright> - <year>2001-2003</year> - <holder>the xine project team</holder> + <year>2001-2003</year> + <holder>the xine project team</holder> </copyright> -</bookinfo> + </bookinfo> -<chapter id="general"> - - <title>General questions about xine and this document</title> - - <sect1 id="about"> + <article> + <sect1 id="general"> + <title>General questions about xine and this document</title> + <sect2 id="about"> <title>What is the xine engine?</title> - <para> - The xine engine is a free media player engine. It comes in the form of - a shared libarary and is typically used by media player frontends - and other multimedia applications for playback of multimedia streams - such as movies, radio/tv network streams, DVDs, VCDs. + The xine engine is a free media player engine. It comes in the form of + a shared libarary and is typically used by media player frontends + and other multimedia applications for playback of multimedia streams + such as movies, radio/tv network streams, DVDs, VCDs. </para> - - </sect1> - - <sect1 id="scope"> - - <title> What's the aim and scope of this text? </title> - <para> - The primary goal of this FAQ is to cover all recurring questions related - to the xine engine. Frontend specific questions are not covered here. + Since there are several frontends for the xine library available, + this document has a problem when it comes to examples. + The two most common frontends xine-ui and gxine are mixed in command + line examples throughout this FAQ. When you use a different + frontend, some of these will not work for you. The filename of + the config file also varies amongst frontends. If you get confused, + I recommend you try with one of xine-ui or gxine. </para> + </sect2> - </sect1> - - <sect1 id="wheretogethelp"> - - <title> My question is not yet covered here - where can I ask for help? </title> - + <sect2 id="scope"> + <title>What's the aim and scope of this text?</title> <para> - First of all be sure that your question is really not covered here and - that you haven't just been a bit too lazy to read through all of this - text. ;-). Also check out the xine HOWTO and documentation specific to - the frontend (e.g. <command> xine-ui </command> or <command> gxine </command> or - <command> totem </command>). + The primary goal of this FAQ is to cover all recurring questions related + to the xine engine. Frontend specific questions are usually not covered here. </para> - - <para> - That said - you are welcome to mail to our user mailing list: - - <email>xine-user@lists.sourceforge.net</email> + </sect2> - Please provide some info about your setup so people have a chance to - help you, e.g. include information about your audio/video hardware - and drivers you use, operating system, cpu type and some console - output/any error messages. Also include command line parameters you - have specified and information about the type of stream you're - trying to play back. Also very important is the version of xine - you're using and information about any additional plugins you - may have installed on your system. + <sect2 id="wheretogethelp"> + <title>My question is not yet covered here - where can I ask for help?</title> + <para> + First of all be sure that your question is really not covered here and + that you haven't just been a bit too lazy to read through all of this + text. ;-). Also check out the documentation specific to + the frontend (e.g. <command>xine-ui</command> or <command>gxine</command> or + <command>totem</command>). </para> - - </sect1> - - <sect1 id="modules"> - - <title> What are those xine-lib, xine-ui, gxine, ... modules in cvs for? </title> - <para> - Some time ago xine just became too complex to be just one big program. - Therefore it was split into two major parts. + That said - you are welcome to mail to our user mailing list: + <email>xine-user@lists.sourceforge.net</email> + Please provide some info about your setup so people have a chance to + help you, e.g. include information about your audio/video hardware + and drivers you use, operating system, cpu type and some console + output/any error messages. Also include command line parameters you + have specified and information about the type of stream you're + trying to play back. Also very important is the version of xine + you're using and information about any additional plugins you + may have installed on your system. </para> - + </sect2> + + <sect2 id="pronounce"> + <title>How do I pronounce "xine"?</title> <para> - xine-lib is simply speaking the engine of xine. It contains all plugins - and is necessary to run anything that relies on xine (this is the part that - is covered in this FAQ). + As long as people know what you are talking about, you are free to + pronounce it the way you like, but the official pronounciation is + [ksi:n], like the name "Maxine" with the "Ma" removed. </para> + </sect2> + <sect2 id="modules"> + <title>What are those xine-lib, xine-ui, gxine, ... modules in cvs for?</title> <para> - Then there are frontends - applications that use xine. The most - common frontend is that of a media player. There are currently - two frontends being developed in the xine project, xine-ui (skinned - dvd-player style frontend directly based on xlib) and gxine, - a desktop media-player style frontend using the standard gtk widget set - and comes with a mozilla browser plugin. - External projects like sinek and totem develop additional frontends. - In the future you will likely see more and different types of apllications - being developed which will use the xine engine for video processing - and other multimedia purposes. + Some time ago xine just became too complex to be just one big program. + Therefore it was split into two major parts. </para> - <para> - If you simply want a media/dvd player, you'll need to install xine-lib - first and then choose and install a player frontend like xine-ui or gxine. + xine-lib is simply speaking the engine of xine. It contains all basic plugins + and is necessary to run anything that relies on xine. (This is the part that + is covered in this FAQ.) </para> - <para> - Other modules in CVS: <filename>xine-plugin</filename> a mozilla browser plugin - for streaming media playback using xine (at the time of this writing - unmaintained and somewhat obsoleted by gxine's browser plugin), - <filename>xine-www</filename> the - xine project website sources. + Then there are frontends - applications that use xine. The most + common frontend is that of a media player. There are currently + two frontends being developed in the xine project, xine-ui (skinned + dvd-player style frontend directly based on xlib) and gxine, + a desktop media-player style frontend using the standard gtk widget set + and comes with a mozilla browser plugin. + External projects like kaffeine, sinek and totem develop additional frontends. + In the future you will likely see more and different types of applications + being developed which will use the xine engine for video processing + and other multimedia purposes. </para> - - </sect1> - - <sect1 id="cvs"> - - <title> Where and how do I get the latest development version? </title> - <para> - Be advised that end-users should stick to the official xine releases. - CVS is only intended for developers. + If you simply want a media/dvd player, you'll need to install xine-lib + first and then choose and install a player frontend like xine-ui or gxine. </para> - <para> - To check out xine-modules from CVS, first do this: + Other modules in CVS are: <filename>xine-plugin</filename> a mozilla browser plugin + for streaming media playback using xine, + <filename>xine-www</filename> the + xine project website sources. </para> + </sect2> + + <sect2 id="cvs"> + <title>Where and how do I get the latest development version?</title> <para> - <command> cvs -d :pserver:anonymous@cvs.xine.sourceforge.net:/cvsroot/xine login </command> - [empty password] + Be advised that end-users should stick to the official xine releases. + CVS is only intended for developers and for others who know why they use it. </para> <para> - then, to check out individual modules (e.g. <filename>xine-lib</filename>, - <filename>gxine</filename>, <filename>xine-ui</filename>): + To check out xine-modules from CVS, first do this: + <screen> <command>cvs -d :pserver:anonymous@cvs.xine.sourceforge.net:/cvsroot/xine login</command></screen> + The password is empty, just press Enter. </para> <para> - <command>cvs -d :pserver:anonymous@cvs.xine.sourceforge.net:/cvsroot/xine co modulename</command> + Then, to check out individual modules (e.g. <filename>xine-lib</filename>, + <filename>gxine</filename> or <filename>xine-ui</filename>): + <screen> <command>cvs -d :pserver:anonymous@cvs.xine.sourceforge.net:/cvsroot/xine co <modulename></command></screen> </para> + </sect2> - </sect1> - - <sect1 id="binaries"> - - <title> Where can I find pre-compiled binaries, e.g. RPMs? </title> - + <sect2 id="binaries"> + <title>Where can I find pre-compiled binaries, e.g. RPMs?</title> <para> - The xine project does not provide pre-compiled binaries for legal - reasons (some parts of xine may be covered by patents in some countries). - Some OS projects/vendors (e.g. debian, freebsd, ...) offer binaries - for their distributions - please contact them for further info. - You can also find links to third parties providing xine RPMs on - the xine homepage : - <ulink url="http://xine.sf.net/index.php/about">http://xine.sf.net/index.php/about</ulink> + The xine project does not provide pre-compiled binaries for legal + reasons (some parts of xine may be covered by patents in some countries). + Some OS projects/vendors (e.g. debian, freebsd, ...) offer binaries + for their distributions - please contact them for further info. + You can also find links to third parties providing xine RPMs on + the xine homepage at + <ulink url="http://xinehq.de/index.php/releases">http://xinehq.de/index.php/releases</ulink>. </para> - <para> - See the next chapter of this FAQ for instructions on how to build xine - from source. + See the next section of this FAQ for instructions on how to build xine + from source. </para> + </sect2> </sect1> -</chapter> - -<chapter id="building"> - - <title> Building and installing xine from source </title> - - <sect1 id="buildrequirements"> - - <title> What do I need to compile everything properly? </title> + <sect1 id="building"> + <title>Building and installing xine from source</title> + <sect2 id="buildrequirements"> + <title>What do I need to compile everything properly?</title> <para> - First of all an official and stable release of gcc. Also be aware - that patched gcc versions may break parts of xine and are therefore - not supported by the xine project. + First of all an official and stable release of gcc. Also be aware + that patched gcc versions may break parts of xine and are therefore + not supported by the xine project. </para> - <para> - Furthermore you'll have to use GNU make to compile xine. On most GNU/Linux - systems "make" is GNU make - on other platforms use "gmake" instead. - Also, zlib iss required (including the appropriate header files, which are - often found in a package called zlib-devel or similar.) + Furthermore you'll have to use GNU make to compile xine. On most GNU/Linux + systems "make" is GNU make - on other platforms use "gmake" instead. + Also, zlib is required (including the appropriate header files, which are + often found in a package called zlib-devel or similar.) </para> - <para> - If you want to compile xine from CVS, you'll need to have the autobuild tools - installed (automake, autoconf and libtool - in recent versions). + If you want to compile xine from CVS, you'll need to have the autobuild tools + installed (automake, autoconf and libtool - in recent versions). </para> - <para> - Frontends might need additional libraries, e.g. for gxine you'll need to have - GTK installed. Make sure you have not only the shared libraries themselves - but also the header files (often packaged seperately as so-called -dev packages) - on your system. + Frontends might need additional libraries, e.g. for gxine you'll need to have + GTK installed. Make sure you have not only the shared libraries themselves + but also the header files (often packaged seperately as so-called -dev packages) + on your system. </para> - <para> - Some plugins that come with the xine engine need additional libraries (otherwise - they will not be built). For example, libogg and libvorbis (plus their include files) - are needed for ogg/vorbis support. + Some plugins that come with the xine engine need additional libraries (otherwise + they will not be built). For example, libogg and libvorbis (plus their include files) + are needed for ogg/vorbis support. Most notably, if you want to see any video + on your X11 desktop (and that's what you're here for, isn't it?), you need the + XFree developer packages as well. </para> - <para> - Don't worry about this too much right now, xine's <command>configure</command> - (see below) will check for all the stuff needed and will tell you what's missing - (which means that you should check the output it produces carefully ;) ) + Don't worry about this too much right now, xine's <command>configure</command> + (see below) will check for all the stuff needed and will tell you what's missing + (which means that you should check the output it produces carefully ;) ). </para> - </sect1> - - <sect1> - - <title> How do I compile xine? </title> + </sect2> - <sect2 id="simplebuildinstr"> - - <title> Simple build instructions for beginners </title> - - <para> - Download the latest xine-lib and gxine/xine-ui tarballs, then follow - these instruction. To unpack a tarball, use: - </para> - <programlisting> - tar xfvz tarballname.tar.gz - </programlisting> - <para> - The following instructions will install xine in <filename>/usr/local</filename> for all - users. You need root privileges to do this on most systems. - </para> - <para> - First unpack xine-lib, then: - </para> - <programlisting> - ./configure - make install - </programlisting> - <para> - Make sure your <filename>/etc/ld.so.conf</filename> contains - <filename>/usr/local/lib</filename>, then: - </para> - <programlisting> - ldconfig - </programlisting> - <para> - Now unpack your frontend (gxine or xine-ui or ...), then: - </para> - <programlisting> - ./configure - make install - </programlisting> - - </sect2> - - <sect2 id="completebuildinstr"> - - <title> Complete build instructions </title> - - <para> - The build process is the same for all of the xine modules. - </para> - <para> - You have to start with xine-lib. If built and installed successfully, you - can continue with the frontend(s). - </para> - <para> - If you have installed xine-lib to a non-standard prefix, make sure you - that you have <filename>$prefix/bin</filename> in your PATH and that your linker finds - libs in <filename> $prefix/lib </filename> - otherwise trying to build modules that - rely on xine-lib will fail with configure complaining about not - finding certain parts of libxine. Using bash you can do something like: - </para> - <programlisting> - export PATH="$prefix/bin:$PATH" - export LD_LIBRARY_PATH="$prefix/lib:$LD_LIBRARY_PATH" - </programlisting> - <para> - to make sure libxine can be found by the frontend(s). - </para> - <para> - Last but not least. Here the build instructions. As stated earlier, - those are the same for every xine module. - </para> - <programlisting> - ./autogen.sh [-> *only* if you checked your sources out of CVS] - ./configure - make - make install - </programlisting> - - </sect2> - - </sect1> - - <sect1 id="rpmbuild"> - - <title> Making your own RPM packages (xine-lib, xine-ui) </title> + <sect2> + <title>How do I compile xine?</title> + <sect3 id="simplebuildinstr"> + <title> Simple build instructions for beginners </title> + <para> + Download the latest xine-lib and gxine/xine-ui tarballs, then follow + these instruction. To unpack a tarball, use: + <screen> <command>tar xfvz tarballname.tar.gz</command></screen> + </para> + <para> + The following instructions will install xine in <filename>/usr/local</filename> + where it will be visible for all users. You need root privileges to do this on most systems. + </para> + <para> + After unpacking xine-lib, issue: + <screen> + <command>./configure</command> + <command>make install</command></screen> + </para> + <para> + Make sure your <filename>/etc/ld.so.conf</filename> contains + <filename>/usr/local/lib</filename> and continue with: + <screen> <command>ldconfig</command></screen> + </para> + <para> + Now unpack your frontend (gxine or xine-ui or ...), then: + <screen> + <command>./configure</command> + <command>make install</command></screen> + </para> + </sect3> + <sect3 id="completebuildinstr"> + <title>Complete build instructions</title> + <para> + The build process is the same for all of the xine modules. + </para> + <para> + You have to start with xine-lib. If built and installed successfully, you + can continue with the frontend(s). + </para> + <para> + If you have installed xine-lib to a non-standard prefix, make sure + that you have <filename>$prefix/bin</filename> in your PATH and that your linker finds + libs in <filename>$prefix/lib</filename> - otherwise trying to build modules that + rely on xine-lib will fail with configure complaining about not + finding certain parts of libxine. Using bash you can do something like: + <screen> + <command>export PATH="$prefix/bin:$PATH"</command> + <command>export LD_LIBRARY_PATH="$prefix/lib:$LD_LIBRARY_PATH"</command></screen> + to make sure libxine can be found by the frontend(s). + </para> + <para> + Last but not least. Here the build instructions. As stated earlier, + those are the same for every xine module. + <screen> + <command>./autogen.sh</command> [-> *only* if you checked your sources out of CVS] + <command>./configure</command> + <command>make</command> + <command>make install</command></screen> + </para> + </sect3> + </sect2> + <sect2 id="rpmbuild"> + <title>Making your own RPM packages (xine-lib, xine-ui)</title> <para> - Basically you will only have to issue one command, if you have just - downloaded a source tarball from our web site: - </para> - - <para> - <command> rpm -ta THE_NAME_OF_YOUR_SOURCE_TAR_BALL </command> + Basically you will only have to issue one command, if you have just + downloaded a source tarball from our web site: + <screen> <command>rpm -ta <THE_NAME_OF_YOUR_SOURCE_TAR_BALL></command></screen> </para> - <para> - This will start the binary and source RPM building. After compiling is - finished, a binary rpm is placed in your rpm binary directory which is - usally <filename>/usr/src/RPM/RPMS/[YOUR_ARCHITECTURE]</filename> and a source RPM is written - to your rpm source dir (e.g. <filename>/usr/src/RPM/SRPMS</filename>). + This will start the binary and source RPM building. After compiling is + finished, a binary rpm is placed in your rpm binary directory which is + something like <filename>/usr/src/RPM/RPMS/<YOUR_ARCHITECTURE></filename> + and a source RPM is written to your rpm source dir + (e.g. <filename>/usr/src/RPM/SRPMS</filename>). </para> - <para> - In case that you have a fresh CVS checkout, you will need to do the - following first in order to get a tarball release out of it which you - can later use with the <command> rpm -ta </command> command above: + In case that you have a fresh CVS checkout, you will need to do the + following first in order to get a tarball release out of it which you + can later use with the <command>rpm -ta</command> command above: + <screen> <command>./autogen.sh && make clean && make dist</command></screen> </para> - <para> - <command> ./autogen.sh && make clean && make dist </command> + In any case, please keep in mind that you have to build and install + xine-lib first before you can proceed with xine-ui. </para> - + </sect2> + + <sect2 id="cflags"> + <title>Can I provide additional CFLAGS for compilation?</title> <para> - In any case, please keep in mind that you have to build and install - xine-lib first before you can proceed with xine-ui. + Yes, you can do so by setting the CFLAGS variable and then running + <command>configure</command> again. You can even pass them to + <command>configure</command> directly. Example: + <screen> <command>./configure CFLAGS="-march=i686"</command></screen> </para> - - </sect1> - - <sect1 id="cflags"> - - <title> Can I provide additional CFLAGS for compilation? </title> - <para> - Yes, you can do so by setting the CFLAGS variable and then run - configure again. + Other user variables <command>configure</command> respects are: + <itemizedlist> + <listitem> + <para> + <command>CC</command> to specify the compiler executable + </para> + </listitem> + <listitem> + <para> + <command>CPP</command> to specify the C preprocessor executable + </para> + </listitem> + <listitem> + <para> + <command>LD</command> to specify the linker executable + </para> + </listitem> + <listitem> + <para> + <command>CPPFLAGS</command> to pass additional include paths or other + preprocessor options + </para> + </listitem> + <listitem> + <para> + <command>LDFLAGS</command> to pass additional library paths or other + linker options + </para> + </listitem> + </itemizedlist> </para> - <para> - This can be useful to specify additional include paths or library paths - to the compiler. + An example combining some of these would look like: + <screen> <command>./configure CC="/opt/intel/bin/icc" LD="/opt/intel/bin/xild" CPPFLAGS="-I/usr/local/include/dvdnav" LDFLAGS="-L/home/guenter/xine_libs"</command></screen> </para> + </sect2> + <sect2 id="athlonflags"> + <title>Are there binaries for my AMD K7 (Athlon™) available? Can I build them?</title> <para> - Example: <command> export CFLAGS="-I/usr/include -L/home/guenter/xine_libs" </command> + If you have a recent gcc you can try to compile "more" k7 support in (esp. + better instruction scheduling). If the configure script should fail to + detect your processor/gcc correctly, try passing the canonical system name for + your machine to configure with the <command>--host</command> option, e.g. + <screen> <command>./configure --host=k7-pc-linux-gnu</command></screen> </para> + </sect2> - </sect1> - - <sect1 id="athlonflags"> + <sect2> + <title>Build problems: xine engine (xine-lib)</title> + <sect3 id="doesntcompile"> + <title>The package doesn't compile at all!</title> + <para> + In order to be able to compile xine-lib, you need (amongst other things) + the zlib compression library plus the appropriate headers, which are + often found in a package called zlib-devel or similar. + </para> + <para> + Read again carefully the output <command>./configure</command> + produced and/or compiler warnings and error reports, they often contain + helpful information to find out what's going on. If you're stuck here + and decide to post your problem on the xine-user mailing list, + make sure you include these outputs. + </para> + </sect3> + <sect3 id="xvpluginfailstobuild"> + <title>The Xv video-out plugin fails to compile!</title> + <para> + If you want to have Xv support compiled in, make sure you either have + a shared Xv library on your system, e.g. + <command>ls /usr/X11R6/lib/libXv*</command> + should give you some .so libs, like this: + <screen> + /usr/X11R6/lib/libXv.a + /usr/X11R6/lib/libXv.so + /usr/X11R6/lib/libXv.so.1</screen> + </para> + <para> + Alternatively you need to have libtool 1.4 or newer installed, then + libXv.a is sufficient. Otherwise you can create the shared versions yourself: + <screen> + <command>ld --whole-archive -shared -o libXv.so.1 libXv.a</command> + <command>ln -s libXv.so.1 libXv.so</command> + <command>ldconfig</command></screen> + </para> + <para> + Now you should be ready to build the Xv video-out plugin on your system. + </para> + </sect3> + </sect2> - <title> Are there binaries for my AMD K7 (Athlon (TM) ) available? Can I build them? </title> + <sect2> + <title>Build problems in frontends (gxine/xine-ui/...)</title> + <sect3 id="xinelibnotfound"> + <title>I have installed xine-lib but the frontend complains about not finding it!</title> + <para> + First of all take a closer look at the compilation instructions above again. + You will probably find your answer there right away. + </para> + <para> + As stated there (there again that hint *grin*), make sure that you + have <filename>$prefix/bin</filename> in your path and that your + linker is able to find libraries installed in <filename>$prefix/lib</filename> + By the way, $prefix is where you installed your xine-lib to earlier + (yes, installing xine-lib with <command>make install</command> would be a good + idea before trying to compile the frontend ;) ). + </para> + </sect3> + </sect2> + <sect2 id="nonrootbuild"> + <title>Can I install xine in my home directory (without being root)?</title> <para> - If you have a recent gcc you can try to compile "more" k7 support in (esp. - better instruction scheduling). If the configure script should fail to - detect your processor/gcc correctly, try setting the xine_BUILD envvar - explicitly to a valid description string for your configuration, e.g. + Sure. First set up a subdir where you install your private software, eg. + <screen> <command>mkdir ~/xine</command></screen> </para> - - <programlisting> - export xine_BUILD=k7-pc-linux-gnu - rm -f config.cache - ./autogen.sh - make - make install - </programlisting> - - </sect1> - - <sect1> - - <title> Build problems: xine engine (xine-lib) </title> - - <sect2 id="doesntcompile"> - - <title> The package doesn't compile at all! </title> - - <para> - In order to be able to compile xine-lib, you need (amongst other things) - the zlib compression library plus the appropriate headers, which are - often found in a package called zlib-devel or similar. - </para> - - <para> - Read again carefully the output <command>./configure</command> - produced and/or compiler warnings and error reports, they often contain - helpfull information to find out what's going on. If you're stuck here - and decide to post your problem on the xine-user mailing list, - make sure you include these outputs. - </para> - - </sect2> - <sect2 id="xvpluginfailstobuild"> - - <title> The Xv video-out plugin fails to compile! </title> - - <para> - If you want to have Xv support compiled in, make sure you either have - a shared Xv library on your system, e.g. - <command> ls /usr/X11R6/lib/libXv* </command> - should give you some .so libs, like this: - <programlisting> - /usr/X11R6/lib/libXv.a - /usr/X11R6/lib/libXv.so - /usr/X11R6/lib/libXv.so.1 - </programlisting> - </para> - - <para> - Alternatively you need to have libtool 1.4 or newer installed, then - libXv.a is sufficient. Otherwise you can create the shared versions yourself: - <programlisting> - ld --whole-archive -shared -o libXv.so.1 libXv.a - ln -s libXv.so.1 libXv.so - ldconfig - </programlisting> - </para> - - <para> - Now you should be ready to build the Xv video-out plugin on your system. - </para> - - </sect2> - - </sect1> - - <sect1> - - <title> Build problems: frontend (gxine/xine-ui/...) </title> - - <sect2 id="xinelibnotfound"> - - <title> I have installed xine-lib but the frontend complains about not finding it!</title> - - <para> - First of all take a closer look at the compilation instructions above again. - You will probably find your answer there right away. - </para> - - <para> - As stated there (there again that hint *grin*), make sure that you - have <filename> $prefix/bin </filename> in your path and that your - linker is able to find - libraries installed in <filename>$prefix/lib</filename> (by the way, $prefix is where you - installed your xine-lib to earlier (yes, installing xine-lib with - <command> make install </command> would be a good idea before trying to compile - the frontend ;)). - </para> - - </sect2> - </sect1> - - <sect1 id="nonrootbuild"> - - <title> Can I install xine in my home directory (without being root) ? </title> - <para> - yes. first set up a subdir where you install your private software, eg + Then you have to set a few environment variables - it's probably a good + idea to add this to your <filename>~/.bashrc</filename> (or somewhere similar): + <screen> + <command>export PATH="$HOME/xine/bin:$PATH"</command> + <command>export LD_LIBRARY_PATH="$HOME/xine/lib:$LD_LIBRARY_PATH"</command></screen> </para> - <programlisting> - $ mkdir ~/usr - </programlisting> <para> - then you have to set a few environment variables - it's probably a good - idea to add this to your <filename> ~/.bashrc </filename> (or somewhere similar): + Now you can unpack tarballs e.g. in <filename>~/xine/src</filename> + (<command>mkdir ~/xine/src</command> if necessary) and do a + <screen> + <command>./configure --prefix=$HOME/xine</command> + <command>make install</command></screen> </para> - <programlisting> - export PATH="$HOME/usr/bin:$PATH" - export LD_LIBRARY_PATH="$HOME/usr/lib:$LD_LIBRARY_PATH" - export CFLAGS="-I$HOME/usr/include -L$HOME/usr/lib -O3" - export ACLOCAL_FLAGS="-I $HOME/usr/share/aclocal" - </programlisting> <para> - now you can unpack tarballs e.g. in <filename>~/usr/src</filename> - (<command>mkdir ~/usr/src</command> if necessary) and do a + You also need to tell frontends using xine-lib, where to find it: + <screen> <command>./configure --prefix=$HOME/xine --with-xine-prefix=$HOME/xine</command></screen> </para> - <programlisting> - $ ./configure --prefix=$HOME/usr - $ make install - </programlisting> - </sect1> - -</chapter> - -<chapter id="playback"> - - <title>Playback of various stream types</title> - - <sect1> - - <title>DVD Playback with xine</title> - - <sect2 id="dvdplayback"> - - <title>How do I play back DVDs with xine?</title> - - <para> - Newer xine (1.0.x) releases come with a full-featured - DVD plugin that should be able to handle any unencrypted, - non-locked DVD with full menu navigation support. No external - plugins are required anymore here. - </para> - - <para> - To get DVD playback working, first make sure you have - a symlink <filename>/dev/dvd</filename> pointing to your - DVD device on your system. For example, if your DVD drive - is the master ide drive on the second IDE channel, - <filename>/dev/dvd</filename> should point to - <filename>/dev/hdc</filename>. Please note that if you - are using the ide-scsi emulation on your system, it is - likely that you dvd drive got mapped to a scsi device - node even though it is an ide drive. In that case first - check out you boot/kernel logs (or run <command> cdrecord -scanbus </command>) - to find out which device it got mapped to and set the - symlink accordingly (should be something like <filename>/dev/scd0</filename>, - <filename>/dev/scd1</filename>, ... in that case). - Also make sure you (as a user) have sufficient (read) permissions - on your dvd drive (this could mean you either have to change the device - permissions or add your user to a special group - (e.g. <command>addgroup cdrom username</command>), - depending on your setup and/or distribution. - </para> - - <para> - It is highly recommended to switch DMA mode on for your DVD drive - (without it even very recent machines will have trouble producing - smooth video output). Use a command like - <command>hdparm -d 1 device</command> - on your dvd device. Please note that even if you're using ide-scsi - you will have to set the dma flag on the ide device node (e.g. - <filename>/dev/hdc</filename>), not the mapped <filename>/dev/scd</filename> - scsi device. - </para> - - <para> - To be able to play back encrypted dvds you need to have - libdvdcss installed on your system (please check if this is legal where - you live). - </para> - - <para> - Newer (post-2000) dvd drives (so-called RPC-2 drives) check the dvd - region, which means they'll prevent you from playing back dvds that have - a different region code from what the drive is set up for (most drives - come with a factory setting of region 0 so they can only play back - region 0 dvds and there are not many of those available). The easiest - way to handle this is to use the regionset utility from - <ulink url="http://www.linuxtv.org/download/dvd/dvd_disc_20000215.tar.gz"> - http://www.linuxtv.org/download/dvd/dvd_disc_20000215.tar.gz</ulink>. - </para> - - <para> - Once you have everything set up, try something like - <command> gxine dvd:// </command> or <command> xine -p dvd:// </command> - to start dvd playback. Some frontend also offer so-called autoplay - buttons or menu entries that start dvd playback immediately. - </para> - - <para> - Important: do not try to mount the DVD. Just insert it and hit the DVD autoplay - button or start xine from the command line. - </para> - - <para> - If things do not work as expected, try running the <command> xine-check </command> - shellscript that comes with libxine to see if this gives you further hints on - what could be wrong. - </para> - - </sect2> - - <sect2 id="dvdlongwait"> - <title> DVD playback works, but it takes a long time until playback starts </title> - <para> - This points to a region code problem. Some versions of libdvdcss can play - back DVDs from other regions than the RPC-2 DVD drive is set up for, - but this usually means a cryptographic attack (which takes time) has - to be used to access the DVD. - </para> - - <para> - You can download a tool to set the region code of RPC-Drives here: - <ulink url="http://linuxtv.org/download/dvd/dvd_disc_20000215_css.tar.gz"> - http://linuxtv.org/download/dvd/dvd_disc_20000215_css.tar.gz - </ulink> - </para> - - <para> - Warning: Please be aware that the number of region code changes in RPC-2 - drives is limited (usually about 5 times), after that your drive will - stay locked to the region you last set it up for. - </para> - </sect2> - - <sect2 id="regionset"> - <title> I have problems setting up my RPC-2 drive for the right region! </title> - <para> - You can download a tool to set the region code of RPC-Drives here: - <ulink url="http://linuxtv.org/download/dvd/dvd_disc_20000215_css.tar.gz"> - http://linuxtv.org/download/dvd/dvd_disc_20000215_css.tar.gz - </ulink> - </para> + </sect2> - <para> - Warning: Please be aware that the number of region code changes in RPC-2 - drives is limited (usually about 5 times), after that your drive will - stay locked to the region you last set it up for. - </para> - </sect2> </sect1> - <sect1 id="vcdsupport"> + <sect1 id="playback"> + <title>Playback of various stream types</title> - <title> Can I watch Video CDs (VCDs)? SVCDS ? CD-i?</title> + <sect2> + <title>DVD Playback with xine</title> + <sect3 id="dvdplayback"> + <title>How do I play back DVDs with xine?</title> + <para> + Newer xine (1.0.x) releases come with a full-featured + DVD plugin that should be able to handle any unencrypted, + non-locked DVD with full menu navigation support. No external + plugins are required anymore here. + </para> + <para> + To get DVD playback working, first make sure you have + a symlink <filename>/dev/dvd</filename> pointing to your + DVD device on your system. For example, if your DVD drive + is the master ide drive on the second IDE channel, + <filename>/dev/dvd</filename> should point to + <filename>/dev/hdc</filename>. Please note that if you + are using the ide-scsi emulation on your system, it is + likely that your DVD drive got mapped to a scsi device + node even though it is an ide drive. In that case first + check out you boot/kernel logs (or run <command>cdrecord -scanbus</command>) + to find out which device it got mapped to and set the + symlink accordingly (should be something like <filename>/dev/scd0</filename>, + <filename>/dev/scd1</filename>, ... in that case). + Also make sure you (as a user) have sufficient (read and write) permissions + on your DVD drive. This could mean you either have to change the device + permissions or add your user to a special group + (e.g. <command>addgroup cdrom username</command>), + depending on your setup and/or distribution. + </para> + <para> + It is highly recommended to switch DMA mode on for your DVD drive + (without it even very recent machines will have trouble producing + smooth video output). Use a command like + <command>hdparm -d 1 <device></command> + on your DVD device. Please note that even if you're using ide-scsi + you will have to set the dma flag on the ide device node (e.g. + <filename>/dev/hdc</filename>), not the mapped <filename>/dev/scd</filename> + scsi device. + </para> + <para> + To be able to play back encrypted DVDs you need to have + libdvdcss installed on your system (please check if this is legal where + you live). If you do not understand what the term "encrypted DVD" means + here: As a rule of thumb, every DVD you have to pay money for is most + likely encrypted. + </para> + <para> + To make matters worse, apart from encryption, there is another obstacle + to take: the region code. The DVD authorities decided to divide the world + into eight geographical regions. Have a look at + <ulink url="http://www.dvdforum.gr.jp/RegionMap.pdf">http://www.dvdforum.gr.jp/RegionMap.pdf</ulink> + if you want to know which number has been assigned to your country. It is + now their idea, that you shall only play DVDs, which have been produced + for your region. If you take a DVD off the shelf in your local store, + you should find a little globe-like icon which shows the region code the + disc is for. + </para> + <para> + Newer (post-2000) DVD drives (so-called RPC-2 drives) check the DVD + region, which means they'll prevent you from playing back DVDs that have + a different region code from what the drive is set up for. Some drives + come with a factory setting of region 0 so they can play back + any DVD until a region code is set. Others refuse to play any DVD at all + until they are told a region. The easiest way to handle this is to use + the regionset utility from + <ulink url="http://sourceforge.net/project/showfiles.php?group_id=31346&release_id=168415"> + http://sourceforge.net/project/showfiles.php?group_id=31346&release_id=168415 + </ulink>. + </para> + <para> + Once you have everything set up, try something like + <command>gxine dvd:/</command> or <command>xine -p dvd:/</command> + to start dvd playback. Some frontend also offer so-called autoplay + buttons or menu entries that start dvd playback immediately. + </para> + <para> + Important: do not try to mount the DVD. Just insert it and hit the DVD autoplay + button or start xine from the command line. + </para> + <para> + If things do not work as expected, try running the <command>xine-check</command> + shellscript that comes with xine to see if this gives you further hints on + what could be wrong. + </para> + </sect3> + <sect3 id="dvdlongwait"> + <title>DVD playback works, but it takes a long time until playback starts</title> + <para> + This points to a region code problem. Some versions of libdvdcss can play + back DVDs from other regions than the RPC-2 DVD drive is set up for, + but this usually means a cryptographic attack (which takes time) has + to be used to access the DVD. + </para> + <para> + You can download a tool to set the region code of RPC-Drives here: + <ulink url="http://sourceforge.net/project/showfiles.php?group_id=31346&release_id=168415"> + http://sourceforge.net/project/showfiles.php?group_id=31346&release_id=168415 + </ulink>. + </para> + <para> + Warning: Please be aware that the number of region code changes in RPC-2 + drives is limited (usually about 5 times), after that your drive will + stay locked to the region you last set it up for. + </para> + </sect3> + <sect3 id="regionset"> + <title>I have problems setting up my RPC-2 drive for the right region!</title> + <para> + You can download a tool to set the region code of RPC-Drives here: + <ulink url="http://sourceforge.net/project/showfiles.php?group_id=31346&release_id=168415"> + http://sourceforge.net/project/showfiles.php?group_id=31346&release_id=168415 + </ulink>. + </para> + <para> + Warning: Please be aware that the number of region code changes in RPC-2 + drives is limited (usually about 5 times), after that your drive will + stay locked to the region you last set it up for. + </para> + </sect3> + </sect2> + <sect2 id="vcdsupport"> + <title>Can I watch Video CDs (VCDs)? SVCDS ? CD-i?</title> <para> - xine supports VCD and SVCD playback out-of-the box. Similar to DVDs, - make sure you have a <filename>/dev/cdrom</filename> alias pointing - to your CDROM drive which you will use to play back the (S)VCD. + xine supports VCD and SVCD playback out-of-the box. Similar to DVDs, + make sure you have a <filename>/dev/cdrom</filename> alias pointing + to your CDROM drive which you will use to play back the (S)VCD. </para> - <para> - At the moment, CD-i formats are not supported by xine. + At the moment, CD-i formats are not supported by xine. </para> - <para> - Do not try to mount the (S)VCD. Simply insert it into your CDROM drive - and hit the VCD autoplay button or start something like - <programlisting> - gxine VCD:// - </programlisting> - from the command line. + Do not try to mount the (S)VCD. Simply insert it into your CDROM drive + and hit the VCD autoplay button or start something like + <command>gxine vcd:/</command> or <command>xine vcd:/</command> + from the command line. </para> + </sect2> - </sect1> - - <sect1 id="quicktime"> - - <title> Can I watch Quicktime (.mov, .mp4) files using xine? </title> - + <sect2 id="quicktime"> + <title>Can I watch Quicktime (.mov, .mp4) files using xine?</title> <para> - Quicktime is just a system layer (container format) which can contain various - different audio and video formats. The system layer itself is fully supported - in xine. However, only very few typically used quicktime audio/video codecs - are natively supported yet. Luckily, if you are using a x86 compatible machine - (any recent PC hardware should do) you can install and use the original - Quicktime DLLs and watch most streams (trailers) that can be downloaded from the net. + Quicktime is just a system layer (container format) which can contain various + different audio and video formats. The system layer itself is fully supported + in xine. However, some quicktime audio/video codecs are not natively supported yet. + Luckily, if you are using a x86 compatible machine (any recent PC hardware should do) + you can install and use the original Quicktime DLLs and watch most streams + (trailers) that can be downloaded from the net. </para> - <para> - Possibly the most convenient way to get the Quicktime DLLs is to download - them from the mplayer website - <ulink url="http://www1.mplayerhq.hu/MPlayer/releases/codecs/"> - http://www1.mplayerhq.hu/MPlayer/releases/codecs/</ulink>. - The package is called "QuickTime5 DLLs". Unpack it and move everything you find - inside to <filename>/usr/lib/win32</filename> (actually you can place them - anywhere you want, e.g. someplace in your homedirectory, but then you'll - have to set <parameter>codec.win32_path</parameter> in your - xine config file accordingly). Restart xine then and you should be - able to watch Quicktime trailers. + Possibly the most convenient way to get the Quicktime DLLs is to download + them from the mplayer website + <ulink url="http://www1.mplayerhq.hu/MPlayer/releases/codecs/"> + http://www1.mplayerhq.hu/MPlayer/releases/codecs/ + </ulink>. + The package is called "QuickTime6 DLLs". Unpack it and move everything you find + inside to <filename>/usr/lib/win32</filename> (actually you can place them + anywhere you want, e.g. someplace in your homedirectory, but then you'll + have to set <parameter>codec.win32_path</parameter> in your + xine config file accordingly). Restart xine then and you should be + able to watch Quicktime trailers. </para> + </sect2> - </sect1> - - <sect1> - - <title> Real Network files/streams </title> - - <sect2 id="realfileplayback"> - <title> Can I watch Real (.rm, .ram) files using xine ? </title> - - <para> - The situation with real files and streams is pretty similar to the situation - with Quicktime Streams (see above). Most newer real audio and video formats - are only supported by using binary-only codecs which are available from - real networks but are not included in xine. - </para> - - <para> - One way to get these codecs is to download and install RealPlayer from - RealNetworks, for example in <filename>/usr/local/RealPlayer8</filename> or - <filename>/opt/RealPlayer8</filename>. If you installed it in one of these - places, xine should automatically find and use the real binary codecs. - If it doesn't work, try to find out the exact path to where the real codecs - are installed on your system (look for a file named <filename>rv30.so.6.0</filename> - which should reside in a directory called <filename>Codecs</filename> in the - directory where you have installed RealPlayer in) and set - <parameter>codec.real_codecs_path</parameter> in your xine config file - accordingly. - </para> - - </sect2> - - <sect2 id="realnetworkstreams"> - <title> What about (live) network streams (pnm://, rtsp:// style urls) ? </title> - - <para> - xine supports both pnm and rtsp streaming. However, digging out the actual - pnm/rtsp url can be tricky as they're often packed into heavy JavaScript and - HTML code on most websites. You can either use a combination of your - browser's "save source" function and wget or use a xine browser plugin - (currently the gxine frontend comes with a simple mozilla plugin, - for example). When you decided to dig out the url by hand don't get fooled - by the many redirectors that are often placed around the actual url. - Use wget to download any http://-style urls and use less to look inside - the downloaded .ra/.ram files where you will find the actual pnm/rtsp - url which can be opened using xine. - </para> - - </sect2> - - </sect1> - - <sect1 id="wmv"> - - <title> Can I watch Windows Media (.asf/.wmv) files using xine? </title> + <sect2> + <title>Real Network files/streams</title> + <sect3 id="realfileplayback"> + <title>Can I watch Real (.rm, .ram) files using xine?</title> + <para> + The situation with real files and streams is pretty similar to the situation + with Quicktime Streams (see above). The newer real audio and video formats + are only supported by using binary-only codecs which are available from + real networks but are not included in xine. + </para> + <para> + One way to get these codecs is to download and install RealPlayer from + RealNetworks, for example in <filename>/usr/local/RealPlayer8</filename> or + <filename>/opt/RealPlayer8</filename>. If you installed it in one of these + places, xine should automatically find and use the real binary codecs. + If it doesn't work, try to find out the exact path to where the real codecs + are installed on your system (look for a file named <filename>rv30.so.6.0</filename> + which should reside in a directory called <filename>Codecs</filename> in the + directory where you have installed RealPlayer in) and set + <parameter>codec.real_codecs_path</parameter> in your xine config file + accordingly. + </para> + </sect3> + <sect3 id="realnetworkstreams"> + <title>What about (live) network streams (pnm://, rtsp:// style urls)?</title> + <para> + xine supports both pnm and rtsp streaming. However, digging out the actual + pnm/rtsp url can be tricky as they're often packed into heavy JavaScript and + HTML code on most websites. You can either use a combination of your + browser's "save source" function and wget or use a xine browser plugin + (currently the gxine frontend comes with a simple mozilla plugin, + for example). When you decided to dig out the url by hand don't get fooled + by the many redirectors that are often placed around the actual url. + Use wget to download any http://-style urls and use less to look inside + the downloaded .ra/.ram files where you will find the actual pnm/rtsp + url which can be opened using xine. + </para> + </sect3> + </sect2> + <sect2 id="wmv"> + <title>Can I watch Windows Media (.asf/.wmv/.wma) files using xine?</title> <para> - While the container format (system layer) ASF (wmv is just an alias) - is fully supported in xine, for newer windows media 8 and 9 based streams - you'll need to install windows binary codecs (.DLLs). + While the container format (system layer) ASF (wmv is just an alias) + is fully supported in xine, for newer windows media 9 based streams + you'll need to install windows binary codecs (.DLLs). </para> - <para> - Possibly the most convenient way to get the windows DLLs is to download - them from the mplayer website - <ulink url="http://www1.mplayerhq.hu/MPlayer/releases/codecs/"> - http://www1.mplayerhq.hu/MPlayer/releases/codecs/</ulink>. - The package is called "Win32 Codecpack". Unpack it and move everything you find - inside to <filename>/usr/lib/win32</filename> (actually you can place them - anywhere you want, e.g. someplace in your homedirectory, but then you'll - have to set <parameter>codec.win32_path</parameter> in your - xine config file accordingly). Restart xine then and you should be - able to watch windows media streams. - </para> - - </sect1> - - <sect1 id="dvb"> - - <title> Can I watch Digital TV (Digital Video Broadcast) using xine ? </title> + Possibly the most convenient way to get the windows DLLs is to download + them from the mplayer website + <ulink url="http://www1.mplayerhq.hu/MPlayer/releases/codecs/"> + http://www1.mplayerhq.hu/MPlayer/releases/codecs/ + </ulink>. + The package is called "Win32 Codecpack". Unpack it and move everything you find + inside to <filename>/usr/lib/win32</filename> (actually you can place them + anywhere you want, e.g. someplace in your homedirectory, but then you'll + have to set <parameter>codec.win32_path</parameter> in your + xine config file accordingly). Restart xine then and you should be + able to watch windows media streams. + </para> + </sect2> + <sect2 id="dvb"> + <title>Can I watch Digital TV (Digital Video Broadcast) using xine?</title> <para> - At the time of this writing DVB support is a very new and experimental - feature in xine. The number of supported cards is pretty limited at the moment. - See <filename>doc/README.dvb</filename> (in the xine-lib tarball) for details. + At the time of this writing DVB support is a very new and experimental + feature in xine. The number of supported cards is pretty limited at the moment. + See <filename>doc/README.dvb</filename> (in the xine-lib tarball) for details. </para> + </sect2> - </sect1> - - <sect1 id="stdin"> - + <sect2 id="stdin"> <title>How do I play streams from STDIN?</title> - <para> - Use something like: - <programlisting> - cat stream.mpg | gxine stdin:/ - </programlisting> + Use something like: + <screen> <command>cat stream.mpg | gxine stdin:/</command></screen> </para> - </sect1> - - <sect1 id="avisubtitles"> + </sect2> - <title> How can I watch files with external AVI subtitles?</title> - + <sect2 id="avisubtitles"> + <title>How can I watch files with external AVI subtitles?</title> <para> - In xine 0.9.13 this used to be: - <programlisting> - xine foo.avi%bar.sub - </programlisting> + In xine 0.9.13 this used to be: + <screen> <command>xine foo.avi%bar.sub</command></screen> </para> <para> - Latest xine-lib modules (1-beta3 or newer) support external subtitles - for any media file, not only AVI. In order to use it you can pass an - special MRL construction like: - - <programlisting> - xine test.mpg#subtitle:file.sub - </programlisting> - - The external subtitles support can also be used by any xine - frontend. Currently, just xine-ui implements this feature with a - subtitle selection dialog (press control+shift+s to see it). + Latest xine-lib modules (1-beta3 or newer) support external subtitles + for any media file, not only AVI. In order to use it you can pass a + special MRL construction like: + <screen> <command>xine test.mpg#subtitle:file.sub</command></screen> + The external subtitles support can also be used by any xine + frontend. Currently, just xine-ui implements this feature with a + subtitle selection dialog. </para> - </sect1> - -</chapter> + </sect2> -<chapter id="running"> + </sect1> - <title> Running xine </title> - - <sect1 id="speedup"> + <sect1 id="running"> + <title>Running xine</title> + <sect2 id="speedup"> <title>I have a lot of dropped frames - what can I do?</title> - <para> - Your hardware might be too slow for xine. Make sure you turn on all - speed optimizing options. A few things you should check (in order of - importance): - - <itemizedlist> - <listitem> - <para> - First of all, run the <command>xine-check</command> script included in xine-lib - package (probably already installed in your system). - <command>xine-check</command> will report several of the most common problems - listed here. Sample output from xine-check: - <programlisting> - $ xine-check - Please be patient, this script may take a while to run... - [ good ] you're using Linux, doing specific tests - [ good ] looks like you have a /proc filesystem mounted. - [ good ] You seem to have a reasonable kernel version (2.4.18) - [ good ] intel compatible processor, checking MTRR support - [ good ] you have MTRR support and there are some ranges set. - [ good ] found the player at /usr/local/bin/xine - [ good ] /usr/local/bin/xine is in your PATH - [ good ] found /usr/local/bin/xine-config in your PATH - [ good ] plugin directory /usr/local/lib/xine/plugins exists. - [ good ] found input plugins - [ good ] found demux plugins - [ good ] found decoder plugins - [ good ] found video_out plugins - [ good ] found audio_out plugins - [ good ] skin directory /usr/local/share/xine/skins exists. - [ good ] found logo in /usr/local/share/xine/skins - [ good ] I even found some skins. - [ good ] /dev/cdrom points to /dev/hdc - [ good ] /dev/dvd points to /dev/hdc - [ good ] DMA is enabled for your DVD drive - [ good ] found xvinfo: X-Video Extension version 2.2 - [ good ] your Xv extension supports YUV overlays (improves MPEG performance) - [ good ] your Xv extension supports packed YUV overlays - [ good ] Xv ports: YUY2 YV12 I420 UYVY - </programlisting> - </para> - </listitem> - <listitem> - <para> - Try to use the Xv driver, it greatly improves performance and quality - because hardware does image scaling and color conversion. The - <link linkend="video">video section</link> contains important information - about several Xv drivers. - </para> - <para> - If Xv cannot be used for some reason, make sure your display is set up - to 16bpp, not 24 or higher (reduces memory bandwith). Some Xv drivers - may also have better performance with 16bpp. - </para> - </listitem> - <listitem> - <para> - Make sure the hard drive (or cdrom/dvd drive) which supplies the - video data is in DMA mode (if supported) - </para> - <para> - On most linux-based systems, you can use hdparm to check this. - Example: - <programlisting> - hdparm /dev/hda - - ... - using_dma = 1 (on) - ... - </programlisting> - </para> - <para> - You can enable DMA mode with the following command: - <programlisting> - hdparm -d1 device_of_your_drive_that_supplies_video_data - </programlisting> - In some cases where this fails it helps to specify the dma mode - to use, for example: - <programlisting> - hdparm -d1 -X 66 device_of_your_drive_that_supplies_video_data - </programlisting> - In RedHat 8.0 an additional entry in /etc/modules.conf - <programlisting> - options ide-cd dma=1 - </programlisting> - should help (reboot for this change to take effect). - </para> - <para> - More information about this may be found here: - <ulink url="http://oreilly.linux.com/pub/a/linux/2000/06/29/hdparm.html"> - http://oreilly.linux.com/pub/a/linux/2000/06/29/hdparm.html - </ulink> - </para> - </listitem> - <listitem> - <para> - Use a recent kernel which is optimized for your hardware. Old kernels - may lack support for accelerated instructions like SSE, for example. - </para> - </listitem> - <listitem> - <para> - Close other applications (use a tool like "top" to find out - what applications are using up CPU power). Programs that update the - system clock like ntp should also be disabled. - </para> - </listitem> - <listitem> - <para> - Enable MTRR support in your kernel. If you are still using XFree 3.x, - you'll have to tell the kernel yourself where the graphics memory is. - You'll find details about that in the linux dvd howto. - </para> - <para> - If you're using XFree 4.x, enabling MTRR support in your kernel should - be enough (use a recent kernel!). - </para> - <para> - Try a <command> cat /proc/mtrr </command> - if the file exists and you find an entry - corresponding to the amount of graphics memory you have, everything - should be fine. - </para> - </listitem> - <listitem> - <para> - Have your X-server (usually XFree86) running with higher priority. - Most recent linux distributions (like RedHat 8.0 or Mandrake 9.0) should - do that for you, improving not only xine but desktop responsiveness - in general. - </para> - <para> - Use the "top" utility and verify under the "NI" column if - the X process has a negative value, this indicates a higher priority. - See "The X Window User HOWTO - Performance considerations" for - further instructions - <ulink url="http://www.tldp.org/HOWTO/XWindow-User-HOWTO/performance.html"> - http://www.tldp.org/HOWTO/XWindow-User-HOWTO/performance.html</ulink> - </para> - </listitem> - <listitem> - <para> - Use the latest or a known-good gcc version. - </para> - </listitem> - <listitem> - <para> - Besides boosting X-server priority, sometimes it's possible to avoid - discarding frames by making xine itself higher priority. This is not - a recommended pratice since it will require to run xine as root, - but you may give it a try if you want: - <programlisting> - nice --5 xine - </programlisting> - </para> - </listitem> - <listitem> - <para> - xine needs high speed memory access which depends on your chip set. - Make sure you enable all speed-improving options. - </para> - <para> - Especially the via apollo pro chipset is known to be quite weird, - (most of all on my gigabyte board). If you can't configure the ram - access thoroughly using the bios you might want to try some really - nasty tricks, as explained on (for example): - </para> - <para> - <ulink url="http://www.overclockers.com/tips105/index03.asp">http://www.overclockers.com/tips105/index03.asp</ulink> - </para> - <para> - This website centers around a windows-tool to tweak the chipset, you - can do the same on FreeBSD with <command>pciconf</command>. - On some linux distributions there are similar tools. - </para> - </listitem> - <listitem> - <para> - a nice performance tuning tool can be found here: - <ulink url="http://powertweak.sourceforge.net">http://powertweak.sourceforge.net</ulink> - </para> - </listitem> - <listitem> - <para> - Set up and use raw devices for dvd access. Please note that - this is usually not worth the effort as the performance gain - from it is very small if any. - </para> - <para> - Raw devices should be available in linux kernel 2.4.x and there are - patches for older kernels available from: - <ulink url="ftp://ftp.kernel.org/pub/linux/kernel/people/sct/raw-io/"> - ftp://ftp.kernel.org/pub/linux/kernel/people/sct/raw-io/ - </ulink> - </para> - <para> - To use raw devices, first connect a free raw device to your dvd - device, use something like: - <programlisting> - raw /dev/raw1 /dev/hdc - </programlisting> - </para> - <para> - then create a link named "rdvd" pointing to that raw device: - <programlisting> - raw /dev/raw1 /dev/hdc - </programlisting> - </para> - </listitem> - <listitem> - <para> - For slow / high-latency dvd drives it might help to increase - the number of video buffers xine allocates. - Try setting - <programlisting> - video.num_buffers:500 - </programlisting> - to a higher value (e.g. 1000 or 2500) - </para> - </listitem> - </itemizedlist> + Your hardware might be too slow for xine. Make sure you turn on all + speed optimizing options. A few things you should check (in order of + importance): + <itemizedlist> + <listitem> + <para> + First of all, run the <command>xine-check</command> script included in xine + package (probably already installed in your system). + <command>xine-check</command> will report several of the most common problems + listed here. Sample output from xine-check: + <screen> + <command>xine-check</command> + Please be patient, this script may take a while to run... + [ good ] you're using Linux, doing specific tests + [ good ] looks like you have a /proc filesystem mounted. + [ good ] You seem to have a reasonable kernel version (2.4.18) + [ good ] intel compatible processor, checking MTRR support + [ good ] you have MTRR support and there are some ranges set. + [ good ] found the player at /usr/local/bin/xine + [ good ] /usr/local/bin/xine is in your PATH + [ good ] found /usr/local/bin/xine-config in your PATH + [ good ] plugin directory /usr/local/lib/xine/plugins exists. + [ good ] found input plugins + [ good ] found demux plugins + [ good ] found decoder plugins + [ good ] found video_out plugins + [ good ] found audio_out plugins + [ good ] skin directory /usr/local/share/xine/skins exists. + [ good ] found logo in /usr/local/share/xine/skins + [ good ] I even found some skins. + [ good ] /dev/cdrom points to /dev/hdc + [ good ] /dev/dvd points to /dev/hdc + [ good ] DMA is enabled for your DVD drive + [ good ] found xvinfo: X-Video Extension version 2.2 + [ good ] your Xv extension supports YUV overlays (improves MPEG performance) + [ good ] your Xv extension supports packed YUV overlays + [ good ] Xv ports: YUY2 YV12 I420 UYVY</screen> + </para> + </listitem> + <listitem> + <para> + Try to use the Xv driver, it greatly improves performance and quality + because your graphics card does image scaling and colorspace conversion. The + <link linkend="video">video section</link> contains important information + about several Xv drivers. + </para> + <para> + If Xv cannot be used for some reason, make sure your display is set up + to 16bpp, not 24 or higher (reduces memory bandwith). Some Xv drivers + may also have better performance with 16bpp. + </para> + </listitem> + <listitem> + <para> + Make sure the hard drive (or cdrom/dvd drive) which supplies the + video data is in DMA mode (if supported). + </para> + <para> + On most linux-based systems, you can use hdparm to check this: + <screen> + <command>hdparm /dev/hda</command> + [...] + using_dma = 1 (on) + [...]</screen> + </para> + <para> + You can enable DMA mode with the following command: + <screen> <command>hdparm -d1 device_of_your_drive_that_supplies_video_data</command></screen> + In some cases where this fails it helps to specify the dma mode + to use, for example: + <screen> <command>hdparm -d1 -X 66 device_of_your_drive_that_supplies_video_data</command></screen> + In RedHat 8.0 an additional entry in /etc/modules.conf + <screen> options ide-cd dma=1</screen> + should help (reboot for this change to take effect). + </para> + <para> + More information about this may be found here: + <ulink url="http://oreilly.linux.com/pub/a/linux/2000/06/29/hdparm.html"> + http://oreilly.linux.com/pub/a/linux/2000/06/29/hdparm.html + </ulink>. + </para> + </listitem> + <listitem> + <para> + Use a recent kernel which is optimized for your hardware. Old kernels + may lack support for accelerated instructions like SSE, for example. + </para> + </listitem> + <listitem> + <para> + Close other applications (use a tool like "top" to find out + what applications are using up CPU power). Programs that update the + system clock like ntp should also be disabled. + </para> + </listitem> + <listitem> + <para> + Enable MTRR support in your kernel. If you are still using XFree 3.x, + you'll have to tell the kernel yourself where the graphics memory is. + You'll find details about that in the linux dvd howto. + </para> + <para> + If you're using XFree 4.x, enabling MTRR support in your kernel should + be enough (use a recent kernel!). + </para> + <para> + Try a <command>cat /proc/mtrr</command> - if the file exists and you find an entry + corresponding to the amount of graphics memory you have, everything + should be fine. + </para> + </listitem> + <listitem> + <para> + Have your X-server (usually XFree86) running with higher priority. + Most recent linux distributions (like RedHat 8.0 or Mandrake 9.0) should + do that for you, improving not only xine but desktop responsiveness + in general. + </para> + <para> + Use the "top" utility and verify under the "NI" column if + the X process has a negative value, this indicates a higher priority. + See "The X Window User HOWTO - Performance considerations" for + further instructions + <ulink url="http://www.tldp.org/HOWTO/XWindow-User-HOWTO/performance.html"> + http://www.tldp.org/HOWTO/XWindow-User-HOWTO/performance.html + </ulink>. + </para> + </listitem> + <listitem> + <para> + Use the latest or a known-good gcc version and build an optimized xine-lib for + your architecture. + </para> + </listitem> + <listitem> + <para> + Besides boosting X-server priority, sometimes it's possible to avoid + discarding frames by making xine itself higher priority. This is not + a recommended pratice since it will require to run xine as root, + but you may give it a try if you want: + <screen> <command>nice --5 xine</command></screen> + </para> + </listitem> + <listitem> + <para> + xine needs high speed memory access which depends on your chip set. + Make sure you enable all speed-improving options. + </para> + <para> + Especially the via apollo pro chipset is known to be quite weird, + (most of all on my gigabyte board). If you can't configure the ram + access thoroughly using the bios you might want to try some really + nasty tricks, as explained on (for example): + <ulink url="http://www.overclockers.com/tips105/index03.asp"> + http://www.overclockers.com/tips105/index03.asp + </ulink> + </para> + <para> + This website centers around a windows-tool to tweak the chipset, you + can do the same on FreeBSD with <command>pciconf</command>. + On some linux distributions there are similar tools. + </para> + </listitem> + <listitem> + <para> + a nice performance tuning tool can be found here: + <ulink url="http://powertweak.sourceforge.net">http://powertweak.sourceforge.net</ulink> + </para> + </listitem> + <listitem> + <para> + Set up and use raw devices for DVD access. Please note that the + actual performance gain during playback is very small if any, but + since raw devices are bypassing the kernel's buffer cache, Linux + will not try to cache the DVDs you play. This would not be useful, + because xine does its own caching and you usually play DVDs + sequentially, which means you won't reuse anything from the cache. + But the problem would be that Linux throws everything out of the + cache that might be in there. + </para> + <para> + Raw devices should be available in linux kernel 2.4.x and there are + patches for older kernels available from: + <ulink url="ftp://ftp.kernel.org/pub/linux/kernel/people/sct/raw-io/"> + ftp://ftp.kernel.org/pub/linux/kernel/people/sct/raw-io/ + </ulink> + </para> + <para> + To use raw devices, first connect a free raw device to your dvd + device, use something like: + <screen> <command>raw /dev/raw1 /dev/dvd</command></screen> + </para> + <para> + Then create a link named "rdvd" pointing to that raw device: + <screen> <command>ln -s raw1 /dev/rdvd</command></screen> + </para> + </listitem> + <listitem> + <para> + For slow / high-latency dvd drives it might help to increase + the number of video buffers xine allocates. Try setting + <parameter>video.num_buffers:500</parameter> + to a higher value (e.g. 1000 or 2500). + </para> + </listitem> + </itemizedlist> </para> + </sect2> - </sect1> - <sect1 id="smoothness"> - - <title>Oki, xine doesn't drop frames now but video output still is not really smooth</title> - + <sect2 id="smoothness"> + <title>Oki, xine doesn't drop frames now but video output still is not really smooth!</title> <para> - video output can be further improved by tuning your linux kernel: - <itemizedlist> - <listitem> - <para> - set HZ to 1000 in - <filename> /usr/src/linux/include/asm-i386/param.h </filename> - </para> - </listitem> - <listitem> - <para> - try applying scheduler patches, especially the O(1) and the preemptive - patches have proven useful at the time of this writing (spring 2003). - </para> - </listitem> - </itemizedlist> - linux 2.5/2.6 will probably have these improvements out of the box. + Video output can be further improved by tuning your linux kernel: + <itemizedlist> + <listitem> + <para> + Set HZ to 1000 in + <filename>/usr/src/linux/include/asm-i386/param.h</filename> + </para> + </listitem> + <listitem> + <para> + Try applying scheduler patches, especially the O(1) and the preemptive + patches have proven useful at the time of this writing (spring 2003). + </para> + </listitem> + </itemizedlist> + Linux 2.5/2.6 will probably have these improvements out of the box. </para> - <para> - Miguel Freitas has written a nice article about his kernel multimedia experiments - <ulink url="http://cambuca.ldhs.cetuc.puc-rio.br/~miguel/multimedia_sim/">here</ulink>. + Miguel Freitas has written a nice + <ulink url="http://cambuca.ldhs.cetuc.puc-rio.br/~miguel/multimedia_sim/"> + article about his kernel multimedia experiments + </ulink>. </para> + </sect2> - </sect1> - - <sect1 id="ports"> - + <sect2 id="ports"> <title>I have problems when using xine on FreeBSD, Solaris, ... !</title> - <para> - Check out the the corresponding README files in the directory <filename>xine-lib/doc</filename> + Check out the the corresponding README files in the directory <filename>xine-lib/doc</filename>. </para> - </sect1 - - <sect1 id="aaxine"> + </sect2> - <title> What is aalib? How do I use it in xine? </title> - + <sect2 id="aaxine"> + <title>What is aalib? How do I use it in xine?</title> <para> - aalib is an ascii art library. xine comes with an aalib video output - plugin so you can watch movies in your xterm, on the console or on your - old vt100 - very cool ;> ... another nice option is to preview movies - on a remote server in your shell over ssh. + aalib is an ascii art library. xine comes with an aalib video output + plugin so you can watch movies in your xterm, on the console or on your + old vt100 - very cool ;> ... another nice option is to preview movies + on a remote server in your shell over ssh. </para> <para> - To use it make sure you have aalib installed correctly before you - configure/build xine-lib and xine-ui. In addition to the <command>xine</command> binary a - binary named <command>aaxine</command> should get built and installed. You can then use - something like: - <programlisting> - aaxine foo.mpg - </programlisting> - to use aalib video output. + To use it make sure you have aalib installed correctly before you + configure/build xine-lib and xine-ui. In addition to the <command>xine</command> binary a + binary named <command>aaxine</command> should get built and installed. You can then use + something like: + <screen> <command>aaxine foo.mpg</command></screen> + to use aalib video output. </para> - </sect1> - - <sect1 id="configoptions"> + </sect2> + <sect2 id="configoptions"> <title>What do all these <filename>~/.xine/config</filename> (<filename>~/.gxine/config</filename>) entries mean?</title> - <para> - You can find information about them in - <filename>xine-lib/doc/README.config_en</filename>. - Frontends may register additional config entries, you may find out more about - them in their documentation. Also the comments in the config file might - help. + You can find information about them in + <filename>xine-lib/doc/README.config_en</filename>. + Frontends may register additional config entries, you may find out more about + them in their documentation. Also the comments in the config file might + help. </para> - </sect1> + </sect2> - <sect1 id="dxr3"> - <title> Does xine support my dxr3 / hollywood+ card? </title> + <sect2 id="dxr3"> + <title>Does xine support my dxr3 / hollywood+ card?</title> <para> - while xine's focus is clearly on software decoding, - the dxr3 is supported. + While xine's focus is clearly on software decoding, the dxr3 is supported. </para> <para> - you can find more information about using xine with the dxr3 - <ulink url="http://www.amalthea.de/xine/">here</ulink> - (also covers how to do tv output using the dxr3). + You can find more information about using xine with the dxr3 + <ulink url="http://www.amalthea.de/xine/">here</ulink> + (also covers how to do tv output using the dxr3). </para> - </sect1> - -</chapter> + </sect2> -<chapter id="audio"> + </sect1> - <title> Audio related questions </title> - - <sect1 id="audiodrivers"> + <sect1 id="audio"> + <title>Audio related questions</title> + <sect2 id="audiodrivers"> <title>What audio drivers does xine support? OSS? Alsa? Arts? Esd?</title> - <para> - Currently xine support audio output via OSS (kernel audio drivers), - ALSA 0.9.x (ALSA 0.5.x is no longer supported), arts (KDE's sound daemon) - and esound (esd, gnome's sound daemon - not recommended because it has - serious issues with a/v sync). + Currently xine support audio output via OSS (kernel audio drivers), + ALSA 0.9.x (ALSA 0.5.x is no longer supported), arts (KDE's sound daemon) + and esound (esd, gnome's sound daemon - not recommended because it has + serious issues with a/v sync). </para> - </sect1> + </sect2> - <sect1 id="compressor"> - - <title> When I'm watching a movie, the sound effects are much higher volume than the voices</title> - + <sect2 id="compressor"> + <title>When I'm watching a movie, the sound effects are much higher in volume than the voices!</title> <para> - Congratulations, you seem to have an original movie audio track there. + Congratulations, you seem to have an original movie audio track there. </para> <para> - Uhm. So you don't like it. Well, there are two things you can do: - - <itemizedlist> - <listitem> - <para> - You can enable xine's audio compressor. Most frontends have - a settings window and in that you'll find a slider for the - compressor setting. The values are percent values, so a - slider setting of 200 means that xine will double the volume - of silent parts of the movie (loud parts stay the same). - </para> - </listitem> - <listitem> - <para> - If you have a dolby digital (AC3) soundtrack, you can try - to enable liba52's dynamic range compression setting - <programlisting> - codec.a52_dynrng:1 - </programlisting> - in your xine config file (or use some gui config dialog). - </para> - </listitem> - </itemizedlist> - + Uhm. So you don't like it. Well, there are two things you can do: + <itemizedlist> + <listitem> + <para> + You can enable xine's audio compressor. Most frontends have + a settings window and in that you'll find a slider for the + compressor setting. The values are percent values, so a + slider setting of 200 means that xine will double the volume + of silent parts of the movie (loud parts stay the same). + </para> + <para> + If your frontend does not have such a compression slider, + you can pass the value with the MRL: + <screen> <command>xine dvd:/#compression:150</command></screen> + </para> + </listitem> + <listitem> + <para> + If you have a dolby digital (AC3) soundtrack, you can try + to enable liba52's dynamic range compression setting + <parameter>codec.a52_dynrng:1</parameter> + in your xine config file (or use some gui config dialog). + </para> + </listitem> + </itemizedlist> </para> - </sect1> - <sect1 id="noaudio"> + </sect2> - <title> When I play this stream, xine shows video but there's no audio!</title> - + <sect2 id="noaudio"> + <title>When I play this stream, xine shows video but there's no audio!</title> <para> - Well, first try a different audio driver (<command> gxine -A oss </command>, - <command> gxine -A arts </command>, <command> xine -A alsa </command> ...). + If this happens with any video, first try a different audio driver + (<command>gxine -A oss</command>, <command>gxine -A arts</command>, + <command>xine -A alsa</command> ...). </para> <para> - If this problem only occurs with one specific stream, maybe switching to - a different audio channel (using the gui) helps. Some DVD streams have - audio on strange channels. + If this problem only occurs with one specific stream, maybe switching to + a different audio channel (using the gui) helps. Some DVD streams have + audio on strange channels. </para> <para> - If all this doesn't help, maybe you're missing an audio codec or you found - a bug. If you decide to post your problem on the xine-user mailing list, - make sure to include all console output xine produced and also clearly - state what type of stream you tried to play back or, even better, make - a test stream available somewhere for developers to download and try. + If all this doesn't help, maybe you're missing an audio codec or you found + a bug. If you decide to post your problem on the xine-user mailing list, + make sure to include all console output xine produced and also clearly + state what type of stream you tried to play back or, even better, make + a test stream available somewhere for developers to download and try. </para> - </sect1> - <sect1 id="surroundsound"> + </sect2> + <sect2 id="surroundsound"> <title>Can xine produce 4-/5-channel surround audio output?</title> - <para> - Yep, it can do that using OSS or ALSA drivers, provided that the driver - supports it. On startup xine tells you what modes are supported by your - audio driver, e.g: - <programlisting> - audio_alsa_out : supported modes are mono stereo (4-channel not enabled - in xine config) (5-channel not enabled in xine config) (5.1-channel not - enabled in xine config) (a/52 and DTS pass-through not enabled in xine - config) - </programlisting> + Yep, it can do that using OSS or ALSA drivers, provided that the driver + supports it. On startup xine tells you what modes are supported by your + audio driver, e.g: + <screen> audio_alsa_out : supported modes are mono stereo (4-channel not enabled in xine config) (5-channel not enabled in xine config) (5.1-channel not enabled in xine config) (a/52 and DTS pass-through not enabled in xine config)</screen> </para> <para> - On this machine 4-channel surround would be possible. However, since xine - cannot detect if there are actually speakers connected to the additional - channels, you'll have to activate that feature manually. + On this machine 4-channel surround would be possible. However, since xine + cannot detect if there are actually speakers connected to the additional + channels, you'll have to activate that feature manually. </para> <para> - You can do this either in the config dialog while xine is running (press - the config button on the xine panel and go to the AUDIO tab) or have it - the complicated way by editing the config file yourself which is located - in your home directory in <filename>.gxine</filename>/<filename>.xine</filename>: - <programlisting> - # 4-channel: - audio.four_channel:1 - - # 5-channel: - audio.five_channel:1 - - # 5.1-channel - audio.five_lfe_channel:0 - </programlisting> + You can do this either in the config dialog while xine is running (press + the config button on the xine panel and go to the AUDIO tab) or have it + the complicated way by editing the config file yourself which is located + in your home directory in <filename>.gxine</filename> or <filename>.xine</filename>: + <programlisting> + audio.four_channel:1 + audio.five_channel:1 + audio.five_lfe_channel:0</programlisting> </para> - </sect1> - <sect1 id="spdif"> + </sect2> + <sect2 id="spdif"> <title>What about ac3 output via spdif to an external ac3 decoder?</title> - <para> - xine can do that too. Pretty much the same story as for 4-/5-channel - surround (see above). You can either use the config dialog or edit - the config file (<filename>~/.xine/config</filename>/<filename>~/.gxine/config</filename>) - yourself: - <programlisting> - audio.a52_pass_through:1 - </programlisting> + xine can do that too. Pretty much the same story as for 4-/5-channel + surround (see above). You can either use the config dialog or edit + the config file (<filename>~/.xine/config</filename> or <filename>~/.gxine/config</filename>) + yourself: + <programlisting> audio.a52_pass_through:1</programlisting> </para> - </sect1> - <sect1 id="sblivespdif"> - <title>Getting SPDIF output from a SBLive 5.1 using OSS drivers</title> - - <para> - The following explains how to get the above configuration - going with xine. Some parts of it may applicable to other - configurations (cards that use the EMU10k1 chip) as well. - </para> - - <sect2> - - <title> Requirements </title> - - <orderedlist> - <listitem> - <para> xine-lib >= 1.x.x </para> - </listitem> - <listitem> - <para> OSS driver </para> - </listitem> - <listitem> - <para> An external decoder </para> - </listitem> - <listitem> - <para> A cable to connect the SBLive to the external decoder </para> - </listitem> - </orderedlist> - - <para> - The configuration described was tested using the following equipment : - Soundblaster live 5.1 (rev 7) - Yamaha DSP-AX620 external decoder - </para> - </sect2> - <sect2> - <title> The OSS driver is maintained by creative and can be downloaded at - <ulink url="http://opensource.creative.com/"> - http://opensource.creative.com/ </ulink> </title> + </sect2> + <sect2 id="sblivespdif"> + <title>Getting SPDIF output from a SBLive 5.1 using OSS drivers</title> + <para> + The following explains how to get the above configuration + going with xine. Some parts of it may applicable to other + configurations (cards that use the EMU10k1 chip) as well. + </para> + <sect3> + <title>Requirements</title> + <orderedlist> + <listitem> + <para>xine-lib >= 1.x.x</para> + </listitem> + <listitem> + <para>OSS driver</para> + </listitem> + <listitem> + <para>an external decoder</para> + </listitem> + <listitem> + <para>a cable to connect the SBLive to the external decoder</para> + </listitem> + </orderedlist> <para> - The driver package contains documentation on how to install it. - Besides that I'd like to add the following notes. + The configuration described was tested using a Soundblaster live 5.1 (rev 7) + with a Yamaha DSP-AX620 external decoder. </para> - + </sect3> + <sect3> + <title>Retrieving the driver</title> <para> - In order to compile and install these drivers, you need a valid kernel - configuration file. For RedHat Linux's pre-compiled kernels these - configuration files can be found in - <filename>/usr/src/linux/configs</filename> - After you've located the correct config file for your kernel, - you need to copy it to <filename>/usr/src/linux/.config</filename> - For example, when you run the 2.4.18-i686 kernel do : - <programlisting> - cp /usr/src/linux/configs/kernel-2.4.18-i686.config /usr/src/linux/.config - </programlisting> - Make sure that the emu10k1 module that is currently installed is - not loaded. To unload the modules : - <programlisting> - /sbin/modprobe -rv emu10k1.o ac97_codec.o - </programlisting> - - If this mentions that the device is busy, some program is - using the driver. Some example could be a mixer application - or sound daemon like artsd. You'll need to close down the - applications before continuing. - At success it should print something like : - <programlisting> - # delete emu10k1 - # delete ac97_codec - # delete soundcore - </programlisting> - Run make in the directory where you unpacked the driver and follow the - instructions printed at the end of each step. - The last step should be: - <programlisting> - make install-tools - </programlisting> - - As the README of the driver package mentions the SPDIF AC3 - output doesn't work by default. In the directory - <filename>utils/scripts</filename> an <filename>emu10k1.conf</filename> - file can be found which need to be placed in the default - installation directory (<filename>/usr/local/etc</filename>). - After this the <filename>emu10k1.conf</filename> needs to be modified. - The following settings worked fine for me (I don't use the analog - outputs of the card) : - - <programlisting> - CARD_IS_5_1=yes - USE_DIGITAL_OUTPUT=yes - ENABLE_TONE_CONTROL=yes - AC3PASSTHROUGH=yes - ENABLE_LIVEDRIVE_IR=no - INVERT_REAR=no - MULTICHANNEL=yes - ROUTE_ALL_TO_SUB=no - ANALOG_FRONT_BOOST=no - SURROUND=no - PROLOGIC=no - ENABLE_CD_Spdif=yes - ENABLE_OPTICAL_SPDIF=no - ENABLE_LINE2_MIC2=no - ENABLE_RCA_SPDIF=no - ENABLE_RCA_AUX=no - </programlisting> - After modifying the <filename>emu10k1.conf</filename>, - you need to modify your <filename>/etc/modules.conf</filename> and - make sure the following lines are in there. - - <programlisting> - alias sound-slot-0 emu10k1 - post-install emu10k1 /usr/local/etc/emu-script - </programlisting> - - After saving the changes to <filename>modules.conf</filename>, - run - <programlisting> - /sbin/depmod -a - </programlisting> - - Now, you're ready to load the new modules and set the correct - options for it. To load the modules run : - <programlisting> - /sbin/modprobe emu10k1 - </programlisting> + The OSS driver is maintained by creative and can be downloaded at + <ulink url="http://opensource.creative.com/">http://opensource.creative.com/</ulink>. + The driver package contains documentation on how to install it. + Besides that I'd like to add the following notes. </para> - </sect2> - <sect2> - <title> Setting up xine for SPDIF (AC3_passthrough) output </title> - <para> - You can either use the config dialog or edit the config file - (<filename>~/.xine/config2</filename>) yourself: - <programlisting> - audio.a52_pass_through:1 - </programlisting> - In case the setting is not in the file you can add it. + In order to compile and install these drivers, you need a valid kernel + configuration file. For RedHat Linux's pre-compiled kernels these + configuration files can be found in + <filename>/usr/src/linux/configs</filename>. + After you've located the correct config file for your kernel, + you need to copy it to <filename>/usr/src/linux/.config</filename> + For example, when you run the 2.4.18-i686 kernel do : + <screen> <command>cp /usr/src/linux/configs/kernel-2.4.18-i686.config /usr/src/linux/.config</command></screen> + Make sure that the emu10k1 module that is currently installed is + not loaded. To unload the modules: + <screen> <command>/sbin/modprobe -rv emu10k1.o ac97_codec.o</command></screen> + If this mentions that the device is busy, some program is + using the driver. Some example could be a mixer application + or sound daemon like artsd. You'll need to close down the + applications before continuing. + At success it should print something like: + <screen> + # delete emu10k1 + # delete ac97_codec + # delete soundcore</screen> + Run make in the directory where you unpacked the driver and follow the + instructions printed at the end of each step. + The last step should be: + <screen> <command>make install-tools</command></screen> + As the README of the driver package mentions the SPDIF AC3 + output doesn't work by default. In the directory + <filename>utils/scripts</filename> an <filename>emu10k1.conf</filename> + file can be found which need to be placed in the default + installation directory (<filename>/usr/local/etc</filename>). + After this the <filename>emu10k1.conf</filename> needs to be modified. + The following settings worked fine for me (I don't use the analog + outputs of the card): + <programlisting> + CARD_IS_5_1=yes + USE_DIGITAL_OUTPUT=yes + ENABLE_TONE_CONTROL=yes + AC3PASSTHROUGH=yes + ENABLE_LIVEDRIVE_IR=no + INVERT_REAR=no + MULTICHANNEL=yes + ROUTE_ALL_TO_SUB=no + ANALOG_FRONT_BOOST=no + SURROUND=no + PROLOGIC=no + ENABLE_CD_Spdif=yes + ENABLE_OPTICAL_SPDIF=no + ENABLE_LINE2_MIC2=no + ENABLE_RCA_SPDIF=no + ENABLE_RCA_AUX=no</programlisting> + After modifying the <filename>emu10k1.conf</filename>, + you need to modify your <filename>/etc/modules.conf</filename> and + make sure the following lines are in there. + <programlisting> + alias sound-slot-0 emu10k1 + post-install emu10k1 /usr/local/etc/emu-script</programlisting> + After saving the changes to <filename>modules.conf</filename>, run + <screen> <command>/sbin/depmod -a</command></screen> + Now, you're ready to load the new modules and set the correct + options for it. To load the modules run: + <screen> <command>/sbin/modprobe emu10k1</command></screen> + </para> + </sect3> + <sect3> + <title>Setting up xine for SPDIF (AC3_passthrough) output</title> + <para> + You can either use the config dialog of your frontend or edit + the config file (<filename>~/.xine/config</filename>) yourself: + <programlisting> audio.a52_pass_through:1</programlisting> + In case the setting is not in the file you can add it. </para> - </sect2> - <sect2> - <title> The cable used for the SBLive can easily be self-made - or buy a stereo 3.5mm jack to dual RCA cable. </title> - + </sect3> + <sect3> + <title> + The cable used for the SBLive can easily be self-made + or buy a stereo 3.5mm jack to dual RCA cable. + </title> + <para> + What you need to make the cable yourself: + <itemizedlist> + <listitem><para>stereo 3.5mm jack plug</para></listitem> + <listitem><para>RCA plug</para></listitem> + <listitem><para>shielded cable (video coax 75 Ohm will do)</para></listitem> + </itemizedlist> + Connect them as follows : <programlisting> - What you need to make the cable yourself : - a) stereo 3.5mm jack plug - b) RCA plug - c) shielded cable (video coax 75 Ohm will do) - - Connect them as follows : - - center pin jackplug ------|----- center pin RCA plug - GND __|__ GND - </programlisting> - - <para> - In order to test it use a DVD with AC3 or DTS track - start xine and select the right audio track - from user interface or start xine as: - <programlisting> - xine dvd://1 -a 0 - </programlisting> - The external decoder should display something like - "Dolby Digital" in case the - selected audio track contains AC3 data or "DTS" - in case the selected audio - track contains DTS data. - Of course stereo audio also goes through the SPDIF output, so the analog - outputs of the SBLive 5.1 are not needed anymore. + center pin jackplug ------|----- center pin RCA plug + GND __|__ GND</programlisting> </para> - </sect2> - </sect1> - <sect1 id="volumecontrol"> + <para> + In order to test it use a DVD with AC3 or DTS track + start xine and select the right audio track + from user interface or start xine as: + <screen> <command>xine dvd:/1 -a 0</command></screen> + The external decoder should display something like + "Dolby Digital" in case the selected audio track contains + AC3 data or "DTS" in case the selected audio track + contains DTS data. Of course stereo audio also goes + through the SPDIF output, so the analog outputs of the + SBLive 5.1 are not needed anymore. + </para> + </sect3> + </sect2> + <sect2 id="volumecontrol"> <title>Changing the volume with the GUI control has no effect! What's up!?</title> - <para> - Some xine drivers do not support volume changing although the GUI - will show the volume bar. Usually this is not xine's fault: aRts C - API, for example, doesn't offer any volume property to applications. - Similarly, with ac3 pass through it is not possible to set the volume. + Some xine drivers do not support volume changing although the GUI + will show the volume bar. Usually this is not xine's fault: aRts C + API, for example, doesn't offer any volume property to applications. + Similarly, with ac3 pass through it is not possible to set the volume. </para> <para> - Note that recently we added support to "simulate" volume in aRts by - changing sample values on-the-fly before delivering them to the driver. - Not as good as having access to sound card's mixer but at least users - will not complain about lacking of volume bar anymore! :) + Note that recently we added support to "simulate" volume in aRts by + changing sample values on-the-fly before delivering them to the driver. + Not as good as having access to sound card's mixer but at least users + will not complain about lacking of volume bar anymore! :) </para> - </sect1> - - <sect1 id="stuttering"> - <title> Audio is stuttering and i see a lot of "metronom: fixing sound card drift by -2115 pts" on the console output </title> + </sect2> + <sect2 id="stuttering"> + <title>Audio is stuttering and i see a lot of "metronom: fixing sound card drift by -2115 pts" on the console output</title> <para> - Might be a soundcard problem, if it only comes in longer intervals. - Your soundcard does not keep it's sampling frequency accurately - enough, which results in audio and video - getting out of sync and xine has to compensate. If you see the message - only from time to time, you might remedy it by using the resampling sync - method. You can do this by setting the configuration entry - <parameter>audio.av_sync_method</parameter> to <parameter>resample</parameter>. + Might be a soundcard problem, if it only comes in longer intervals. + Your soundcard does not keep it's sampling frequency accurately + enough, which results in audio and video + getting out of sync and xine has to compensate. If you see the message + only from time to time, you might remedy it by using the resampling sync + method. You can do this by setting the configuration entry + <parameter>audio.av_sync_method</parameter> to <parameter>resample</parameter>. </para> <para> - If you receive the metronom message more often, - maybe switching to different drivers (alsa to oss or vise-versa) - can help here. It has also been reported that setting the configuration - entry <parameter>audio.force_rate</parameter> to the native sampling - rate of your soundcard (try 44100 and 48000) helps sometimes. + If you receive the metronom message more often, + maybe switching to different drivers (alsa to oss or vise-versa) + can help here. It has also been reported that setting the configuration + entry <parameter>audio.force_rate</parameter> to the native sampling + rate of your soundcard (try 44100 and 48000) helps sometimes. </para> <para> - Another, whole different possibility is that you have some background - process running which is messing with the clock (like some ntp client - - chronny, ntpd, ...). + Another, whole different possibility is that you have some background + process running which is messing with the clock (like some ntp client - + chronny, ntpd, ...). </para> <para> - Occasional messages of "fixing sound card drift" may happen on start and - when playing a long stream (like a movie). This is normal behaviour, - nothing to worry about. + Occasional messages of "fixing sound card drift" may happen on start and + when playing a long stream (like a movie). This is normal behaviour, + nothing to worry about. </para> - </sect1> + </sect2> - <sect1 id="soundloss"> + <sect2 id="soundloss"> <title>xine seems to lose sound arbitrarily during playback, especially with DVDs</title> - - <para> - You are using the OSS audio output plugin, right? In order to keep video and audio - in sync, xine regularly queries the audio driver for the amount of delay induced by - the current length of the driver's audio buffer. Unfortunately some OSS drivers seem - to be broken because the can return strange values here. This confuses the xine audio - subsystem and makes it drop audio. - </para> - <para> - You should try the various settings of the - configuration entry <parameter>audio.oss_sync_method</parameter>. The options - <parameter>getodelay</parameter> and <parameter>getoptr</parameter> ask the driver and - might therefore show the problem. But chances are that only one is broken and the other - works, so you should try them both first, since they are the most accurate. - The option <parameter>probebuffer</parameter> does not ask the driver directly but - tries to determine the buffer length from outside. This should work with any driver - and is the way to go, of the driver dependent methods fail. - <parameter>softsync</parameter> is the least accurate and should be used only in - emergency situations. + <para> + You are using the OSS audio output plugin, right? In order to keep video and audio + in sync, xine regularly queries the audio driver for the amount of delay induced by + the current length of the driver's audio buffer. Unfortunately some OSS drivers seem + to be broken because the can return strange values here. This confuses the xine audio + subsystem and makes it drop audio. </para> - </sect1> -</chapter> + <para> + You should try the various settings of the + configuration entry <parameter>audio.oss_sync_method</parameter>. The options + <parameter>getodelay</parameter> and <parameter>getoptr</parameter> ask the driver and + might therefore show the problem. But chances are that only one is broken and the other + works, so you should try them both first, since they are the most accurate. + The option <parameter>probebuffer</parameter> does not ask the driver directly but + tries to determine the buffer length from outside. This should work with any driver + and is the way to go, of the driver dependent methods fail. + <parameter>softsync</parameter> is the least accurate and should be used only in + emergency situations. + </para> + </sect2> -<chapter id="video"> + </sect1> - <title> Video related questions </title> - <sect1 id="novideo"> + <sect1 id="video"> + <title>Video related questions</title> + <sect2 id="novideo"> <title>I can hear the audio - but I don't see a picture!</title> - <para> - Probably your hardware is simply too slow - see above for some - hints on how to speed things up. + Probably your hardware is simply too slow - see above for some + hints on how to speed things up. </para> <para> - Another possibility is that you using a buggy Xv driver, see the next - question. + Another possibility is that you using a buggy Xv driver, see the next + question. </para> - </sect1> - - <sect1 id="xvextension"> + </sect2> + <sect2 id="xvextension"> <title>How can I make xine use the Xv extension and what drivers do I need?</title> - <para> - xine will normally use Xv by default if it is available. In some cases - you might need to choose Xv playback manually (when the <filename>~/.xine/config</filename> - file for some reason says that you want to use XShm): - <programlisting> - xine -V Xv foo.mpg - </programlisting> + xine will normally use Xv by default if it is available. In some cases + you might need to choose Xv playback manually (when the <filename>~/.xine/config</filename> + file for some reason says that you want to use XShm): + <screen> <command>xine -V Xv foo.mpg</command></screen> </para> <para> - If this doesn't work for you, it may be possible that Xv is not present - on your system. + If this doesn't work for you, it may be possible that Xv is not present + on your system. </para> <para> - First you need to install/use XFree 4.x. Once you got that you have to - make sure the XFree drivers you're using are supporting Xv on your - hardware. Here are some hints for individual gfx chips: - <itemizedlist> - <listitem> - <para> - 3Dfx: if all you get is a solid black window, upgrade at least to - XFree 4.1.0 - </para> - </listitem> - <listitem> - <para> - ATI: if you only get "half a picture", try lowering your resolution - or bit depth, disable DRI (looks like you ran out of video RAM) - </para> - </listitem> - <listitem> - <para> - Trident card: If you see vertical bands jumbled, upgrade to the latest - xfree/experimental trident drivers (for the CyberBlade XP - a driver exists here: - <ulink url="http://www.xfree86.org/~alanh/"> - http://www.xfree86.org/~alanh/ </ulink>) - </para> - </listitem> - <listitem> - <para> - nvidia: With newer GeForce cards, Xv should work with XFree 4.2.0 or - newer, for older RivaTNT cards use the binary drivers from nvidia - (of course the binary drivers work as well for GeForce cards) - </para> - </listitem> - <listitem> - <para> - Mach64/Rage3D (not Rage128/Radeon) cards/chips get no XVideo with - standard drivers, try - <ulink url="http://gatos.sourceforge.net/">GATOS drivers - </ulink> instead - </para> - </listitem> - <listitem> - <para> - intel: i815 has Xv support in XFree 4.x, others unknown - </para> - </listitem> - <listitem> - <para> - Permedia 2/3 has Xv support in XFree 4.x - </para> - </listitem> - <listitem> - <para> - Savage: at least some older drivers tend to lock up the whole machine, - try the drivers available from - <ulink url="http://www.probo.com/timr/savage40.html"> - www.probo.com/timr/savage40.html - </ulink>. - </para> - </listitem> - <listitem> - <para> - SIS: certain controllers (more info needed!) have Xv support in XFree 4.x - </para> - </listitem> - <listitem> - <para> - Chips and Tech 6555x, 68554, 69000, 69030 have Xv support in XFree 4.x - </para> - </listitem> - <listitem> - <para> - NeoMagic: certain controllers (more info needed!) have Xv support in Xfree 4.x - </para> - </listitem> - <listitem> - <para> - SiliconMotion: certain controllers (more info needed!) have Xv support in Xfree 4.x - </para> - </listitem> - <listitem> - <para> - Matrox: G200 or newer (but not Parhelia) have Xv support in XFree 4.x. - For parhelia, use the binary only drivers available from matrox' website. - </para> - </listitem> - </itemizedlist> + First you need to install/use XFree 4.x. Once you got that you have to + make sure the XFree drivers you're using are supporting Xv on your + hardware. Here are some hints for individual gfx chips: + <itemizedlist> + <listitem> + <para> + 3Dfx: if all you get is a solid black window, upgrade at least to XFree 4.1.0 + </para> + </listitem> + <listitem> + <para> + ATI: if you only get "half a picture", try lowering your resolution + or bit depth, disable DRI (looks like you ran out of video RAM) + </para> + </listitem> + <listitem> + <para> + Trident card: If you see vertical bands jumbled, upgrade to the latest + xfree/experimental trident drivers (for the CyberBlade XP + a driver exists here: + <ulink url="http://www.xfree86.org/~alanh/">http://www.xfree86.org/~alanh/ </ulink>) + </para> + </listitem> + <listitem> + <para> + nVidia: With newer GeForce cards, Xv should work with XFree 4.2.0 or + newer, for older RivaTNT cards use the binary drivers from nvidia + (of course the binary drivers work as well for GeForce cards) + </para> + </listitem> + <listitem> + <para> + Mach64/Rage3D (not Rage128/Radeon) cards/chips get no XVideo with + standard drivers, try + <ulink url="http://gatos.sourceforge.net/">GATOS drivers + </ulink> instead + </para> + </listitem> + <listitem> + <para> + intel: i815 has Xv support in XFree 4.x, others unknown + </para> + </listitem> + <listitem> + <para> + Permedia 2/3 has Xv support in XFree 4.x + </para> + </listitem> + <listitem> + <para> + Savage: at least some older drivers tend to lock up the whole machine, + try the drivers available from + <ulink url="http://www.probo.com/timr/savage40.html"> + http://www.probo.com/timr/savage40.html + </ulink>. + </para> + </listitem> + <listitem> + <para> + SIS: certain controllers (more info needed!) have Xv support in XFree 4.x + </para> + </listitem> + <listitem> + <para> + Chips and Tech 6555x, 68554, 69000, 69030 have Xv support in XFree 4.x + </para> + </listitem> + <listitem> + <para> + NeoMagic: certain controllers (more info needed!) have Xv support in Xfree 4.x + </para> + </listitem> + <listitem> + <para> + SiliconMotion: certain controllers (more info needed!) have Xv support in Xfree 4.x + </para> + </listitem> + <listitem> + <para> + Matrox: G200 or newer (but not Parhelia) have Xv support in XFree 4.x. + For Parhelia, use the binary only drivers available from matrox' website. + </para> + </listitem> + </itemizedlist> </para> - </sect1> - <sect1 id="colorkey"> + </sect2> + <sect2 id="colorkey"> <title>Some parts of my X Desktop get transparent when xine plays the video!</title> - <para> - Looks like some colors on your GUI match the colorkey Xv uses. You can - change the colorkey value to avoid this. There should be a line like: - <programlisting> - video.XV_COLORKEY:2110 - </programlisting> - in your <filename>~/.xine/config</filename> file where you can change the color that's used - by xine for the video overlay. + Looks like some colors on your GUI match the colorkey Xv uses. You can + change the colorkey value to avoid this. There should be a line like: + <programlisting> video.XV_COLORKEY:2110</programlisting> + in your <filename>~/.xine/config</filename> file where you can change the color that's used + by xine for the video overlay. </para> - </sect1> - <sect1 id="aspectratio"> + </sect2> + <sect2 id="aspectratio"> <title>The aspect ratio of the video is wrong!</title> - <para> - Try pressing "a" to change the aspect ratio. + Try pressing "a" to change the aspect ratio. </para> - </sect1> - <sect1 id="discardedskipped"> + </sect2> + <sect2 id="discardedskipped"> <title>What is the difference between discarded and skipped frames?</title> - <para> - Sometimes xine will output a message like that: - <programlisting> - 200 frames delivered, XX frames skipped, YY frames discarded - </programlisting> + Sometimes xine will output a message like that: + <programlisting> 200 frames delivered, XX frames skipped, YY frames discarded</programlisting> </para> <para> - The difference between these counters is a little subtle for the non - developer. There are two threads running in order to display video: - the decoder thread will deliver frames to the video output thread. - The later is responsible for scheduling the frames to be displayed at - the right time. + The difference between these counters is a little subtle for the non + developer. There are two threads running in order to display video: + the decoder thread will deliver frames to the video output thread. + The later is responsible for scheduling the frames to be displayed at + the right time. </para> <para> - If your system can't keep up with decoding requirements, decoder will - deliver overdue frames. Imagine if it finished decoding the frame - tagged for displaying at 11:30 but xine clock marks 11:31. When this - situation is detected, xine will try to skip decoding a few frames - to recover. Not every decoder may support this feature. + If your system can't keep up with decoding requirements, decoder will + deliver overdue frames. Imagine if it finished decoding the frame + tagged for displaying at 11:30 but xine clock marks 11:31. When this + situation is detected, xine will try to skip decoding a few frames + to recover. Not every decoder may support this feature. </para> <para> - When the frame is decoded to be shown somewhere in future but the - output thread doesn't get scheduled in time by the operating system - to complete the operation, the frame is discarded. One cause might - be the disk access operation, which may halt the system for a few - miliseconds without DMA. See performance section tips above. + When the frame is decoded to be shown somewhere in future but the + output thread doesn't get scheduled in time by the operating system + to complete the operation, the frame is discarded. One cause might + be the disk access operation, which may halt the system for a few + miliseconds without DMA. See performance section tips above. </para> <para> - Note that if a decoder can't skip frames for some reason, you would - never see frames skipped (they would be all discarded). + Note that if a decoder can't skip frames for some reason, you would + never see frames skipped (they would be all discarded). </para> - </sect1> - <sect1 id="contrastbrightnesssaturation"> + </sect2> + <sect2 id="contrastbrightnesssaturation"> <title>My xine is runing in black and white! / I only get a gray video output!</title> - <para> - This frequently happens with new Xv drivers or when switching to a - different video card. Background is that different Xv drivers often - use different ranges for the contrast/brightness/saturation settings. + This frequently happens with new Xv drivers or when switching to a + different video card. Background is that different Xv drivers often + use different ranges for the contrast/brightness/saturation settings. </para> <para> - To fix this, try opening the xine settings window and try adjusting - the sliders for contrast, brightness and saturation. + To fix this, try opening the xine settings window and try adjusting + the sliders for contrast, brightness and saturation. </para> <para> - Please note that some frontends save these settings in their config file - so when you have found a working combination, make sure you exit - xine cleanly so the values are saved. + Please note that some frontends save these settings in their config file + so when you have found a working combination, make sure you exit + xine cleanly so the values are saved. </para> - </sect1> - - <sect1 id="videodriver"> + </sect2> + <sect2 id="videodriver"> <title>Which is the best video driver to use?</title> - <para> - xine support several video drivers for outputing the image. These will - differ on how the frames are copied to the video card memory, whether - colorspace conversion and scaling is done in software or hardware, among - other things. They may also differ on ease of use and stability. + xine support several video drivers for outputing the image. These will + differ on how the frames are copied to the video card memory, whether + colorspace conversion and scaling is done in software or hardware, among + other things. They may also differ on ease of use and stability. </para> <para> - Most of the time, Xv should give the users a good trade-off between - quality, compatibility and ease of use. This is why xine tries to use - Xv by default. + Most of the time, Xv should give the users a good trade-off between + quality, compatibility and ease of use. This is why xine tries to use + Xv by default. </para> <para> - However some users may want to explore better the available hardware - capabilities (eg. syncing frame drawing with monitor refresh). - Also some Xv drivers contain slow copies and accessing the video card - directly may yield performance gains. + However some users may want to explore better the available hardware + capabilities (eg. syncing frame drawing with monitor refresh). + Also some Xv drivers contain slow copies and accessing the video card + directly may yield performance gains. </para> <para> - Drivers that access hardware directly includes VIDIX (warning: requires - root priviledges) and SyncFB (requires kernel helper - Matrox only). - User may try one of those, but should be warned that with root access - they can cause the system to crash hard. The support is also limited to - a couple of graphics cards only. + Drivers that access hardware directly includes VIDIX (warning: requires + root priviledges or kernel helper) and SyncFB (requires kernel helper - Matrox only). + User may try one of those, but should be warned that with root access + they can cause the system to crash hard. The support is also limited to + a couple of graphics cards only. </para> <para> - Graphic workstations like SGI have usually a good support for OpenGL. - In that case, using OpenGL may be a better choice than XShm. However for - most desktop systems the performance of OpenGL will be quite bad. + Graphic workstations like SGI have usually a good support for OpenGL. + In that case, using OpenGL may be a better choice than XShm. However for + most desktop systems the performance of OpenGL will be quite bad. </para> - </sect1> -</chapter> + </sect2> -<chapter id="errors"> + </sect1> - <title> Error Messages: What they mean and what you can do</title> - <sect1 id="audiodrivererr"> + <sect1 id="errors"> + <title>Error Messages: What they mean and what you can do</title> + <sect2 id="audiodrivererr"> <title>Starting xine fails with complains about audio drivers/devices!</title> - <para> - You can select the audio driver using the -A option. So try: - <programlisting> - xine -A null - </programlisting> - If you have ALSA drivers installed, try: - <programlisting> - xine -A alsa - </programlisting> - If you run ESD (not recommended), try: - <programlisting> - xine -A esd - </programlisting> - If you run artsd, try: - <programlisting> - xine -A arts - </programlisting> + You can select the audio driver using the -A option. So try: + <screen> <command>xine -A null</command></screen> + If you have ALSA drivers installed, try: + <screen> <command>xine -A alsa</command></screen> + If you run ESD (not recommended), try: + <screen> <command>xine -A esd</command></screen> + If you run artsd, try: + <screen> <command>xine -A arts</command></screen> </para> - </sect1> - <sect1 id="novideoportfound"> + </sect2> + <sect2 id="novideoportfound"> <title>"no video port found"</title> - <para> - You got the Xv extension, but your video card driver doesn't support it. - First try to find a driver that does support Xv on your hardware (check - your graphics card vendor). If your driver has Xv support but you can't - get it working, try at a lower resolution (1024x768 is enough even for - anamorphic mpeg-2). + You got the Xv extension, but your video card driver doesn't support it. + First try to find a driver that does support Xv on your hardware (check + your graphics card vendor). If your driver has Xv support but you can't + get it working, try at a lower resolution (1024x768 is enough even for + anamorphic DVDs). </para> <para> - If all that fails, you can still use plain X11/XShm: - <programlisting> - gxine -V XShm foo.vob - </programlisting> + If all that fails, you can still use plain X11/XShm: + <screen> <command>gxine -V XShm foo.vob</command></screen> </para> - </sect1> - <sect1 id="unabletoopendvddrive"> + </sect2> - <title>"Unable to open dvd drive (/dev/dvd)" </title> - + <sect2 id="unabletoopendvddrive"> + <title>"Unable to open dvd drive (/dev/dvd)"</title> <para> - You probably don't have /dev/dvd (check that). If so, simply create a - link /dev/dvd that points to your DVD device. Something like... - <programlisting> - cd /dev - ln -s hdc dvd - </programlisting> - ...should do the job. Also make sure you have read access on - the device the symlink points to. - See the <link linkend="dvdplayback">dvd playback section</link> - for more information. + You probably don't have /dev/dvd (check that). If so, simply create a + link /dev/dvd that points to your DVD device. Something like... + <screen> <command>ln -s hdc /dev/dvd</command></screen> + ...should do the job. Also make sure you have read and write access on + the device the symlink points to. + See the <link linkend="dvdplayback">dvd playback section</link> + for more information. </para> - </sect1> - <sect1 id="demuxerror0000"> + </sect2> + + <sect2 id="status0x51"> + <title>My drive doesn't work and the kernel says "status=0x51 { DriveReady SeekComplete Error }"</title> + <para> + This error can be fixed by recompiling your kernel with the option + "Use multi-mode by default" enabled in the IDE settings. + </para> + </sect2> + <sect2 id="demuxerror0000"> <title>"demux error! 00 00 00 (should be 0x000001)"</title> - <para> - Probably xine can't access your input source. Most commonly this happens - when you're trying to play locked/encrypted DVDs. Remember that xine - can't play such DVDs out-of-the box for legal reasons (see above). + Probably xine can't access your input source. Most commonly this happens + when you're trying to play locked/encrypted DVDs. Remember that xine + can't play such DVDs out-of-the box for legal reasons (see above). </para> <para> - If it is legal where you live, you can try to install libdvdcss. Once - you have done that and re-start xine, it should automatically detect - and use it to play back encrypted DVDs. + If it is legal where you live, you can try to install libdvdcss. Once + you have done that and re-start xine, it should automatically detect + and use it to play back encrypted DVDs. </para> <para> - Another reason could be that your (RPC-2) DVD drive isn't set up - for the right region (see above). + Another reason could be that your (RPC-2) DVD drive isn't set up + for the right region (see above). </para> - </sect1> - <sect1 id="ossfailed"> + </sect2> + <sect2 id="ossfailed"> <title>"audio driver 'oss' failed, using null driver instead"</title> - <para> - First of all, make sure that your OSS Audio drivers are working (i.e. - you can play music with other software). Maybe you're using alsa? - If so, try <command> gxine -A alsa </command> to see if this helps. + First of all, make sure that your OSS Audio drivers are working (i.e. + you can play music with other software). Maybe you're using alsa? + If so, try <command>gxine -A alsa</command> to see if this helps. </para> <para> - The most common reason for oss not working is that some other program is accesing - your audio device. If you're using linux, the command <command>fuser /dev/dsp</command> - should give you the PID of the process. + The most common reason for oss not working is that some other program is accesing + your audio device. If you're using linux, the command <command>fuser /dev/dsp</command> + should give you the PID of the process. </para> <para> - If you are using GNOME, chances are that this is caused by ESD. Now you - have two possibilities. Either deactivate ESD (temporarily) by right - clicking on the sound monitor applet and selecting "Place Esound in - standby" or just kill it. Then xine will use OSS audio output. The other - method is to make xine use ESD for audio output with: - <programlisting> - gxine -A esd - </programlisting> - This may result in worse playback - exact syncronization is not possible - with esd, so using oss should be preferred. + If you are using GNOME, chances are that this is caused by ESD. Now you + have two possibilities. Either deactivate ESD (temporarily) by right + clicking on the sound monitor applet and selecting "Place Esound in + standby" or just kill it. Then xine will use OSS audio output. The other + method is to make xine use ESD for audio output with: + <screen> <command>gxine -A esd</command></screen> + This may result in worse playback - exact syncronization is not possible + with esd, so using oss should be preferred. </para> <para> - If you are using KDE, there is the possibility that the aRts sound - daemon is currently running and thus blocking your sound device. You - can check that by starting the aRts control (in your KDE menu it should - be under Multimedia). If it is running, you can either use the aRts - audio output plugin: - <programlisting> - gxine -A arts - </programlisting> - Or you suspend the aRts daemon by checking the appropriate option in - your aRts control. (recommended) + If you are using KDE, there is the possibility that the aRts sound + daemon is currently running and thus blocking your sound device. You + can check that by starting the aRts control (in your KDE menu it should + be under Multimedia). If it is running, you can either use the aRts + audio output plugin: + <screen> <command>gxine -A arts</command></screen> + Or you suspend the aRts daemon by checking the appropriate option in + your aRts control. (recommended) </para> <para> - Newer versions of arts have an auto-suspend mode - this can lead to - some nondeterministic behaviour of xine if it is set up to use - the audio device directly. Using arts is recommended in that case, - however you will loose the ability to do four/five channel audio output. + Newer versions of arts have an auto-suspend mode - this can lead to + some nondeterministic behaviour of xine if it is set up to use + the audio device directly. Using arts is recommended in that case, + however you will loose the ability to do four/five channel audio output. </para> - </sect1> - <sect1 id="throwingawarimage"> + </sect2> + <sect2 id="throwingawayimage"> <title>"video_out: throwing away image with pts xxx because it's too old"</title> - <para> - This is a performance related problem. - - If you have a fast computer and this message shows from time to - time playing dvd/cdrom, it's very likely that your drive is not - DMA enabled. + This is a performance related problem. + If you have a fast computer and this message shows from time to + time playing dvd/cdrom, it's very likely that your drive is not + DMA enabled. </para> - </sect1> - <sect1 id="novideopluginavailable"> + </sect2> + <sect2 id="novideopluginavailable"> <title>"No video plugin available to decode 'xxxxxx'."</title> - <para> - You have tried to play a stream using a unknown or unhandled codec. - Possibly the file uses some obscure proprietary format and no - information is available on how to decode it. + You have tried to play a stream using a unknown or unhandled codec. + Possibly the file uses some obscure proprietary format and no + information is available on how to decode it. </para> <para> - If you're on an x86 platform (e.g. PC hardware) you might want to - try installing binary-only windows medial, real networks and - quicktime codecs (see above). + If you're on an x86 platform (e.g. PC hardware) you might want to + try installing binary-only windows medial, real networks and + quicktime codecs (see above). </para> - </sect1> - <sect1 id="demuxerfailedtostart"> + </sect2> + <sect2 id="decoderfailedtostart"> <title>"w32codec: decoder failed to start. Is 'xxxxxx' installed?"</title> - <para> - You probably don't have the win32 dll needed to decode this file. + You probably don't have the win32 dll needed to decode this file. </para> - </sect1> - <sect1 id="xinecrashed"> + </sect2> + <sect2 id="xinecrashed"> <title>xine just crashed on me - i didn't get any error message</title> - <para> - OK, yes, that shouldn't happen and you're upset. We can understand that. - But, to help you and of course to fix this, we need some information. - So, let's go through the checklist and maybe prepare a nice bug report - for the xine-user mailing list: - </para> - - <itemizedlist> + OK, yes, that shouldn't happen and you're upset. We can understand that. + But, to help you and of course to fix this, we need some information. + So, let's go through the checklist and maybe prepare a nice bug report + for the xine-user mailing list: + <itemizedlist> <listitem> - <para> - did xine really crash (segfault) or did it hang (deadlock) ? - </para> + <para> + Did xine really crash (segfault) or did it hang (deadlock)? + </para> </listitem> <listitem> - <para> - can you reproduce the bug? (e.g. do you remember what you - did and when you do it again it crashes again?) - </para> + <para> + Can you reproduce the bug? (e.g. do you remember what you + did and when you do it again it crashes again?) + </para> </listitem> <listitem> - <para> - is that a specific media file or format which crashes xine? (have you - tried other files types?) - </para> + <para> + Is that a specific media file or format which crashes xine? (Have you + tried other files types?) + </para> </listitem> <listitem> - <para> - check the console output (and include it in a bug report), maybe earlier - there is some output that points to the problem. - </para> + <para> + Check the console output (and include it in a bug report), maybe earlier + there is some output that points to the problem. + </para> </listitem> <listitem> - <para> - Your X server just froze on you? unfortunately that's a known problem - with some chipsets and drivers (most commonly Savage chipsets) when - using Xv. You might want to try running <command> gxine -V XShm </command> - to see if the problem is related to the Xv driver. This will unfortunately - be much slower, as lots of things are now done - in software instead of hardware scaling/colour space conversion. - </para> - <para> - Maybe at the time you read this, there's an XFree upgrade which fixes - this for the Savage driver. If that works for you, please notify the xine crew at - <email> xine-user@lists.sf.net </email>, so they can update this FAQ! - </para> + <para> + Your X server just froze on you? unfortunately that's a known problem + with some chipsets and drivers (most commonly Savage chipsets) when + using Xv. You might want to try running <command>gxine -V XShm</command> + to see if the problem is related to the Xv driver. This will unfortunately + be much slower, as lots of things are now done in software instead of + hardware scaling/colour space conversion. + </para> + <para> + Maybe at the time you read this, there's an XFree upgrade which fixes + this for the Savage driver. If that works for you, please notify the xine crew at + <email>xine-user@lists.sourceforge.net</email>, so they can update this FAQ! + </para> </listitem> <listitem> - <para> - Even though we try to make each release as bug free as possible, xine is - still under heavy development (nice excuse, isn't it? *grin*). - </para> - <para> - If you write to the xine user mailing list - <email>xine-user@lists.sourceforge.net</email> - make sure you include a the above information (when applicable) - and also some information about your machine (operating system, cpu type and - speed, gfx card, sound card, ...) and please use a meaningfull subject - line ("xine bug" is bad, "xine fails to play this quicktime trailer in fullscreen mode" - ist much better). - </para> - <para> - Thanks for taking the time to help improve xine. - </para> + <para> + Even though we try to make each release as bug free as possible, xine is + still under heavy development (nice excuse, isn't it? *grin*). + </para> + <para> + If you write to the xine user mailing list + <email>xine-user@lists.sourceforge.net</email> + make sure you include a the above information (when applicable) + and also some information about your machine (operating system, cpu type and + speed, gfx card, sound card, ...) and please use a meaningfull subject + line ("xine bug" is bad, "xine fails to play this quicktime trailer in fullscreen mode" + ist much better). + </para> + <para> + Thanks for taking the time to help improve xine. + </para> </listitem> - </itemizedlist> + </itemizedlist> + </para> + </sect2> + </sect1> -</chapter> + + </article> </book> diff --git a/doc/faq/faq.txt b/doc/faq/faq.txt index 181770709..6ac2d25d2 100644 --- a/doc/faq/faq.txt +++ b/doc/faq/faq.txt @@ -5,116 +5,91 @@ Copyright © 2001-2003 the xine project team ------------------------------------------------------------------------------- Table of Contents -1. General questions about xine and this document - - What is the xine engine? - What's the aim and scope of this text? - My question is not yet covered here - where can I ask for help? - What are those xine-lib, xine-ui, gxine, ... modules in cvs for? - Where and how do I get the latest development version? - Where can I find pre-compiled binaries, e.g. RPMs? - -2. Building and installing xine from source + - What do I need to compile everything properly? - How do I compile xine? + General questions about xine and this document - Simple build instructions for beginners - Complete build instructions + What is the xine engine? + What's the aim and scope of this text? + My question is not yet covered here - where can I ask for help? + How do I pronounce "xine"? + What are those xine-lib, xine-ui, gxine, ... modules in cvs for? + Where and how do I get the latest development version? + Where can I find pre-compiled binaries, e.g. RPMs? - Making your own RPM packages (xine-lib, xine-ui) - Can I provide additional CFLAGS for compilation? - Are there binaries for my AMD K7 (Athlon (TM) ) available? Can I build - them? - Build problems: xine engine (xine-lib) + Building and installing xine from source - The package doesn't compile at all! - The Xv video-out plugin fails to compile! + What do I need to compile everything properly? + How do I compile xine? + Making your own RPM packages (xine-lib, xine-ui) + Can I provide additional CFLAGS for compilation? + Are there binaries for my AMD K7 (AthlonTM) available? Can I build + them? + Build problems: xine engine (xine-lib) + Build problems in frontends (gxine/xine-ui/...) + Can I install xine in my home directory (without being root)? - Build problems: frontend (gxine/xine-ui/...) + Playback of various stream types - I have installed xine-lib but the frontend complains about not finding - it! + DVD Playback with xine + Can I watch Video CDs (VCDs)? SVCDS ? CD-i? + Can I watch Quicktime (.mov, .mp4) files using xine? + Real Network files/streams + Can I watch Windows Media (.asf/.wmv/.wma) files using xine? + Can I watch Digital TV (Digital Video Broadcast) using xine? + How do I play streams from STDIN? + How can I watch files with external AVI subtitles? - Can I install xine in my home directory (without being root) ? - -3. Playback of various stream types - - DVD Playback with xine + Running xine - How do I play back DVDs with xine? - DVD playback works, but it takes a long time until playback starts - I have problems setting up my RPC-2 drive for the right region! + I have a lot of dropped frames - what can I do? + Oki, xine doesn't drop frames now but video output still is not really + smooth! + I have problems when using xine on FreeBSD, Solaris, ... ! + What is aalib? How do I use it in xine? + What do all these ~/.xine/config (~/.gxine/config) entries mean? + Does xine support my dxr3 / hollywood+ card? - Can I watch Video CDs (VCDs)? SVCDS ? CD-i? - Can I watch Quicktime (.mov, .mp4) files using xine? - Real Network files/streams + Audio related questions - Can I watch Real (.rm, .ram) files using xine ? - What about (live) network streams (pnm://, rtsp:// style urls) ? + What audio drivers does xine support? OSS? Alsa? Arts? Esd? + When I'm watching a movie, the sound effects are much higher in volume + than the voices! + When I play this stream, xine shows video but there's no audio! + Can xine produce 4-/5-channel surround audio output? + What about ac3 output via spdif to an external ac3 decoder? + Getting SPDIF output from a SBLive 5.1 using OSS drivers + Changing the volume with the GUI control has no effect! What's up!? + Audio is stuttering and i see a lot of "metronom: fixing sound card + drift by -2115 pts" on the console output + xine seems to lose sound arbitrarily during playback, especially with + DVDs - Can I watch Windows Media (.asf/.wmv) files using xine? - Can I watch Digital TV (Digital Video Broadcast) using xine ? - How do I play streams from STDIN? - How can I watch files with external AVI subtitles? - -4. Running xine - - I have a lot of dropped frames - what can I do? - Oki, xine doesn't drop frames now but video output still is not really - smooth - I have problems when using xine on FreeBSD, Solaris, ... ! - What is aalib? How do I use it in xine? - What do all these ~/.xine/config (~/.gxine/config) entries mean? - Does xine support my dxr3 / hollywood+ card? - -5. Audio related questions - - What audio drivers does xine support? OSS? Alsa? Arts? Esd? - When I'm watching a movie, the sound effects are much higher volume than - the voices - When I play this stream, xine shows video but there's no audio! - Can xine produce 4-/5-channel surround audio output? - What about ac3 output via spdif to an external ac3 decoder? - Getting SPDIF output from a SBLive 5.1 using OSS drivers + Video related questions - Requirements - The OSS driver is maintained by creative and can be downloaded at http: - //opensource.creative.com/ - Setting up xine for SPDIF (AC3_passthrough) output - The cable used for the SBLive can easily be self-made or buy a stereo - 3.5mm jack to dual RCA cable. + I can hear the audio - but I don't see a picture! + How can I make xine use the Xv extension and what drivers do I need? + Some parts of my X Desktop get transparent when xine plays the video! + The aspect ratio of the video is wrong! + What is the difference between discarded and skipped frames? + My xine is runing in black and white! / I only get a gray video output! + Which is the best video driver to use? - Changing the volume with the GUI control has no effect! What's up!? - Audio is stuttering and i see a lot of "metronom: fixing sound card drift - by -2115 pts" on the console output - xine seems to lose sound arbitrarily during playback, especially with DVDs - -6. Video related questions - - I can hear the audio - but I don't see a picture! - How can I make xine use the Xv extension and what drivers do I need? - Some parts of my X Desktop get transparent when xine plays the video! - The aspect ratio of the video is wrong! - What is the difference between discarded and skipped frames? - My xine is runing in black and white! / I only get a gray video output! - Which is the best video driver to use? - -7. Error Messages: What they mean and what you can do - - Starting xine fails with complains about audio drivers/devices! - "no video port found" - "Unable to open dvd drive (/dev/dvd)" - "demux error! 00 00 00 (should be 0x000001)" - "audio driver 'oss' failed, using null driver instead" - "video_out: throwing away image with pts xxx because it's too old" - "No video plugin available to decode 'xxxxxx'." - "w32codec: decoder failed to start. Is 'xxxxxx' installed?" - xine just crashed on me - i didn't get any error message - -------------------------------------------------------------------------------- - -Chapter 1. General questions about xine and this document + Error Messages: What they mean and what you can do + + Starting xine fails with complains about audio drivers/devices! + "no video port found" + "Unable to open dvd drive (/dev/dvd)" + My drive doesn't work and the kernel says "status=0x51 { DriveReady + SeekComplete Error }" + "demux error! 00 00 00 (should be 0x000001)" + "audio driver 'oss' failed, using null driver instead" + "video_out: throwing away image with pts xxx because it's too old" + "No video plugin available to decode 'xxxxxx'." + "w32codec: decoder failed to start. Is 'xxxxxx' installed?" + xine just crashed on me - i didn't get any error message + +General questions about xine and this document What is the xine engine? @@ -123,12 +98,19 @@ libarary and is typically used by media player frontends and other multimedia applications for playback of multimedia streams such as movies, radio/tv network streams, DVDs, VCDs. +Since there are several frontends for the xine library available, this document +has a problem when it comes to examples. The two most common frontends xine-ui +and gxine are mixed in command line examples throughout this FAQ. When you use +a different frontend, some of these will not work for you. The filename of the +config file also varies amongst frontends. If you get confused, I recommend you +try with one of xine-ui or gxine. + ------------------------------------------------------------------------------- What's the aim and scope of this text? The primary goal of this FAQ is to cover all recurring questions related to the -xine engine. Frontend specific questions are not covered here. +xine engine. Frontend specific questions are usually not covered here. ------------------------------------------------------------------------------- @@ -136,8 +118,8 @@ My question is not yet covered here - where can I ask for help? First of all be sure that your question is really not covered here and that you haven't just been a bit too lazy to read through all of this text. ;-). Also -check out the xine HOWTO and documentation specific to the frontend (e.g. -xine-ui or gxine or totem ). +check out the documentation specific to the frontend (e.g. xine-ui or gxine or +totem). That said - you are welcome to mail to our user mailing list: < xine-user@lists.sourceforge.net> Please provide some info about your setup so @@ -150,47 +132,51 @@ any additional plugins you may have installed on your system. ------------------------------------------------------------------------------- +How do I pronounce "xine"? + +As long as people know what you are talking about, you are free to pronounce it +the way you like, but the official pronounciation is [ksi:n], like the name +"Maxine" with the "Ma" removed. + +------------------------------------------------------------------------------- + What are those xine-lib, xine-ui, gxine, ... modules in cvs for? Some time ago xine just became too complex to be just one big program. Therefore it was split into two major parts. -xine-lib is simply speaking the engine of xine. It contains all plugins and is -necessary to run anything that relies on xine (this is the part that is covered -in this FAQ). +xine-lib is simply speaking the engine of xine. It contains all basic plugins +and is necessary to run anything that relies on xine. (This is the part that is +covered in this FAQ.) Then there are frontends - applications that use xine. The most common frontend is that of a media player. There are currently two frontends being developed in the xine project, xine-ui (skinned dvd-player style frontend directly based on xlib) and gxine, a desktop media-player style frontend using the standard gtk widget set and comes with a mozilla browser plugin. External projects like -sinek and totem develop additional frontends. In the future you will likely see -more and different types of apllications being developed which will use the -xine engine for video processing and other multimedia purposes. +kaffeine, sinek and totem develop additional frontends. In the future you will +likely see more and different types of applications being developed which will +use the xine engine for video processing and other multimedia purposes. If you simply want a media/dvd player, you'll need to install xine-lib first and then choose and install a player frontend like xine-ui or gxine. -Other modules in CVS: xine-plugin a mozilla browser plugin for streaming media -playback using xine (at the time of this writing unmaintained and somewhat -obsoleted by gxine's browser plugin), xine-www the xine project website -sources. +Other modules in CVS are: xine-plugin a mozilla browser plugin for streaming +media playback using xine, xine-www the xine project website sources. ------------------------------------------------------------------------------- Where and how do I get the latest development version? Be advised that end-users should stick to the official xine releases. CVS is -only intended for developers. +only intended for developers and for others who know why they use it. To check out xine-modules from CVS, first do this: + cvs -d :pserver:anonymous@cvs.xine.sourceforge.net:/cvsroot/xine login +The password is empty, just press Enter. -cvs -d :pserver:anonymous@cvs.xine.sourceforge.net:/cvsroot/xine login [empty -password] - -then, to check out individual modules (e.g. xine-lib, gxine, xine-ui): - -cvs -d :pserver:anonymous@cvs.xine.sourceforge.net:/cvsroot/xine co modulename +Then, to check out individual modules (e.g. xine-lib, gxine or xine-ui): + cvs -d :pserver:anonymous@cvs.xine.sourceforge.net:/cvsroot/xine co <modulename> ------------------------------------------------------------------------------- @@ -200,14 +186,15 @@ The xine project does not provide pre-compiled binaries for legal reasons (some parts of xine may be covered by patents in some countries). Some OS projects/ vendors (e.g. debian, freebsd, ...) offer binaries for their distributions - please contact them for further info. You can also find links to third parties -providing xine RPMs on the xine homepage : http://xine.sf.net/index.php/about +providing xine RPMs on the xine homepage at http://xinehq.de/index.php/releases +. -See the next chapter of this FAQ for instructions on how to build xine from +See the next section of this FAQ for instructions on how to build xine from source. ------------------------------------------------------------------------------- -Chapter 2. Building and installing xine from source +Building and installing xine from source What do I need to compile everything properly? @@ -217,8 +204,8 @@ xine project. Furthermore you'll have to use GNU make to compile xine. On most GNU/Linux systems "make" is GNU make - on other platforms use "gmake" instead. Also, zlib -iss required (including the appropriate header files, which are often found in -a package called zlib-devel or similar.) +is required (including the appropriate header files, which are often found in a +package called zlib-devel or similar.) If you want to compile xine from CVS, you'll need to have the autobuild tools installed (automake, autoconf and libtool - in recent versions). @@ -230,11 +217,13 @@ your system. Some plugins that come with the xine engine need additional libraries (otherwise they will not be built). For example, libogg and libvorbis (plus -their include files) are needed for ogg/vorbis support. +their include files) are needed for ogg/vorbis support. Most notably, if you +want to see any video on your X11 desktop (and that's what you're here for, +isn't it?), you need the XFree developer packages as well. Don't worry about this too much right now, xine's configure (see below) will check for all the stuff needed and will tell you what's missing (which means -that you should check the output it produces carefully ;) ) +that you should check the output it produces carefully ;) ). ------------------------------------------------------------------------------- @@ -244,29 +233,22 @@ Simple build instructions for beginners Download the latest xine-lib and gxine/xine-ui tarballs, then follow these instruction. To unpack a tarball, use: + tar xfvz tarballname.tar.gz - tar xfvz tarballname.tar.gz - - -The following instructions will install xine in /usr/local for all users. You -need root privileges to do this on most systems. - -First unpack xine-lib, then: +The following instructions will install xine in /usr/local where it will be +visible for all users. You need root privileges to do this on most systems. - ./configure - make install - +After unpacking xine-lib, issue: + ./configure + make install -Make sure your /etc/ld.so.conf contains /usr/local/lib, then: - - ldconfig - +Make sure your /etc/ld.so.conf contains /usr/local/lib and continue with: + ldconfig Now unpack your frontend (gxine or xine-ui or ...), then: + ./configure + make install - ./configure - make install - ------------------------------------------------------------------------------- Complete build instructions @@ -276,45 +258,39 @@ The build process is the same for all of the xine modules. You have to start with xine-lib. If built and installed successfully, you can continue with the frontend(s). -If you have installed xine-lib to a non-standard prefix, make sure you that you +If you have installed xine-lib to a non-standard prefix, make sure that you have $prefix/bin in your PATH and that your linker finds libs in $prefix/lib - otherwise trying to build modules that rely on xine-lib will fail with configure complaining about not finding certain parts of libxine. Using bash you can do something like: - - export PATH="$prefix/bin:$PATH" - export LD_LIBRARY_PATH="$prefix/lib:$LD_LIBRARY_PATH" - - + export PATH="$prefix/bin:$PATH" + export LD_LIBRARY_PATH="$prefix/lib:$LD_LIBRARY_PATH" to make sure libxine can be found by the frontend(s). Last but not least. Here the build instructions. As stated earlier, those are the same for every xine module. + ./autogen.sh [-> *only* if you checked your sources out of CVS] + ./configure + make + make install - ./autogen.sh [-> *only* if you checked your sources out of CVS] - ./configure - make - make install - ------------------------------------------------------------------------------- Making your own RPM packages (xine-lib, xine-ui) Basically you will only have to issue one command, if you have just downloaded a source tarball from our web site: - -rpm -ta THE_NAME_OF_YOUR_SOURCE_TAR_BALL + rpm -ta <THE_NAME_OF_YOUR_SOURCE_TAR_BALL> This will start the binary and source RPM building. After compiling is -finished, a binary rpm is placed in your rpm binary directory which is usally / -usr/src/RPM/RPMS/[YOUR_ARCHITECTURE] and a source RPM is written to your rpm -source dir (e.g. /usr/src/RPM/SRPMS). +finished, a binary rpm is placed in your rpm binary directory which is +something like /usr/src/RPM/RPMS/<YOUR_ARCHITECTURE> and a source RPM is +written to your rpm source dir (e.g. /usr/src/RPM/SRPMS). In case that you have a fresh CVS checkout, you will need to do the following first in order to get a tarball release out of it which you can later use with the rpm -ta command above: - -./autogen.sh && make clean && make dist + ./autogen.sh && make clean && make dist In any case, please keep in mind that you have to build and install xine-lib first before you can proceed with xine-ui. @@ -323,28 +299,35 @@ first before you can proceed with xine-ui. Can I provide additional CFLAGS for compilation? -Yes, you can do so by setting the CFLAGS variable and then run configure again. +Yes, you can do so by setting the CFLAGS variable and then running configure +again. You can even pass them to configure directly. Example: + ./configure CFLAGS="-march=i686" -This can be useful to specify additional include paths or library paths to the -compiler. +Other user variables configure respects are: -Example: export CFLAGS="-I/usr/include -L/home/guenter/xine_libs" + * CC to specify the compiler executable + + * CPP to specify the C preprocessor executable + + * LD to specify the linker executable + + * CPPFLAGS to pass additional include paths or other preprocessor options + + * LDFLAGS to pass additional library paths or other linker options + +An example combining some of these would look like: + ./configure CC="/opt/intel/bin/icc" LD="/opt/intel/bin/xild" CPPFLAGS="-I/usr/local/include/dvdnav" LDFLAGS="-L/home/guenter/xine_libs" ------------------------------------------------------------------------------- -Are there binaries for my AMD K7 (Athlon (TM) ) available? Can I build them? +Are there binaries for my AMD K7 (AthlonTM) available? Can I build them? If you have a recent gcc you can try to compile "more" k7 support in (esp. better instruction scheduling). If the configure script should fail to detect -your processor/gcc correctly, try setting the xine_BUILD envvar explicitly to a -valid description string for your configuration, e.g. +your processor/gcc correctly, try passing the canonical system name for your +machine to configure with the --host option, e.g. + ./configure --host=k7-pc-linux-gnu - export xine_BUILD=k7-pc-linux-gnu - rm -f config.cache - ./autogen.sh - make - make install - ------------------------------------------------------------------------------- Build problems: xine engine (xine-lib) @@ -356,7 +339,7 @@ zlib compression library plus the appropriate headers, which are often found in a package called zlib-devel or similar. Read again carefully the output ./configure produced and/or compiler warnings -and error reports, they often contain helpfull information to find out what's +and error reports, they often contain helpful information to find out what's going on. If you're stuck here and decide to post your problem on the xine-user mailing list, make sure you include these outputs. @@ -367,23 +350,21 @@ The Xv video-out plugin fails to compile! If you want to have Xv support compiled in, make sure you either have a shared Xv library on your system, e.g. ls /usr/X11R6/lib/libXv* should give you some .so libs, like this: - /usr/X11R6/lib/libXv.a - /usr/X11R6/lib/libXv.so - /usr/X11R6/lib/libXv.so.1 - + /usr/X11R6/lib/libXv.a + /usr/X11R6/lib/libXv.so + /usr/X11R6/lib/libXv.so.1 Alternatively you need to have libtool 1.4 or newer installed, then libXv.a is sufficient. Otherwise you can create the shared versions yourself: - ld --whole-archive -shared -o libXv.so.1 libXv.a - ln -s libXv.so.1 libXv.so - ldconfig - + ld --whole-archive -shared -o libXv.so.1 libXv.a + ln -s libXv.so.1 libXv.so + ldconfig Now you should be ready to build the Xv video-out plugin on your system. ------------------------------------------------------------------------------- -Build problems: frontend (gxine/xine-ui/...) +Build problems in frontends (gxine/xine-ui/...) I have installed xine-lib but the frontend complains about not finding it! @@ -392,37 +373,33 @@ You will probably find your answer there right away. As stated there (there again that hint *grin*), make sure that you have $prefix /bin in your path and that your linker is able to find libraries installed in -$prefix/lib (by the way, $prefix is where you installed your xine-lib to -earlier (yes, installing xine-lib with make install would be a good idea before -trying to compile the frontend ;)). +$prefix/lib By the way, $prefix is where you installed your xine-lib to earlier +(yes, installing xine-lib with make install would be a good idea before trying +to compile the frontend ;) ). ------------------------------------------------------------------------------- -Can I install xine in my home directory (without being root) ? - -yes. first set up a subdir where you install your private software, eg +Can I install xine in my home directory (without being root)? - $ mkdir ~/usr - +Sure. First set up a subdir where you install your private software, eg. + mkdir ~/xine -then you have to set a few environment variables - it's probably a good idea to +Then you have to set a few environment variables - it's probably a good idea to add this to your ~/.bashrc (or somewhere similar): + export PATH="$HOME/xine/bin:$PATH" + export LD_LIBRARY_PATH="$HOME/xine/lib:$LD_LIBRARY_PATH" - export PATH="$HOME/usr/bin:$PATH" - export LD_LIBRARY_PATH="$HOME/usr/lib:$LD_LIBRARY_PATH" - export CFLAGS="-I$HOME/usr/include -L$HOME/usr/lib -O3" - export ACLOCAL_FLAGS="-I $HOME/usr/share/aclocal" - - -now you can unpack tarballs e.g. in ~/usr/src (mkdir ~/usr/src if necessary) +Now you can unpack tarballs e.g. in ~/xine/src (mkdir ~/xine/src if necessary) and do a + ./configure --prefix=$HOME/xine + make install + +You also need to tell frontends using xine-lib, where to find it: + ./configure --prefix=$HOME/xine --with-xine-prefix=$HOME/xine - $ ./configure --prefix=$HOME/usr - $ make install - ------------------------------------------------------------------------------- -Chapter 3. Playback of various stream types +Playback of various stream types DVD Playback with xine @@ -436,42 +413,52 @@ To get DVD playback working, first make sure you have a symlink /dev/dvd pointing to your DVD device on your system. For example, if your DVD drive is the master ide drive on the second IDE channel, /dev/dvd should point to /dev/ hdc. Please note that if you are using the ide-scsi emulation on your system, -it is likely that you dvd drive got mapped to a scsi device node even though it -is an ide drive. In that case first check out you boot/kernel logs (or run -cdrecord -scanbus ) to find out which device it got mapped to and set the +it is likely that your DVD drive got mapped to a scsi device node even though +it is an ide drive. In that case first check out you boot/kernel logs (or run +cdrecord -scanbus) to find out which device it got mapped to and set the symlink accordingly (should be something like /dev/scd0, /dev/scd1, ... in that -case). Also make sure you (as a user) have sufficient (read) permissions on -your dvd drive (this could mean you either have to change the device -permissions or add your user to a special group (e.g. addgroup cdrom username), -depending on your setup and/or distribution. +case). Also make sure you (as a user) have sufficient (read and write) +permissions on your DVD drive. This could mean you either have to change the +device permissions or add your user to a special group (e.g. addgroup cdrom +username), depending on your setup and/or distribution. It is highly recommended to switch DMA mode on for your DVD drive (without it even very recent machines will have trouble producing smooth video output). Use -a command like hdparm -d 1 device on your dvd device. Please note that even if -you're using ide-scsi you will have to set the dma flag on the ide device node -(e.g. /dev/hdc), not the mapped /dev/scd scsi device. - -To be able to play back encrypted dvds you need to have libdvdcss installed on -your system (please check if this is legal where you live). - -Newer (post-2000) dvd drives (so-called RPC-2 drives) check the dvd region, -which means they'll prevent you from playing back dvds that have a different -region code from what the drive is set up for (most drives come with a factory -setting of region 0 so they can only play back region 0 dvds and there are not -many of those available). The easiest way to handle this is to use the -regionset utility from http://www.linuxtv.org/download/dvd/ -dvd_disc_20000215.tar.gz. - -Once you have everything set up, try something like gxine dvd:// or xine -p -dvd:// to start dvd playback. Some frontend also offer so-called autoplay -buttons or menu entries that start dvd playback immediately. +a command like hdparm -d 1 <device> on your DVD device. Please note that even +if you're using ide-scsi you will have to set the dma flag on the ide device +node (e.g. /dev/hdc), not the mapped /dev/scd scsi device. + +To be able to play back encrypted DVDs you need to have libdvdcss installed on +your system (please check if this is legal where you live). If you do not +understand what the term "encrypted DVD" means here: As a rule of thumb, every +DVD you have to pay money for is most likely encrypted. + +To make matters worse, apart from encryption, there is another obstacle to +take: the region code. The DVD authorities decided to divide the world into +eight geographical regions. Have a look at http://www.dvdforum.gr.jp/ +RegionMap.pdf if you want to know which number has been assigned to your +country. It is now their idea, that you shall only play DVDs, which have been +produced for your region. If you take a DVD off the shelf in your local store, +you should find a little globe-like icon which shows the region code the disc +is for. + +Newer (post-2000) DVD drives (so-called RPC-2 drives) check the DVD region, +which means they'll prevent you from playing back DVDs that have a different +region code from what the drive is set up for. Some drives come with a factory +setting of region 0 so they can play back any DVD until a region code is set. +Others refuse to play any DVD at all until they are told a region. The easiest +way to handle this is to use the regionset utility from http://sourceforge.net/ +project/showfiles.php?group_id=31346&release_id=168415 . + +Once you have everything set up, try something like gxine dvd:/ or xine -p dvd: +/ to start dvd playback. Some frontend also offer so-called autoplay buttons or +menu entries that start dvd playback immediately. Important: do not try to mount the DVD. Just insert it and hit the DVD autoplay button or start xine from the command line. If things do not work as expected, try running the xine-check shellscript that -comes with libxine to see if this gives you further hints on what could be -wrong. +comes with xine to see if this gives you further hints on what could be wrong. ------------------------------------------------------------------------------- @@ -483,7 +470,7 @@ usually means a cryptographic attack (which takes time) has to be used to access the DVD. You can download a tool to set the region code of RPC-Drives here: http:// -linuxtv.org/download/dvd/dvd_disc_20000215_css.tar.gz +sourceforge.net/project/showfiles.php?group_id=31346&release_id=168415 . Warning: Please be aware that the number of region code changes in RPC-2 drives is limited (usually about 5 times), after that your drive will stay locked to @@ -494,7 +481,7 @@ the region you last set it up for. I have problems setting up my RPC-2 drive for the right region! You can download a tool to set the region code of RPC-Drives here: http:// -linuxtv.org/download/dvd/dvd_disc_20000215_css.tar.gz +sourceforge.net/project/showfiles.php?group_id=31346&release_id=168415 . Warning: Please be aware that the number of region code changes in RPC-2 drives is limited (usually about 5 times), after that your drive will stay locked to @@ -511,10 +498,8 @@ play back the (S)VCD. At the moment, CD-i formats are not supported by xine. Do not try to mount the (S)VCD. Simply insert it into your CDROM drive and hit -the VCD autoplay button or start something like - gxine VCD:// - -from the command line. +the VCD autoplay button or start something like gxine vcd:/ or xine vcd:/ from +the command line. ------------------------------------------------------------------------------- @@ -522,14 +507,14 @@ Can I watch Quicktime (.mov, .mp4) files using xine? Quicktime is just a system layer (container format) which can contain various different audio and video formats. The system layer itself is fully supported -in xine. However, only very few typically used quicktime audio/video codecs are -natively supported yet. Luckily, if you are using a x86 compatible machine (any -recent PC hardware should do) you can install and use the original Quicktime -DLLs and watch most streams (trailers) that can be downloaded from the net. +in xine. However, some quicktime audio/video codecs are not natively supported +yet. Luckily, if you are using a x86 compatible machine (any recent PC hardware +should do) you can install and use the original Quicktime DLLs and watch most +streams (trailers) that can be downloaded from the net. Possibly the most convenient way to get the Quicktime DLLs is to download them -from the mplayer website http://www1.mplayerhq.hu/MPlayer/releases/codecs/. The -package is called "QuickTime5 DLLs". Unpack it and move everything you find +from the mplayer website http://www1.mplayerhq.hu/MPlayer/releases/codecs/ . +The package is called "QuickTime6 DLLs". Unpack it and move everything you find inside to /usr/lib/win32 (actually you can place them anywhere you want, e.g. someplace in your homedirectory, but then you'll have to set codec.win32_path in your xine config file accordingly). Restart xine then and you should be able @@ -539,10 +524,10 @@ to watch Quicktime trailers. Real Network files/streams -Can I watch Real (.rm, .ram) files using xine ? +Can I watch Real (.rm, .ram) files using xine? The situation with real files and streams is pretty similar to the situation -with Quicktime Streams (see above). Most newer real audio and video formats are +with Quicktime Streams (see above). The newer real audio and video formats are only supported by using binary-only codecs which are available from real networks but are not included in xine. @@ -557,7 +542,7 @@ config file accordingly. ------------------------------------------------------------------------------- -What about (live) network streams (pnm://, rtsp:// style urls) ? +What about (live) network streams (pnm://, rtsp:// style urls)? xine supports both pnm and rtsp streaming. However, digging out the actual pnm/ rtsp url can be tricky as they're often packed into heavy JavaScript and HTML @@ -571,15 +556,15 @@ actual pnm/rtsp url which can be opened using xine. ------------------------------------------------------------------------------- -Can I watch Windows Media (.asf/.wmv) files using xine? +Can I watch Windows Media (.asf/.wmv/.wma) files using xine? While the container format (system layer) ASF (wmv is just an alias) is fully -supported in xine, for newer windows media 8 and 9 based streams you'll need to +supported in xine, for newer windows media 9 based streams you'll need to install windows binary codecs (.DLLs). Possibly the most convenient way to get the windows DLLs is to download them -from the mplayer website http://www1.mplayerhq.hu/MPlayer/releases/codecs/. The -package is called "Win32 Codecpack". Unpack it and move everything you find +from the mplayer website http://www1.mplayerhq.hu/MPlayer/releases/codecs/ . +The package is called "Win32 Codecpack". Unpack it and move everything you find inside to /usr/lib/win32 (actually you can place them anywhere you want, e.g. someplace in your homedirectory, but then you'll have to set codec.win32_path in your xine config file accordingly). Restart xine then and you should be able @@ -587,7 +572,7 @@ to watch windows media streams. ------------------------------------------------------------------------------- -Can I watch Digital TV (Digital Video Broadcast) using xine ? +Can I watch Digital TV (Digital Video Broadcast) using xine? At the time of this writing DVB support is a very new and experimental feature in xine. The number of supported cards is pretty limited at the moment. See doc @@ -598,99 +583,90 @@ in xine. The number of supported cards is pretty limited at the moment. See doc How do I play streams from STDIN? Use something like: - cat stream.mpg | gxine stdin:/ - + cat stream.mpg | gxine stdin:/ ------------------------------------------------------------------------------- How can I watch files with external AVI subtitles? In xine 0.9.13 this used to be: - xine foo.avi%bar.sub - + xine foo.avi%bar.sub Latest xine-lib modules (1-beta3 or newer) support external subtitles for any -media file, not only AVI. In order to use it you can pass an special MRL +media file, not only AVI. In order to use it you can pass a special MRL construction like: - xine test.mpg#subtitle:file.sub - + xine test.mpg#subtitle:file.sub The external subtitles support can also be used by any xine frontend. Currently, just xine-ui implements this feature with a subtitle selection -dialog (press control+shift+s to see it). +dialog. ------------------------------------------------------------------------------- -Chapter 4. Running xine +Running xine I have a lot of dropped frames - what can I do? Your hardware might be too slow for xine. Make sure you turn on all speed optimizing options. A few things you should check (in order of importance): - * First of all, run the xine-check script included in xine-lib package - (probably already installed in your system). xine-check will report several - of the most common problems listed here. Sample output from xine-check: - $ xine-check - Please be patient, this script may take a while to run... - [ good ] you're using Linux, doing specific tests - [ good ] looks like you have a /proc filesystem mounted. - [ good ] You seem to have a reasonable kernel version (2.4.18) - [ good ] intel compatible processor, checking MTRR support - [ good ] you have MTRR support and there are some ranges set. - [ good ] found the player at /usr/local/bin/xine - [ good ] /usr/local/bin/xine is in your PATH - [ good ] found /usr/local/bin/xine-config in your PATH - [ good ] plugin directory /usr/local/lib/xine/plugins exists. - [ good ] found input plugins - [ good ] found demux plugins - [ good ] found decoder plugins - [ good ] found video_out plugins - [ good ] found audio_out plugins - [ good ] skin directory /usr/local/share/xine/skins exists. - [ good ] found logo in /usr/local/share/xine/skins - [ good ] I even found some skins. - [ good ] /dev/cdrom points to /dev/hdc - [ good ] /dev/dvd points to /dev/hdc - [ good ] DMA is enabled for your DVD drive - [ good ] found xvinfo: X-Video Extension version 2.2 - [ good ] your Xv extension supports YUV overlays (improves MPEG performance) - [ good ] your Xv extension supports packed YUV overlays - [ good ] Xv ports: YUY2 YV12 I420 UYVY - + * First of all, run the xine-check script included in xine package (probably + already installed in your system). xine-check will report several of the + most common problems listed here. Sample output from xine-check: + xine-check + Please be patient, this script may take a while to run... + [ good ] you're using Linux, doing specific tests + [ good ] looks like you have a /proc filesystem mounted. + [ good ] You seem to have a reasonable kernel version (2.4.18) + [ good ] intel compatible processor, checking MTRR support + [ good ] you have MTRR support and there are some ranges set. + [ good ] found the player at /usr/local/bin/xine + [ good ] /usr/local/bin/xine is in your PATH + [ good ] found /usr/local/bin/xine-config in your PATH + [ good ] plugin directory /usr/local/lib/xine/plugins exists. + [ good ] found input plugins + [ good ] found demux plugins + [ good ] found decoder plugins + [ good ] found video_out plugins + [ good ] found audio_out plugins + [ good ] skin directory /usr/local/share/xine/skins exists. + [ good ] found logo in /usr/local/share/xine/skins + [ good ] I even found some skins. + [ good ] /dev/cdrom points to /dev/hdc + [ good ] /dev/dvd points to /dev/hdc + [ good ] DMA is enabled for your DVD drive + [ good ] found xvinfo: X-Video Extension version 2.2 + [ good ] your Xv extension supports YUV overlays (improves MPEG performance) + [ good ] your Xv extension supports packed YUV overlays + [ good ] Xv ports: YUY2 YV12 I420 UYVY * Try to use the Xv driver, it greatly improves performance and quality - because hardware does image scaling and color conversion. The video section - contains important information about several Xv drivers. + because your graphics card does image scaling and colorspace conversion. + The video section contains important information about several Xv drivers. If Xv cannot be used for some reason, make sure your display is set up to 16bpp, not 24 or higher (reduces memory bandwith). Some Xv drivers may also have better performance with 16bpp. * Make sure the hard drive (or cdrom/dvd drive) which supplies the video data - is in DMA mode (if supported) + is in DMA mode (if supported). - On most linux-based systems, you can use hdparm to check this. Example: - hdparm /dev/hda - - ... - using_dma = 1 (on) - ... - + On most linux-based systems, you can use hdparm to check this: + hdparm /dev/hda + [...] + using_dma = 1 (on) + [...] You can enable DMA mode with the following command: - hdparm -d1 device_of_your_drive_that_supplies_video_data - + hdparm -d1 device_of_your_drive_that_supplies_video_data In some cases where this fails it helps to specify the dma mode to use, for example: - hdparm -d1 -X 66 device_of_your_drive_that_supplies_video_data - + hdparm -d1 -X 66 device_of_your_drive_that_supplies_video_data In RedHat 8.0 an additional entry in /etc/modules.conf - options ide-cd dma=1 - + options ide-cd dma=1 should help (reboot for this change to take effect). More information about this may be found here: http://oreilly.linux.com/pub - /a/linux/2000/06/29/hdparm.html + /a/linux/2000/06/29/hdparm.html . * Use a recent kernel which is optimized for your hardware. Old kernels may lack support for accelerated instructions like SSE, for example. @@ -717,16 +693,16 @@ optimizing options. A few things you should check (in order of importance): Use the "top" utility and verify under the "NI" column if the X process has a negative value, this indicates a higher priority. See "The X Window User HOWTO - Performance considerations" for further instructions http:// - www.tldp.org/HOWTO/XWindow-User-HOWTO/performance.html + www.tldp.org/HOWTO/XWindow-User-HOWTO/performance.html . - * Use the latest or a known-good gcc version. + * Use the latest or a known-good gcc version and build an optimized xine-lib + for your architecture. * Besides boosting X-server priority, sometimes it's possible to avoid discarding frames by making xine itself higher priority. This is not a recommended pratice since it will require to run xine as root, but you may give it a try if you want: - nice --5 xine - + nice --5 xine * xine needs high speed memory access which depends on your chip set. Make sure you enable all speed-improving options. @@ -734,9 +710,7 @@ optimizing options. A few things you should check (in order of importance): Especially the via apollo pro chipset is known to be quite weird, (most of all on my gigabyte board). If you can't configure the ram access thoroughly using the bios you might want to try some really nasty tricks, as explained - on (for example): - - http://www.overclockers.com/tips105/index03.asp + on (for example): http://www.overclockers.com/tips105/index03.asp This website centers around a windows-tool to tweak the chipset, you can do the same on FreeBSD with pciconf. On some linux distributions there are @@ -745,8 +719,13 @@ optimizing options. A few things you should check (in order of importance): * a nice performance tuning tool can be found here: http:// powertweak.sourceforge.net - * Set up and use raw devices for dvd access. Please note that this is usually - not worth the effort as the performance gain from it is very small if any. + * Set up and use raw devices for DVD access. Please note that the actual + performance gain during playback is very small if any, but since raw + devices are bypassing the kernel's buffer cache, Linux will not try to + cache the DVDs you play. This would not be useful, because xine does its + own caching and you usually play DVDs sequentially, which means you won't + reuse anything from the cache. But the problem would be that Linux throws + everything out of the cache that might be in there. Raw devices should be available in linux kernel 2.4.x and there are patches for older kernels available from: ftp://ftp.kernel.org/pub/linux/kernel/ @@ -754,40 +733,36 @@ optimizing options. A few things you should check (in order of importance): To use raw devices, first connect a free raw device to your dvd device, use something like: - raw /dev/raw1 /dev/hdc - + raw /dev/raw1 /dev/dvd - then create a link named "rdvd" pointing to that raw device: - raw /dev/raw1 /dev/hdc - + Then create a link named "rdvd" pointing to that raw device: + ln -s raw1 /dev/rdvd * For slow / high-latency dvd drives it might help to increase the number of - video buffers xine allocates. Try setting - video.num_buffers:500 - - to a higher value (e.g. 1000 or 2500) + video buffers xine allocates. Try setting video.num_buffers:500 to a higher + value (e.g. 1000 or 2500). ------------------------------------------------------------------------------- -Oki, xine doesn't drop frames now but video output still is not really smooth +Oki, xine doesn't drop frames now but video output still is not really smooth! -video output can be further improved by tuning your linux kernel: +Video output can be further improved by tuning your linux kernel: - * set HZ to 1000 in /usr/src/linux/include/asm-i386/param.h + * Set HZ to 1000 in /usr/src/linux/include/asm-i386/param.h - * try applying scheduler patches, especially the O(1) and the preemptive + * Try applying scheduler patches, especially the O(1) and the preemptive patches have proven useful at the time of this writing (spring 2003). -linux 2.5/2.6 will probably have these improvements out of the box. +Linux 2.5/2.6 will probably have these improvements out of the box. Miguel Freitas has written a nice article about his kernel multimedia -experiments here. +experiments . ------------------------------------------------------------------------------- I have problems when using xine on FreeBSD, Solaris, ... ! -Check out the the corresponding README files in the directory xine-lib/doc +Check out the the corresponding README files in the directory xine-lib/doc. ------------------------------------------------------------------------------- @@ -801,8 +776,7 @@ shell over ssh. To use it make sure you have aalib installed correctly before you configure/ build xine-lib and xine-ui. In addition to the xine binary a binary named aaxine should get built and installed. You can then use something like: - aaxine foo.mpg - + aaxine foo.mpg to use aalib video output. ------------------------------------------------------------------------------- @@ -817,14 +791,14 @@ their documentation. Also the comments in the config file might help. Does xine support my dxr3 / hollywood+ card? -while xine's focus is clearly on software decoding, the dxr3 is supported. +While xine's focus is clearly on software decoding, the dxr3 is supported. -you can find more information about using xine with the dxr3 here (also covers +You can find more information about using xine with the dxr3 here (also covers how to do tv output using the dxr3). ------------------------------------------------------------------------------- -Chapter 5. Audio related questions +Audio related questions What audio drivers does xine support? OSS? Alsa? Arts? Esd? @@ -835,8 +809,8 @@ sync). ------------------------------------------------------------------------------- -When I'm watching a movie, the sound effects are much higher volume than the -voices +When I'm watching a movie, the sound effects are much higher in volume than the +voices! Congratulations, you seem to have an original movie audio track there. @@ -847,18 +821,20 @@ Uhm. So you don't like it. Well, there are two things you can do: values are percent values, so a slider setting of 200 means that xine will double the volume of silent parts of the movie (loud parts stay the same). + If your frontend does not have such a compression slider, you can pass the + value with the MRL: + xine dvd:/#compression:150 + * If you have a dolby digital (AC3) soundtrack, you can try to enable - liba52's dynamic range compression setting - codec.a52_dynrng:1 - - in your xine config file (or use some gui config dialog). + liba52's dynamic range compression setting codec.a52_dynrng:1 in your xine + config file (or use some gui config dialog). ------------------------------------------------------------------------------- When I play this stream, xine shows video but there's no audio! -Well, first try a different audio driver ( gxine -A oss , gxine -A arts , xine --A alsa ...). +If this happens with any video, first try a different audio driver (gxine -A +oss, gxine -A arts, xine -A alsa ...). If this problem only occurs with one specific stream, maybe switching to a different audio channel (using the gui) helps. Some DVD streams have audio on @@ -877,11 +853,7 @@ Can xine produce 4-/5-channel surround audio output? Yep, it can do that using OSS or ALSA drivers, provided that the driver supports it. On startup xine tells you what modes are supported by your audio driver, e.g: - audio_alsa_out : supported modes are mono stereo (4-channel not enabled - in xine config) (5-channel not enabled in xine config) (5.1-channel not - enabled in xine config) (a/52 and DTS pass-through not enabled in xine - config) - + audio_alsa_out : supported modes are mono stereo (4-channel not enabled in xine config) (5-channel not enabled in xine config) (5.1-channel not enabled in xine config) (a/52 and DTS pass-through not enabled in xine config) On this machine 4-channel surround would be possible. However, since xine cannot detect if there are actually speakers connected to the additional @@ -890,16 +862,10 @@ channels, you'll have to activate that feature manually. You can do this either in the config dialog while xine is running (press the config button on the xine panel and go to the AUDIO tab) or have it the complicated way by editing the config file yourself which is located in your -home directory in .gxine/.xine: - # 4-channel: - audio.four_channel:1 - - # 5-channel: - audio.five_channel:1 - - # 5.1-channel - audio.five_lfe_channel:0 - +home directory in .gxine or .xine: + audio.four_channel:1 + audio.five_channel:1 + audio.five_lfe_channel:0 ------------------------------------------------------------------------------- @@ -907,9 +873,8 @@ What about ac3 output via spdif to an external ac3 decoder? xine can do that too. Pretty much the same story as for 4-/5-channel surround (see above). You can either use the config dialog or edit the config file (~ -/.xine/config/~/.gxine/config) yourself: - audio.a52_pass_through:1 - +/.xine/config or ~/.gxine/config) yourself: + audio.a52_pass_through:1 ------------------------------------------------------------------------------- @@ -927,87 +892,78 @@ Requirements 2. OSS driver - 3. An external decoder + 3. an external decoder - 4. A cable to connect the SBLive to the external decoder + 4. a cable to connect the SBLive to the external decoder -The configuration described was tested using the following equipment : -Soundblaster live 5.1 (rev 7) Yamaha DSP-AX620 external decoder +The configuration described was tested using a Soundblaster live 5.1 (rev 7) +with a Yamaha DSP-AX620 external decoder. ------------------------------------------------------------------------------- -The OSS driver is maintained by creative and can be downloaded at http:// -opensource.creative.com/ +Retrieving the driver -The driver package contains documentation on how to install it. Besides that -I'd like to add the following notes. +The OSS driver is maintained by creative and can be downloaded at http:// +opensource.creative.com/. The driver package contains documentation on how to +install it. Besides that I'd like to add the following notes. In order to compile and install these drivers, you need a valid kernel configuration file. For RedHat Linux's pre-compiled kernels these configuration -files can be found in /usr/src/linux/configs After you've located the correct +files can be found in /usr/src/linux/configs. After you've located the correct config file for your kernel, you need to copy it to /usr/src/linux/.config For example, when you run the 2.4.18-i686 kernel do : - cp /usr/src/linux/configs/kernel-2.4.18-i686.config /usr/src/linux/.config - + cp /usr/src/linux/configs/kernel-2.4.18-i686.config /usr/src/linux/.config Make sure that the emu10k1 module that is currently installed is not loaded. To -unload the modules : - /sbin/modprobe -rv emu10k1.o ac97_codec.o - +unload the modules: + /sbin/modprobe -rv emu10k1.o ac97_codec.o If this mentions that the device is busy, some program is using the driver. Some example could be a mixer application or sound daemon like artsd. You'll need to close down the applications before continuing. At success it should -print something like : - # delete emu10k1 - # delete ac97_codec - # delete soundcore - +print something like: + # delete emu10k1 + # delete ac97_codec + # delete soundcore Run make in the directory where you unpacked the driver and follow the instructions printed at the end of each step. The last step should be: - make install-tools - + make install-tools As the README of the driver package mentions the SPDIF AC3 output doesn't work by default. In the directory utils/scripts an emu10k1.conf file can be found which need to be placed in the default installation directory (/usr/local/etc). After this the emu10k1.conf needs to be modified. The following settings worked -fine for me (I don't use the analog outputs of the card) : - CARD_IS_5_1=yes - USE_DIGITAL_OUTPUT=yes - ENABLE_TONE_CONTROL=yes - AC3PASSTHROUGH=yes - ENABLE_LIVEDRIVE_IR=no - INVERT_REAR=no - MULTICHANNEL=yes - ROUTE_ALL_TO_SUB=no - ANALOG_FRONT_BOOST=no - SURROUND=no - PROLOGIC=no - ENABLE_CD_Spdif=yes - ENABLE_OPTICAL_SPDIF=no - ENABLE_LINE2_MIC2=no - ENABLE_RCA_SPDIF=no - ENABLE_RCA_AUX=no - +fine for me (I don't use the analog outputs of the card): + CARD_IS_5_1=yes + USE_DIGITAL_OUTPUT=yes + ENABLE_TONE_CONTROL=yes + AC3PASSTHROUGH=yes + ENABLE_LIVEDRIVE_IR=no + INVERT_REAR=no + MULTICHANNEL=yes + ROUTE_ALL_TO_SUB=no + ANALOG_FRONT_BOOST=no + SURROUND=no + PROLOGIC=no + ENABLE_CD_Spdif=yes + ENABLE_OPTICAL_SPDIF=no + ENABLE_LINE2_MIC2=no + ENABLE_RCA_SPDIF=no + ENABLE_RCA_AUX=no After modifying the emu10k1.conf, you need to modify your /etc/modules.conf and make sure the following lines are in there. - alias sound-slot-0 emu10k1 - post-install emu10k1 /usr/local/etc/emu-script - + alias sound-slot-0 emu10k1 + post-install emu10k1 /usr/local/etc/emu-script After saving the changes to modules.conf, run - /sbin/depmod -a - + /sbin/depmod -a Now, you're ready to load the new modules and set the correct options for it. -To load the modules run : - /sbin/modprobe emu10k1 - +To load the modules run: + /sbin/modprobe emu10k1 ------------------------------------------------------------------------------- Setting up xine for SPDIF (AC3_passthrough) output -You can either use the config dialog or edit the config file (~/.xine/config2) -yourself: - audio.a52_pass_through:1 - +You can either use the config dialog of your frontend or edit the config file +(~/.xine/config) yourself: + audio.a52_pass_through:1 In case the setting is not in the file you can add it. ------------------------------------------------------------------------------- @@ -1015,21 +971,21 @@ In case the setting is not in the file you can add it. The cable used for the SBLive can easily be self-made or buy a stereo 3.5mm jack to dual RCA cable. - What you need to make the cable yourself : - a) stereo 3.5mm jack plug - b) RCA plug - c) shielded cable (video coax 75 Ohm will do) +What you need to make the cable yourself: - Connect them as follows : + * stereo 3.5mm jack plug + + * RCA plug + * shielded cable (video coax 75 Ohm will do) + +Connect them as follows : center pin jackplug ------|----- center pin RCA plug GND __|__ GND - In order to test it use a DVD with AC3 or DTS track start xine and select the right audio track from user interface or start xine as: - xine dvd://1 -a 0 - + xine dvd:/1 -a 0 The external decoder should display something like "Dolby Digital" in case the selected audio track contains AC3 data or "DTS" in case the selected audio track contains DTS data. Of course stereo audio also goes through the SPDIF @@ -1095,7 +1051,7 @@ accurate and should be used only in emergency situations. ------------------------------------------------------------------------------- -Chapter 6. Video related questions +Video related questions I can hear the audio - but I don't see a picture! @@ -1111,8 +1067,7 @@ How can I make xine use the Xv extension and what drivers do I need? xine will normally use Xv by default if it is available. In some cases you might need to choose Xv playback manually (when the ~/.xine/config file for some reason says that you want to use XShm): - xine -V Xv foo.mpg - + xine -V Xv foo.mpg If this doesn't work for you, it may be possible that Xv is not present on your system. @@ -1131,7 +1086,7 @@ are some hints for individual gfx chips: xfree/experimental trident drivers (for the CyberBlade XP a driver exists here: http://www.xfree86.org/~alanh/ ) - * nvidia: With newer GeForce cards, Xv should work with XFree 4.2.0 or newer, + * nVidia: With newer GeForce cards, Xv should work with XFree 4.2.0 or newer, for older RivaTNT cards use the binary drivers from nvidia (of course the binary drivers work as well for GeForce cards) @@ -1143,7 +1098,7 @@ are some hints for individual gfx chips: * Permedia 2/3 has Xv support in XFree 4.x * Savage: at least some older drivers tend to lock up the whole machine, try - the drivers available from www.probo.com/timr/savage40.html . + the drivers available from http://www.probo.com/timr/savage40.html . * SIS: certain controllers (more info needed!) have Xv support in XFree 4.x @@ -1156,7 +1111,7 @@ are some hints for individual gfx chips: Xfree 4.x * Matrox: G200 or newer (but not Parhelia) have Xv support in XFree 4.x. For - parhelia, use the binary only drivers available from matrox' website. + Parhelia, use the binary only drivers available from matrox' website. ------------------------------------------------------------------------------- @@ -1164,8 +1119,7 @@ Some parts of my X Desktop get transparent when xine plays the video! Looks like some colors on your GUI match the colorkey Xv uses. You can change the colorkey value to avoid this. There should be a line like: - video.XV_COLORKEY:2110 - + video.XV_COLORKEY:2110 in your ~/.xine/config file where you can change the color that's used by xine for the video overlay. @@ -1180,8 +1134,7 @@ Try pressing "a" to change the aspect ratio. What is the difference between discarded and skipped frames? Sometimes xine will output a message like that: - 200 frames delivered, XX frames skipped, YY frames discarded - + 200 frames delivered, XX frames skipped, YY frames discarded The difference between these counters is a little subtle for the non developer. There are two threads running in order to display video: the decoder thread @@ -1236,10 +1189,10 @@ drivers contain slow copies and accessing the video card directly may yield performance gains. Drivers that access hardware directly includes VIDIX (warning: requires root -priviledges) and SyncFB (requires kernel helper - Matrox only). User may try -one of those, but should be warned that with root access they can cause the -system to crash hard. The support is also limited to a couple of graphics cards -only. +priviledges or kernel helper) and SyncFB (requires kernel helper - Matrox +only). User may try one of those, but should be warned that with root access +they can cause the system to crash hard. The support is also limited to a +couple of graphics cards only. Graphic workstations like SGI have usually a good support for OpenGL. In that case, using OpenGL may be a better choice than XShm. However for most desktop @@ -1247,22 +1200,18 @@ systems the performance of OpenGL will be quite bad. ------------------------------------------------------------------------------- -Chapter 7. Error Messages: What they mean and what you can do +Error Messages: What they mean and what you can do Starting xine fails with complains about audio drivers/devices! You can select the audio driver using the -A option. So try: - xine -A null - + xine -A null If you have ALSA drivers installed, try: - xine -A alsa - + xine -A alsa If you run ESD (not recommended), try: - xine -A esd - + xine -A esd If you run artsd, try: - xine -A arts - + xine -A arts ------------------------------------------------------------------------------- @@ -1271,11 +1220,10 @@ If you run artsd, try: You got the Xv extension, but your video card driver doesn't support it. First try to find a driver that does support Xv on your hardware (check your graphics card vendor). If your driver has Xv support but you can't get it working, try -at a lower resolution (1024x768 is enough even for anamorphic mpeg-2). +at a lower resolution (1024x768 is enough even for anamorphic DVDs). If all that fails, you can still use plain X11/XShm: - gxine -V XShm foo.vob - + gxine -V XShm foo.vob ------------------------------------------------------------------------------- @@ -1283,11 +1231,18 @@ If all that fails, you can still use plain X11/XShm: You probably don't have /dev/dvd (check that). If so, simply create a link /dev /dvd that points to your DVD device. Something like... - cd /dev - ln -s hdc dvd - -...should do the job. Also make sure you have read access on the device the -symlink points to. See the dvd playback section for more information. + ln -s hdc /dev/dvd +...should do the job. Also make sure you have read and write access on the +device the symlink points to. See the dvd playback section for more +information. + +------------------------------------------------------------------------------- + +My drive doesn't work and the kernel says "status=0x51 { DriveReady +SeekComplete Error }" + +This error can be fixed by recompiling your kernel with the option "Use +multi-mode by default" enabled in the IDE settings. ------------------------------------------------------------------------------- @@ -1321,8 +1276,7 @@ two possibilities. Either deactivate ESD (temporarily) by right clicking on the sound monitor applet and selecting "Place Esound in standby" or just kill it. Then xine will use OSS audio output. The other method is to make xine use ESD for audio output with: - gxine -A esd - + gxine -A esd This may result in worse playback - exact syncronization is not possible with esd, so using oss should be preferred. @@ -1330,8 +1284,7 @@ If you are using KDE, there is the possibility that the aRts sound daemon is currently running and thus blocking your sound device. You can check that by starting the aRts control (in your KDE menu it should be under Multimedia). If it is running, you can either use the aRts audio output plugin: - gxine -A arts - + gxine -A arts Or you suspend the aRts daemon by checking the appropriate option in your aRts control. (recommended) @@ -1375,15 +1328,15 @@ to help you and of course to fix this, we need some information. So, let's go through the checklist and maybe prepare a nice bug report for the xine-user mailing list: - * did xine really crash (segfault) or did it hang (deadlock) ? + * Did xine really crash (segfault) or did it hang (deadlock)? - * can you reproduce the bug? (e.g. do you remember what you did and when you + * Can you reproduce the bug? (e.g. do you remember what you did and when you do it again it crashes again?) - * is that a specific media file or format which crashes xine? (have you tried + * Is that a specific media file or format which crashes xine? (Have you tried other files types?) - * check the console output (and include it in a bug report), maybe earlier + * Check the console output (and include it in a bug report), maybe earlier there is some output that points to the problem. * Your X server just froze on you? unfortunately that's a known problem with @@ -1395,7 +1348,7 @@ mailing list: Maybe at the time you read this, there's an XFree upgrade which fixes this for the Savage driver. If that works for you, please notify the xine crew - at < xine-user@lists.sf.net >, so they can update this FAQ! + at <xine-user@lists.sourceforge.net>, so they can update this FAQ! * Even though we try to make each release as bug free as possible, xine is still under heavy development (nice excuse, isn't it? *grin*). |