How to Play DVDs in Linux

play-dvds-linux

Many commercial DVDs are encrypted with CSS (Content Scramble System) to prevent you from making copies or watching them on unsupported players. If you want to be able to play encrypted discs in Linux, you need to install a library called libdvdcss that enables decryption.

Due to the legal implications of using such a library, many distributions do not include it in their software repositories by default. However, you can easily install it to get DVD playback functionality on a variety of video players.

This tutorial will walk you through how you can play encrypted DVDs with VLC media player.

Installation

The first step is to install the libdvdcss package through your distribution’s package manager.

For Ubuntu 12.04 to 15.04

Fire up the terminal and enter the following commands:

sudo apt-get install libdvdread4
sudo /usr/share/doc/libdvdread4/install-css.sh

For Ubuntu 15.10 and later

If you run Ubuntu 15.10 or newer, enter the following commands instead:

sudo apt-get install libdvd-pkg

Follow the instructions that appear on your terminal to let it compile and install libdvdcss.

play-dvd-linux-libdvdcss

Fedora 25

To install libdvdcss on Fedora 25, you need to activate the Livna repository first and update your software sources.

Execute the following commands:

sudo rpm -ivh http://rpm.livna.org/livna-release.rpm
sudo dnf update
sudo dnf install libdvdcss

Other Linux Distributions

The commands listed above should work on most Ubuntu-based distributions. For other distros, you can perform a web search on how to install libdvdcss on your system.

Getting VLC

VLC is available in the software repositories of many Linux distributions by default. On Ubuntu you can install it from the Software Centre or by typing the following commands in the terminal:

sudo apt-get install vlc

Fedora users can install VLC in pretty much the same way except that the RPMFusion repository must be activated first as shown below.

sudo rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-25.noarch.rpm
sudo dnf update
sudo dnf install vlc

Playing DVDs with VLC

play-dvd-linux-open-media

Once you have completed the steps above, insert your DVD and launch VLC. Click the “Menu” option and select “Open disk” or use the “Ctrl + D” keyboard shortcut to launch the media dialog.

Under the “Disc” tab, select the DVD option. VLC should automatically detect the path where your DVD has been mounted. If not, you may need to enter the path of your DVD drive here. Once satisfied, click the play button. Your DVD should begin to play.

play-dvd-linux-media-options

If it doesn’t work right away, give it a few minutes to finish loading. I noticed a short delay when playing some DVDs. If it doesn’t work at all, try rebooting your computer to ensure VLC is using libdvdcss correctly.

Wrap Up

That’s all there is to playing DVDs on Linux. Keep in mind that other media players may work as well, although some may require additional steps. Let us know if this tutorial was useful for you in the comments section below.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Ayo Isaiah

Ayo Isaiah is a freelance writer from Lagos who loves everything technology with a particular interest in open-source software. Follow him on Twitter.