Ubuntu does not ship with playback support for some proprietary multimedia formats, such as MP3 files and DVD-videos. To enable playback of these media, please follow the instructions below.
Press Ctrl+Alt+T on your keyboard. A purple Terminal window should open up.
Copy and paste the following long line, followed by Enter:
sudo apt install -y gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libavcodec-extra gstreamer1.0-libav gstreamer1.0-fluendo-mp3 chromium-codecs-ffmpeg-extra oxideqt-codecs-extra libdvd-pkg
To paste into the terminal, use the “Edit” Menu, or press Ctrl+Shift+V
You may be prompted for your
[sudo] password. If so, type in your regular login/user password, then press Enter again. You should several lines of output in the terminal. The command may take a few minutes to complete.
Once you see the command above has finished, enter in the following command to enable DVD playback:
sudo dpkg-reconfigure libdvd-pkg
After enabling codec support, it’s recommended to restart your computer. Click on the Device Menu (Gear Icon in the upper-right corner of your screen), then click on “Shut Down…”. Then, click on the restart item in the shutdown overlay.
The program VLC is a excellent media player with support for DVDs, CDs, and most formats of media files. It can be installed with the Software Center or with this command:
sudo apt install vlc