Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to know how can I enable video and audio codecs not included by default on Ubuntu. Thanks!

share|improve this question
up vote 13 down vote accepted

Install this packageby clicking on this icon:

Install via the software center

Or via command line:

sudo apt-get install ubuntu-restricted-extras

Installing this package will allow you to play MP3 files, and to decode various audio formats such as LAME. It will also allow you to use Microsoft fonts, install the Java Runtime Environment, Adobe Flash, and play DVDs.

Additional reading: Restricted Formats, and Medibuntu.

share|improve this answer

Run the following in the terminal:

sudo apt-get install ubuntu-restricted-extras

share|improve this answer

To play encrypted DVDs, you must install libdvdread4, which is a codec allowing you to play them.

  • Run this command in a terminal:

    sudo /usr/share/doc/libdvdread4/

share|improve this answer

If you want only free & open-source software, then without enabling Multiverse repository, you can install following packages which are available on Universe repository:-

sudo apt-get install gstreamer1.0-fluendo-mp3 gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav

In which gstreamer1.0-fluendo-mp3 provides decoding of MPEG 1 audio layer III streams, gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly are the gstreamer plugins and gstreamer1.0-libav1 supports a large number of audio and video compression formats through the use of the libav library.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.