Ubuntu Linux play encrypted DVDs

by Vivek Gite · 51 comments

Q. How do I play encrypted DVDs under Ubuntu Linux?

A. You need to install a special library which allows you to play encrypted DVDs under Ubuntu Linux.

In this FAQ you will learn how to use linux command line to install CSS library and DVD playback using open source linux software such as xine.

Ubuntu Linux will not be able to play most of the DVDs out of box. Please read this my article which explains why linux don't support MP3 and DVD out of box.

Now let us see how to configure Ubuntu Linux to play encrypted DVDs .

Most DVDS comes with Content Scramble System (CSS) which is a Digital Rights Management (DRM) scheme. The CSS key sets are licensed to manufacturers who incorporate them into products such as DVD drives, DVD players and DVD movie releases. Most DVD players are equipped with a CSS Decryption module. CSS key is a collective term for authentication key, disc key, player key, title key, second disk key set, and/or encrypted key.

In order to play encrypted DVDs just install CSS library with following linux command

First install open source Linux player such as vlc or xine, mplayer etc using apt-get command:
$ sudo apt-get install vlc xine mplayer libdvdread3

Now install CSS library:
$ sudo /usr/share/doc/libdvdread3/examples/install-css.sh

Now you can play DVD by visiting Applications > Sound & Video > Movie Player > Select player menu option.

Updated for accuracy.

Featured Articles:

Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!

{ 51 comments… read them below or add one }

1 Daniel K 12.19.06 at 7:06 am

You wrote:

$ sudo apt-get install vlc xine mplyer

I guess you mean

$ sudo apt-get install vlc xine mplayer

2 nixcraft 12.19.06 at 12:16 pm

Daniel,

Thanks for heads up!

3 Kaithy Aravind Reddy 03.13.07 at 11:58 am

sudo
/usr/share/doc/libdvdread3/examples/install-css.sh

got reply

command not found

try to search “install-css.sh” not found any where?

Pls help.
Regards
Kaithy Aravind Reddy

4 rocky 03.16.07 at 8:40 am

Kaithy,

Install lib libdvdread3
sudo apt-get install libdvd3

5 Ron 09.19.07 at 2:42 am

don’t you mean sudo apt-get install libdvdread3 or is this something different

6 vivek 09.19.07 at 9:30 am

Ron,

Thanks for the heads up. The FAQ has been updated.

7 Ram 09.19.07 at 6:18 pm

Hi, very helful post, then if you can put a link in the “Please read this my article which explains why linux don’t support MP3 and DVD out of box” – that would be more helpful to the users to locate the articles.

Thanks a lot!

8 vivek 09.20.07 at 5:23 am

Ram,

The faq has been updated as per your request. I appreciate your feedback.

9 johnc 10.01.07 at 6:54 am

in feisty use this command
sudo /usr/share/doc/libdvdread3/install-css.sh

10 tom 11.12.07 at 1:48 am

in gutsy as in feisty
sudo/usr/share/doc/libdvdread3/install-css.sh
(i.e. no example folder)

11 Dave Jarvis 11.13.07 at 3:33 am

Replace “xine” with “xine-ui” for more luck under Gutsy.

12 john horton 12.18.07 at 2:33 pm

This how-to worked for me. I did not have an example folder. But reading down the page I found the example and everything seemed to work out just fine. Now to play a dvd!

13 Chris G 02.10.08 at 4:40 pm

Ran “sudo apt-get install vlc xine-ui mplayer”

Then, “sudo /usr/share/doc/libdvdread3/install-css.sh”

Worked like a charm! Watching Hercules in New York right now with VLC Media Player.

14 S. Holzel 02.25.08 at 5:09 pm

Thank you! Now I can watch [i]all[/i] my dvd’s, and not just the, erm, backups. Just installed the libdvdread and the css, and VLC plays them quite nicely. Totem still doesn’t, however. Is that normal?

15 matt 03.03.08 at 1:41 am

Ran “sudo apt-get install vlc xine-ui mplayer”

Then, “sudo /usr/share/doc/libdvdread3/install-css.sh”

worked perfect
thanks

16 gonio5 05.16.08 at 8:05 pm

Thanks a lot for the help i m still a n00b, i get to see Simpsons right now, cheers =)

17 aubz 05.26.08 at 10:00 pm

hello everyone… i only resonantly got Linux and i get allot of it apart from this. were do write the command (if its in the terminal they don’t work at all for me) so please could someone help me out =]

18 Grams79 11.02.08 at 5:24 pm

It does not work for 64-bit users on Ubuntu 8.10 final.
I’ve been on every website on the internet for two days searching for a solution.
At this point I can start a DVD movie and see the FBI warnings and menu just fine.
But when the movie starts it becomes total junk to view on VLC.
On Mplayer-Xine and others I receive a notice “Are you trying to play an encrypted DVD without libdvdcss?”.
After installing over 100mb of suggested “solutions” I’m only thus far.
The only one I can not get is xine extra plugins, since there is no support for amd64.

Justin Grams

19 jose 12.05.08 at 6:57 am

Works fine :D ty for the help

/usr/share/doc/libdvdread3/examples/install-css.sh
with no example folder :D didnt read the all topic and wasted many time to figure out what happened :D

20 jeff reisch 02.01.09 at 12:56 pm

worked like a charm.

thank you very much

21 plain_ubuntu_user 03.14.09 at 5:18 pm

YAY thank you…even an ignorant user only like me understood that!

22 Yashwant 04.11.09 at 5:40 pm

Didn’t help in Ubuntu 8.10 :(

23 Joy 05.22.09 at 9:18 am

How can I do it in Ubuntu 8.04 (Hardy Heron) I’m having problem playing all my DVD’s also. Thanks

24 Saeid Zebardast 05.24.09 at 4:59 pm

in jauny (Ubuntu 9.04):
sudo /usr/share/doc/libdvdread4/install-css.sh

:)

25 saidar 06.01.09 at 7:38 pm

worked great, thanks

26 Vivek 06.05.09 at 3:45 pm

Thanks Saeid for the Ubuntu 9.04 tip but VLC is still unable to decrypt the entire DVD

27 163 06.09.09 at 11:59 am

For Ubantu 8.10
sudo /usr/share/doc/libdvdread3/install-css.sh

28 Robert Reich 06.13.09 at 4:44 pm

aubz wrote:
aubz 05.26.08 at 10:00 pm

hello everyone… i only resonantly got Linux and i get allot of it apart from this. were do write the command (if its in the terminal they don’t work at all for me) so please could someone help me out =]

Can anybody make any sense of it? It might be mangled English if it was English….

Next, not even Windows is this absurd in playing mp3s. These are music files, for crying out loud, not classified Pentagon documents.

The steps to install any kind of player are absurd. Can’t the Linux community come up with an installer?

29 Danny in California Ubuntu Newbie 09.01.09 at 5:15 pm

Saeid Zebardast : You did it! I am watching DVD’s on AMD 64 with 64 bit Ubuntu!!!!
Many threads need updating to tell people to update library from libdvd3 to libdvd4, that is causing the command not found report in terminal on 64 bit version. Many thanks!

30 pc wiz new 2 linux 09.26.09 at 6:28 am

Thanks Saeid and Chris G a line from both of you got me going no problems I’m runing fresh install of ubuntu9.04 with updates and edubuntu addon. nice feedback everyone
1. sudo apt-get install vlc xine-ui mplayer
2. sudo /usr/share/doc/libdvdread4/install-css.sh

31 Jody B 10.02.09 at 4:18 am

Thanks for the help. I’m running jaunty 9.04 and this worked great

32 Bruno 10.31.09 at 1:41 am

Doesn’t seem to work for Ubuntu 9.10

33 Jeff 11.06.09 at 11:45 am

I have tried for hours without luck to install the css library using vlc ver 4.3.2 for ununtu. What am I doing wrong? I’m running Ubuntu 8.10 Intrepid

34 Gaea 11.14.09 at 3:20 am

For all those who didn’t understand. Let’s start.
1.- Find the install-css.sh (you can use the Search button at the top of the Nautilus (explorer) window).
Usually is in usr/share/doc/libdvdread3 but if you already installed the kaffeine you can also find it in usr/share/doc/kaffeine.

2.- Open an konsole window and type in sudo -i and type your password

3.- Get one of the directory above mentioned

4.- When you are in usr/share/doc/kaffeine or the other one type in sh ./install-css.sh

5.- Wait a few seconds and … enjoy your Dvd’s

35 Gaea 11.14.09 at 3:43 am

I forgot to mention that maybe some people need to install the VLC media player and try it with a movie after you install the CSS library . If it works then you can use any other program such as kaffeine, movie player, etc.

36 Jeff 11.14.09 at 7:14 am

I have VLC installed .o.k. but the css library command is not working for me. This is what I keep getting:
command not found
sudo apt-get install vlc xine mplayer libdvdread3
Reading package lists…Done
vlc is already the newest version.
Package xine is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another
source.
E: Package xine has no installation candidate
root @jeffrey-laptop:~# sudo /usr/share/doc/libdvdread3/examples/install-css.sh
command not found

I can’t seem to get the css installed, and cannot play DVD’s in VLC.
Can someone help.
bigjeff1002@yahoo.com

37 Gaea 11.16.09 at 5:12 pm

OK Jeff. I will suppose that you are a newbie on linux (me too but I know this one) so…
Using the same command you use (sudo apt-get install vlc xine mplayer libdvdread3) I get the same message you got so… Did you try to install kaffeine? It includes the CSS library too but if you didn’t it’s OK.
Now, as I said before, get into usr/share/doc/libdvdread3 and there you will find the “install-css.sh”.
In other words type sudo /usr/share/doc/libdvdread3/install-css.sh and that’s all

38 Jeff 11.17.09 at 4:57 am

Gaea and everyone – hey thanks! I am now watching copy protected dvd-’s!! I do not know why this was not working before, but it is now. For anyone interested, I am running ubuntu 8.10 (intrepid), booting from a USB flash drive, and this puppy is now humming ;-)
bigjeff1002@yahoo.com

39 Sean 11.23.09 at 12:03 am

I am running 9.10 and sudo /usr/share/doc/libdvdread3/install-css.sh does not work. I have Kaffiene and VLC installed but when I try to play the DVD, nothing happens at all.

Please help. Email me at seanmalhotra@gmail.com

40 Jeff 11.23.09 at 5:14 am

Is there a way to copy and/or make a backup copy of an OS I have installed to, and which runs from a USB flash drive? I have UBUNTU (Intrepid) on an 8GB micro chip which I boot to. When I try to copy it in Windows, ,it sees the chip as blank and needing formatting. I want to copy this OS to a 16GB Flash so that I can install and run more applications but there doesn’t seem to be a way.
Does anybody have any ideas?
bigjeff1002@yahoo.com

41 Gaea 11.25.09 at 6:12 pm

Hey Sean! What did you get after you type sudo /usr/share/doc/libdvdread3/install-css.sh and/or sudo usr/share/doc/kaffeine/install-css.sh ??

42 Gaea 11.25.09 at 6:59 pm

Hey Jeff!! I think you want to clone your Linux so… check this out: http://www.linuxquestions.org/questions/linux-newbie-8/clone-linux-bootable-usb-flash-drive-670342/
It may help you.

43 Anand Kasi 12.03.09 at 5:33 am

On my Ubuntu 9.10, I have VLC, MPlayer, SMPlayer installed but won’t play encrypted dvd’s.
sudo /usr/share/doc/libdvdread3/install-css.sh does not work……..

44 Jeff 12.03.09 at 6:52 am

I don’t understand the problems you all are having. In 9.10 I installed VLC with the new
UBUNTU SOFTWARE CENTER, and it plays everything beautifully. 9.10 is chock full of many other problems, however. Further, with the new 9.10, I believe the intent is to move away from the apt get stuff. Hope this helps.
bigjeff1002@yahoo.com

45 michael 12.04.09 at 7:38 pm

updated from 9.04 to 9.10 now mplayer wiil not play encryped dvd’s

46 Jeff 12.05.09 at 4:10 am

Michael…..I had luck with VLC which I installed via the new UBUNTU SOFTWARE CENTER. I never got Mplayer to work either with encrypted DVD’s, however.
bigjeff1002@yahoo,com

47 Michael 12.05.09 at 1:20 pm

I have up dated ,loaded librays,and vlc player,nothing works, for encryted dvd’s

48 Jeff 12.05.09 at 7:58 pm

Michael………
Where is GAEA? He seems to know how to fix everything ;-) I really don’t understand this because VLC has it’s own codecs which play encrypted DVD’s. I have done several new installs of 9.10 and VLC installs/plays like a champ (via the new UBUNTU SOFTWARE CENTER). Why don’t you post what configuration you are running here for other members, then perhaps GAEA or someone will have the answer.
bigjeff1002@yahoo.com

49 Purpletoiletfish 12.20.09 at 8:03 am

Ummm, why havnt any of you so called linux users ever thought to use “yum apt-get install “your install” that seems to work. good old yum command.

50 Gaea 01.04.10 at 4:30 am

Hey!! What’s up? ^_^
OK Anand Kasi. First of all, the command sudo /usr/share/doc/libdvdread3/install-css.sh change to sudo /usr/share/doc/libdvdread4/install-css.sh . It should work.

And Michael….. did you ever play dvds before the update to 9.10?
do vlc works with “normal” videos (avi, mpeg)?
what graphic card do you have?

51 Gaea 01.04.10 at 5:48 am

Hi!!
By the way! I usually use the Add/Remove application to install my software. But sometimes I also like to use Synaptic Package Manager. apt-get also works but if you are not good at command lines, I recommend Synaptic Package Manager.
And as I said before, if you can’t find the css library, try installing kaffeine.

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous FAQ:

Next FAQ: