SOHO : Small Office Home Office
Freeware - Opensource software tips, tricks, tweaks & fixes for managing, securing, improving the performance of SOHO Desktop, Laptop, Networks

Tuesday, July 6, 2010

How to play DVD in ubuntu?

DVD are usually encrypted and therefore, due to legal reasons, Ubuntu Linux does not ship the package which decrypt DVD.
However, Ubuntu offers an easy way to get this package install. This tutorial will show which packages have to be installed in order to get most multimedia applications to run under Ubuntu.
The default movie player on Ubuntu is Totem, a Gnome movie player based on GStreamer or xine. As GStreamer is the default library used with Totem, this tutorial will be focused on GStreamer backend.
To get started with the codecs, we are going to install all the GStreamer library packages available on the repository:
$ sudo apt-get install gstreamer0.10-ffmpeg gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse
From now on, you should be able to play any divx, non encrypted DVD and music.
In order to be able to play encrypted DVDs, we need to install libdvdcss2 package. As I said earlier, this package is not provided by Ubuntu for legal reasons. However, a script is supplied in order to easily install this package. This script is provided bylibdvdread3 package.
Let's go back to the command line and, for people using Ubuntu Feisty 7.04 or Ubuntu Edgy 6.10, type:
$ sudo /usr/share/doc/libdvdread3/
People using releases prior to Edgy Eft, such as Ubuntu Dapper 6.04 will type:
$ sudo /usr/share/doc/libdvdread3/examples/
People using Debian based distribution might have to use:
$ wget
$ sudo dpkg -i libdvdcss2_1.2.5-1_i386.deb
Now, libdvdcss2 is installed and that's it :), insert a DVD in your player, Totem should open up and the DVD start playing.

No comments:

Post a Comment