September 12, 2008

How-To: Compile and Install xine-lib 1.1.15 in Debian Lenny and Ubuntu 8.04

Xine is an engine which allows to play audio CDs, DVDs, VCDs, various audio and video formats like AVI, WMV, MOV to list a few. The last version of xine-lib is 1.1.15, released on August 14, 2008.

Installation in Debian Lenny
To compile from source and install xine-lib 1.1.15 in Debian Lenny you'll have to follow the steps below.

1. Enable the sources repositories
Make sure you have a line like the following in your /etc/apt/sources.list file:

deb-src lenny main contrib non-free

Then update the packages list as root:

apt-get update

2. Install the dependencies
As root, type:

apt-get build-dep libxine1

This will install the development packages and the tools needed to compile Xine.

3. Download the source, compile and install
Download the last xine-lib version from here, uncompress it and compile as usual:

make install

Last one as root.

xine-lib should be now installed in /usr/local/lib/.

Installation in Ubuntu 8.04
Ubuntu Hardy comes with libxine 1.1.11, so if you want to update to the latest version, you need to follow the steps above, with the exception of preceding the commands which need root privileges with sudo. For example:

sudo apt-get build-dep libxine1

sudo make install

With your user's password.

Video players using Xine
I can recommend Kaffeine and Xine-UI, both these players use the Xine engine.

Kaffeine 0.8.6

Updated: Sep 12, 2008

September 10, 2008

How-To: Install Video Codecs and DVD Support in Ubuntu/Kubuntu 8.04 'Hardy Heron'

Medibuntu is a project somewhat similar with for Debian, providing packages which are not included in the official Ubuntu repositories due to legal issues. In order to make use of the packages included in Medibuntu (including the non-free video codecs w32codecs and libdvdcss2 for watching ecrypted DVDs), you will only need to follow several easy steps explained below.

1. Add the Medibuntu repository address to /etc/apt/sources.list
Edit as root the /etc/apt/sources.list file (e.g. sudo nano /etc/apt/sources.list or kdesu kate /etc/apt/sources.list) and add the following two lines:

deb hardy free non-free
deb-src hardy free non-free

2. Update the packages list
Issue the following command:

sudo apt-get update

3. Install the w32codecs and libdvdcss2 packages
To install those two packages, just type in the command:

sudo apt-get install w32codecs libdvdcss2

It should be done now. The codecs will be installed in /usr/lib/codecs/ and the DVD library in /usr/lib/

Another way to install libdvdcss2 is to first install the package libdvdread3:

sudo apt-get install libdvdread3

And then running the command:

sudo /usr/share/doc/libdvdread3/

As video players, I recommend SMPlayer and Kaffeine, the first using the MPlayer engine, while the latter uses the Xine engine. They both have subtitle support and many powerful features (like remembering video position and settings after closing the application in SMPlayer), and Kaffeine also reads DVD menus.

SMPlayer 0.6.0 running in Kubuntu 8.04

To install either of those, use one of the commands below:

sudo apt-get install smplayer
sudo apt-get install kaffeine

Updated: Sep 10, 2008 (Created: Sep 10, 2008)