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 debian-multimedia.org 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 http://packages.medibuntu.org/ hardy free non-free
deb-src http://packages.medibuntu.org/ 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/libdvdcss2.so.2.0.8.

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/install-css.sh

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)

3 comments:

Anonymous said...

I'd like to read the article, but those Lasik ads cover part of the text. Too bad because it looks interesting.

Anonymous said...

ad block plus in firefox does wonders...

Christian said...

Isnt it easier to just install the package (x/k)ubuntu-restricted-extras?