Linux DVD HOWTO

Here's a really quick howto on Linux DVD playback.

Grab the following if you haven't already done so:

1. Kernel Patch (adds DVD IOCTL implementation)
For Kernel 2.2.13 [ http://www.kernel.dk/nov7-2.2.diff ], 2.2.14 [ http://www.kernel.dk/dec21-2.2.diff ], 2.3.33 [ http://www.kernel.dk/dec21.diff ] or other [ http://www.kernel.dk/ ]
2. Linux DVD Tarball [ http://www.opendvd.org/dvd-munitions.tar.gz ]
3. Nasm 0.98 src [ ftp://gigaserv.uni-paderborn.de/ftp/disk3/linux/sunsite/devel/lang/assemblers/nasm-0.98.tar.gz ] - RPM libc5 [ ftp://ftp.uk.kernel.org/pub/software/devel/nasm/binaries/linux/i386-libc5/nasm-0.98-1.i386.rpm ] - RPM libc6 [ ftp://ftp.uk.kernel.org/pub/software/devel/nasm/binaries/linux/i386-libc6/nasm-0.98-1.i386.rpm ] (needed for compiling nist)
Debian users can use: "apt-get install nasm"

Here's how to proceed:

1. Patch the kernel:
cd /usr/src
patch -p0 < nov7-2.2.diff
- [ replace nov7-2.2.diff with the path & filename of your patch ]
Compile your kernel. Check the Linux Kernel HOWTO for more info.

2. Unpack Linux DVD Tarball
cd /home/css
- [ replace /home/css with the dir where you put the src tarball ]
mkdir dvd; cd dvd
tar -zxvf ../dvd-munitions.tar.gz

3. Compile the CSS utilities
cd /home/css/dvd/css-auth
- [ replace /home/css with the correct path ]
make
_read_ README for further info

4. Compile Nasm (or install binaries)
tar -zxvf nasm-0.98.tar.gz
cd nasm-0.98
./configure
make; make install

5. Compile Nist (mpeg2player)
cd /home/css/dvd/nist
- [ replace /home/css with correct path ]
./autogen.sh
make; make install

If nist for some reason segfaults on you, try using the (old) precompiled version [ http://home.germany.net/100-5083/nist-0.6.binary.tgz ].
Attention K6 Users: Change -march=i686 to -march=k6 in configure.in, and add "#define HAVE_3Dnow" in src/video/recon.c

6. Playing a DVD
cd /to/the/correct/dir/css-auth
tstdvd /path/to/dvd/device
mount the dvd somewhere
tstdvd /path/to/dvd/device /mount/path/video_ts/vts_01_1.vob
cat /dvd/video_ts/vts_01_[1-9].vob|css-cat -v1P -|mpeg2player -vob -f -

$Id: linuxdvd.html,v 1.10 2000/01/09 21:27:50 dvdcvs Exp $

Copyright 2000 http://www.opendvd.org/