13 June 2008

Enabling commercial DVD playback in Ubuntu

I found a better way than what I have at the bottom of this post. I'm led to believe that this any or all of this can be considered illegal in some places, so proceed at your own risk.

Code:
$ sudo -i
$ echo deb http://packages.medibuntu.org/ hardy free non-free >> /etc/apt/sources.list
$ echo deb-src http://packages.medibuntu.org/ hardy free non-free >> /etc/apt/sources.list
$ wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | apt-key add -
$ apt-get update
$ apt-get install libdvdcss2

Normally you can just do this with the following two commands:

Code:
$ sudo apt-get install totem-xine libxine1-ffmpeg libdvdread3
$ sudo /usr/share/doc/libdvdread3/install-css.sh
But since I'm using amd64 architecture and libdvdcss2 isn't offered in the Ubuntu repository I just downloaded the source from http://download.videolan.org/pub/libdvdcss/ and used:

Code:
$ tar zxvvf libdvdcss-1.2.9.tar.gz
$ cd libdvdcss-1.2.9
$ dpkg-buildpackage
(This might require the installation of a few other packages.)
$ cd ..
$ sudo dkpg -i libdvdcss2_1.2.9-1_amd64.deb

I had a problem with the encoding being used and had to apply this patch.

Not to mention, the install-css.sh script is broken because it points to the wrong location for download and it looks for an older version.

No comments:

Post a Comment