How can I enable video and audio codecs?

6,102

Solution 1

Install this package via the 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.

Solution 2

Run the following in the terminal:

sudo apt-get install ubuntu-restricted-extras

Solution 3

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/install-css.sh

Solution 4

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:
6,102
Admin
Author by

Admin

Updated on September 17, 2022

Comments

  • Admin
    Admin almost 2 years

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

  • kalou.net
    kalou.net over 3 years
    on latest Ubuntu (20.10 aka groovy), the package is called libdvdread8