Hi, ich hatte mal was aus dem Netz gesaugt. Da ich die URL nicht mehr habe, werfe ich das mal hier in die Mail, sorry für den Traffic, sollte sich aber machen lassen. Hope it helps. Gruß ce =============== Xine - by gadget73 INTRODUCTION This is my little howto for getting xine to work, and play DVD movies. This is my first attempt at a howto, and if you notice any glaring mistakes or typos, after you finish laughing at my idiocy, please contact me and I'll fix it. This is a step-by-step guide to getting xine 0.98 running. To do this, my victim box is a dual Pentium pro 200 system running a mostly stock Slackware 8 system and kernel 2.4.17, Xfree86 ver 4.1 and an S3 Virge 2 meg PCI video card. This isn't really a fast enough system to properly play a DVD on, but it was a handy test subject, so I'll use it anyway. Other notes on this document. This howto is a mix of information from the how-to available at HTTP://dvd.sourceforge.net/xine-howto/en_GB/html/howto.html and my own experiences. I am writing this as I am installing it, so it aims to be a step-by-step overview of the process. When a command to be entered appears, I will be sure to separate it from the rest of my rambling, so if you want, you can bypass all that, and get to the point of the matter. Commands to be run as a standard user are preceded with a $ and commands to be run as root are preceded with a #. In general, it's a good idea to do as little as possible as root user in the *nix world, and I will try to stick to my own advice for this guide. This howto does assume that a properly functioning Xwindows and sound system are installed and configured. Xine can use OSS, ALSA 0.9, Irix Audio, Sun Audio aRts and ESD. Any of these is OK, so long as at least one one works on your system. I Software Needed First you will need xine-ui and xine-libs ver 0.98 available at HTTP://xine.sourceforge.net/xine_frame.php?page=download.html grab both of them, and save somewhere you have read/write permissions to, such as your home directory. If you wish to have encrypted DVD (almost all DVDs are encrypted) you will need the dvdnav plugin, available here HTTP://sourceforge.net/project/showfiles.php?group_id=31346&release_id=52555 To build dvdnav, libdvdread and libdvdcss 0.3 are also needed. libdvdread available here HTTP://www.dtek.chalmers.se/groups/dvd/dist/libdvdread-0.9.2.tar.gz libdvdcss available here HTTP://www.dtek.chalmers.se/groups/dvd/dist/libdvdcss-0.0.3.ogle3.tar.gz Also, for avi (non-DivX) videos, such as stuff using the Indeo decoder, the win32dll package is available here HTTP://bpinaud.dyndns.org/video/w32codec.tar.bz2 or here HTTP://divx.euro.ru/download.htm II Building and installing Next, you will want to un-tar the xine stuff, tar -zxvf filename.tar.gz. After unpacking the tarballs, you will want to cd into the xine-lib-0.9.8 directory and run ./configure. There are some options you might want to pass to it, but usually they are not needed. For the list, run ./configure --help. Once configure completes, it will present a summary of what it's going to build. Mine, for example looks like this: xine-lib summary: ---------------- * video driver plugins: - XShm (X11 shared memory) - SyncFB (for Matrox G200/G400 cards) - Xv (XVideo *static*) - fb (Linux framebuffer device) * audio driver plugins: - oss (Open Sound System) * decoder plugins: - a52 - dts - mpeg2 - spu - ffmpeg - mad - vfill - divx4 - vorbis - w32dll * demultiplexer plugins: - avi - mpeg - mpeg_block - mpeg_audio - mpeg_elem - mpeg_pes - mpeg_ts - qt - asf - ogg * input plugins: - file - net - stdin - rtp - HTTP - dvd - vcd - cda --- Xv is generally a VERY good thing, as the performance difference between XShm and Xv is quite drastic, even on a nice fast box. Xv also allows de-interlacing DVDs with the ctrl+I keyboard shortcut. After configure completes, run $make This might take awhile, so have patience. If all went well with that, su to root, and #make install This will install all the libraries where they need to be. Once thats done, type #export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH then run #ldconfig to add the xine library paths, so when you build xine-ui, it can find the xine-libs that you just built. Provided all went well with xine-libs, we can move on to xine-ui. cd into the xine-ui-0.9.8 dir, and run $./configure If you get any errors about xine-lib not being installed during the configure, make sure you exported the xine lib path, and ran ldconfig to update everything. After configure, do $make then su to root and #make install If you have no desire or need to play DVD movies, you're done at this point. Even if you plan to build the dvd plugins, it might not be a bad idea to check things out, and make sure it works for you. III DVD support A. libdvdread installation download and un-tar the libdvdread-0.9.2 package. $cd libdvdread 0.9.2 $./configure $make #make install #ldconfig << probably not needed, but it wont hurt done. B. libdvdcss installation download and un-tar. the libdvdcss-0.3 package. It is avail in tar.bz2 format, the command to un-pack it is $tar -yxvf There is a libdvdcss 1.0 available, but it seems to be incompatible with xine for dvd playing purposes. it is probably possible to make this work, but 0.3 works out of the box, so I've never had any reason to try and get 1.0 to work. $cd libdvdcss-0.3 $./configure this will give a summary, mine for example is this: global configuration -------------------- system : linux-gnu architecture : i686 ppro mmx optimizations : 1 libdvdcss configuration ----------------------- can be built : 1 will be built : 1 need BSDI libdvd : 0 link statically : 1 $make #make install #ldconfig << probably not needed, but it wont hurt. C. dvdnav download and un-tar the xine-dvdnav plugin $./configure $make #make install The dvdnav plugin should now be installed. First a few other little things to take care of before DVD will work properly. By default, xine looks to /dev/dvd as the dvd device. this can be changed in xine's config (little wrench icon in the player) or by editing the config file found in $HOME/.xine/config. The alternative is to actually create a /dev/dvd by creating a symlink to the actual device. In Linux, IDE drives are named /dev/hda for promary master, /dev/hdb for primary slave, /dev/hdc for secondary master, and /dev/hdd for secondary slave. To create this link, as root # ln -s /dev/hd? /dev/dvd you should now be set up for DVD playback in Linux. Enjoy IV win32 codec installation These are decoders from MS Windows to play some video types that have no native Linux decoder. Xine uses some wine code to make this work. #mkdir /usr/local/lib/win32 #cp w32codec.tar.bz2 /usr/local/lib/win32 #tar -yxf w32codec.tar.bz2 # rm w32codec.tar.bz2 Removing the tarball is unecesary, but there's no point in leaving it there. Xine should play just about everything now, except Sorenson (Quicktime 4) and RealPlayer formats. A DivX 5 codec is pending from www.divx.com, and when that becomes available, I will try to update this howto to include instructons for that. For the full list of supported/unsupported, check the xine feature list here http://xine.sourceforge.net/xine_frame.php?page=features.html V fine tuning There are a few things that may or may not improve xine's performance. First, make sure the video driver xine is using is Xv, if your video card and X server support it. Xfree86 4.0 and newer are needed to use this. This can be checked in either the preferences menu (wrench icon) or in ~/.xine/config. Editing the config file probably provides the greatest amount of control over xine, as there are many variables which can be set that are not easily accessed via the GUI config. Another place where performace can be tuned is by changing the IDE parameters on the DVD drive. For more information regarding hdparm and it's use, please see http://linux.oreillynet.com/pub/a/linux/2000/06/29/hdparm.html Enabling the gui.use_xvidect: variable in the config (or checking it's box) might also be of some help for smoothing fullscreen playback. This allows xine to drop the video resolution when switching to fullscreen mode. This goes to the lowest resolution specified in the XF86Config file, often 640x480. Decreasing color depth from 32 or 24 bit to 16 bit might also help, but there will be a small amount of detail loss noticed. on the other hand, increasing from 16 to 24 or 32 bit can make video playback more detailed. VI Troubleshooting No sound Assuming your sound system works, and is a type supported by Xine, make sure that the sound driver is not set to NULL in the config. if it is, set it to auto, and re-launch xine. So long as the sound system works correctly, this should fix the problem. If not, see what output launching xine in a terminal produces with regards to sound. Often it will be a permission denied error on /dev/dsp or /dev/mixer Xine crashes See what kind of errors are produced when running in a terminal. If they mention anything about video_out_xv, try changing from the Xv driver to XShm. The video card in your system might not properly support Xv. My Pentium Pro for example can play SVCD and regular media fine in Xv mode, but it crashes when trying to play a DVD. DVD will play in XShm, but very poorly. If it is a codec error, see if you have the proper one installed. xine will usually tell you what it is looking for, or will indicate the problem in some way. For example, a DivX 5 clip gives this error demux_avi: unknown avi format DX50 xine_play: demuxer failed to start VII More Information Much information for this howto came from the official one at xine's project page here http://dvd.sourceforge.net/xine-howto/ Questions, comments, flames? Post on the messageboard here at linuxpeople.cc or in the #linuxpeople channel on DALnet. My profile (gadget73) has my email address available, so please feel free to email me with questions/comments.