How to enable DVD playback in Ubuntu

But one thing that you can't do with a stock Ubuntu installation is play commercial DVDs. While the Totem movie player will certainly make a valiant effort at playing the video on any DVD you stick in your computer, it won't manage to bring up DVD menus and may have problems playing the video. It turns out it's very easy to enable DVD playback. Just open a terminal and type the following two lines (entering your root password when prompted):
sudo apt-get install totem-xine libxine1-ffmpeg libdvdread3
sudo /usr/share/doc/libdvdread3/install-css.sh
Or if you'd rather not play around with the terminal, you can open the Synaptic Package Manager and do a search for VLC. The VideoLan media player is capable of playing DVDs without any tweaking.
[via Tech-Recipes]












Comments
7
Subscribe to commentsBig JohnFeb 10th 2008 12:51PM
Is this not included in the install for legal reasons, or what? It seems kind of silly.
Richard BaileyFeb 10th 2008 7:19PM
Yeah it's legal reasons. You have to pay a license fee for DVD playback, and since Ubuntu is free as in no-pay, they can't include it pre-installed.
It should be said that circumventing CSS in the US is not legal.
BalazsFeb 10th 2008 1:31PM
I recently did this for a friend, and I only used the second line in Ubuntu (gutsy gibbon).
And even VLC requires the libread3 to be installed. I was actually a bit annoyed at that, I thought it would work with VLC no matter what.
FranklinFeb 11th 2008 7:42AM
Just use Automatix to install proprietary codecs like DVD. It makes doing so very easy under a friendly user interface:
http://getautomatix.com/
ozyankApr 13th 2008 8:48AM
I installed on Ubuntu 7.10 using the two lines exactly as they were. Now Totem crashes on startup. I also installed VLC but the playback is dreadfully jumpy.
I'd like to know how to get Totem working again
Kristin ShoemakerApr 13th 2008 9:02AM
Hi Ozyank,
I think I might be able to help you out... Just to backtrack, I'd probably remove the software you've just installed
sudo apt-get remove totem-xine libxine1-ffmpeg libdvdread3
I don't *believe* leaving it on the system would mess with what I'm about to tell you to try, but there is the possibility it could complicate the issue.
Then, I'd go ahead and install the Medibuntu repositories. They're quite safe, and honestly, I've never had a problem with getting DVD playback on anything with them.
In a terminal (you can do it through Synaptic, quicker in the terminal, though)
sudo wget http://www.medibuntu.org/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/medibuntu.list
Now add the GPG key
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update
Then....
sudo apt-get install libdvdcss2
(or search for the above package in Synaptic)
It'll choose the right version for your architecture, and install any dependencies. The really cool thing about Medibuntu, is that it pretty much has ALL the free and non-free codecs, so you can get just about any file, like wma or wmv, working with this repository.
For more information, check this out:
https://help.ubuntu.com/community/Medibuntu
Hope it helps.... Kristin
Kristin ShoemakerApr 13th 2008 9:07AM
Ah, sorry... The above *should* set Totem right. If for some reason it doesn't, try, in this order, reinstalling the Totem package, and, failing that.... go into the .gnome-2 folder (it's a hidden one), find the Totem subfolder, and try removing the state information file. It should, then, fire up Totem like you were starting it for the first time.