How can I play encrypted DVD movies?
Solution 1:
To Enable Playback:
-
Install libdvdread4:
sudo apt install libdvd-pkg
Note: You may have to enable multiverse to install this package.
-
Then install libdvdcss:
-
Ubuntu 20.04 onward See this answer instead.
-
Ubuntu 15.10 to 19.10
sudo dpkg-reconfigure libdvd-pkg
Then follow the instructions to let it download and compile.
-
Ubuntu 12.04 to 15.04
sudo /usr/share/doc/libdvdread4/install-css.sh
(More about libdvdcss here.)
-
Best Players:
According to the Ubuntu Wiki, Kaffeine, MPlayer, xine, Totem-xine, VLC, and Ogle will play DVDs with libdvdread and libdvdcss installed.
I use both Totem and VLC to play DVDs. It's useful to have both installed, because sometimes one will have a playback quirk that the other will not.
Regions:
I believe playback will work in any region.
Solution 2:
Commercial DVDs are copy protected to ensure that you aren't able to backup your legally acquired movies, but instead have to buy new ones if they break. You also aren't allowed to enjoy them in just any manner you please; you may only watch them on certain devices with pre-installed decryption keys. Unless those devices are too old, of course; Then you have to buy new ones.
To get around this, install libdvdcss.
From help.ubuntu.com:
Installing libdvdcss
Legal Warning: Check with your local laws to make sure usage of libdvdcss2 would be legal in your area. *[Unless you live in Somalia or some other place with no rule of law, it's not legal]
Ubuntu 10.04 (i386, amd64), 10.10 and 11.04 (i386, amd64)
[edit: This method has been used successfully in 11.10 and 12.04 as well]
Works for old releases that are no longer supported if you have repositories on Cd/Dvd or somewhere. So, anything from 9.04 onwards. The latest LTS, 10.04, and the radically different 11.04 also work this way.
Install the libdvdread4 package (no need to add third party repositories) via Synaptic or command line:
sudo apt-get install libdvdread4
Then open a terminal window and execute:
sudo /usr/share/doc/libdvdread4/install-css.sh
Rebooting may be necessary.
After this, VLC will automatically use it. Some programs may need recompilation.
If after doing all this, you still get messages about not being able to play DVDs, check that the DVD drive has a region set (see below).
Solution 3:
Ubuntu 20.10 and later
In Ubuntu 20.10 and later DVD-Video playing library - installer (libdvd-pkg) can be quickly and easily installed from the default Ubuntu repositories. Open the terminal and type:
sudo apt install libdvd-pkg libdvdnav4 libdvdread8
sudo dpkg-reconfigure libdvd-pkg
Ubuntu 20.04
In Ubuntu 20.04 DVD-Video playing library - installer (libdvd-pkg) can be quickly and easily installed from the default Ubuntu repositories. Open the terminal and type:
sudo apt install libdvd-pkg libdvdnav4 libdvdread7
sudo dpkg-reconfigure libdvd-pkg
Ubuntu 16.04-19.10
In Ubuntu 16.04-19.10 DVD-Video playing library - installer (libdvd-pkg) can be quickly and easily installed from the default Ubuntu repositories. Open the terminal and type:
sudo apt install libdvd-pkg libdvdnav4 libdvdread4
sudo dpkg-reconfigure libdvd-pkg # to allow DVD playback
This package provides libraries (including libdvdcss2) that are needed for playing video DVDs with a media player (such as VLC, SMplayer, Totem, etc.). It automates the process of downloading source files, compiling them, and installing the binary packages.