Watch Videos and Play Music (MP3, DVD, etc.) Edit on GitHub

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.

Open A Terminal

Press Ctrl+Alt+T on your keyboard. A purple Terminal window should open up.

Install Packages

Type the following lines into the terminal window, each 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

You can also copy and paste the command. 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.

Setup DVD Playback (optional)

Once you see the command above has finished, enter in the following command to enable DVD playback:

sudo dpkg-reconfigure libdvd-pkg

Restart Your Computer

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.