Let's play DVD on Linux

I assume there is a lot of people who has DVD-ROM recently. You can watch DVD easily on Windows, now let's do on Linux too. We use xine here.

The latest version of liberally xine-lib-1-rc4a was released on 05/12/2004 and user interface xine-ui 0.99.1 was released on 04/17/2004 and they are quite stable now.

First of all let's start with hardware setting.

Check the link destination with

# ls -l /dev/cdrom

If you get /dev/cdrom -> /dev/hdc, then change mode of link destination hdc. If you get /dev/scd0 then change its mode respectably.

# chmod 666 /dev/hdc

If your dvd drive is atapi drive which is indicated hd*, then add a line hdparm -d1 /dev/hd* to /etc/rc.d/rc.local for <Redhat7.3 or options ide-cd dma-1 to /etc/modules.conf for Redhat8.0. If your dvd drive is scsi then you don't need this setting.

Then set symbolic link to dvd device.

# ln -s /dev/hdc /dev/dvd

Then setup raw device.

# chmod 666 /dev/raw/raw1
# raw /dev/raw/raw1 /dev/hdc
# ln -s /dev/raw/raw1 /dev/rdvd

Now let's download the source files.

Get xine-lib and xine-ui from http://xinehq.de/ and libdvdcss, libdvdread from http://www.dtek.chalmers.se/groups/dvd/downloads.shtml.

Then extract these files.

$ tar xvzf xine-lib-1-rc4a.tar.gz
$ tar xvzf xine-ui-0.99.1.tar.gz
$ tar xvzf libdvdcss-1.2.6.tar.gz
$ tar xvzf libdvdread-0.9.4.tar.gz

Set the environment variable

$ export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

At first install the library.

$ cd xine-lib-1-rc4a
$ ./configure
$ make
$ sudo make install

Then install the user interface.

$ cd ../xine-ui-0.99.1
$ ./configure
$ make
$ sudo make install

Then install the plugin.

$ cd ../libdvdcss-1.2.6
$ ./configure
$ make
$ sudo make install
$ cd ../libdvdread-0.9.4
$ ./configure
$ make
$ sudo make install

Now finished install. Input xine at prompt. When the UI windows comes up enter your DVD disk to drive and click the DVD button. You can see playing movie.


Back

Modified date:05/16/2004, 14:02:08