Ubuntu

Install Multimedia Codecs on Ubuntu 22.04

Multimedia codecs comprise a set of libraries/dependencies to play audio/video files of various formats. Ubuntu 22.04 comes up with default support for a few codecs. However, it is recommended to install multimedia codecs to get the uninterrupted stream of video and audio files.

Ubuntu 22.04 comes up with updated security features, improved usability, interactive interface and much more. Ubuntu 22.04 is the latest release of the LTS version of Ubuntu. This article provides a step-by-step installation guide of multimedia codecs on Ubuntu 22.04.

How to install multimedia codecs on Ubuntu 22.04

Multimedia codecs not only allow you to play audio video files, but they can also be used to compress/decompress media files for a smooth transmission. Let’s head over to the following steps that leads to installing the multimedia codecs on Ubuntu 22.04:

Step 1: It is recommended to update the system’s package before getting any program/application. Perform the update operation via the following command.

$ sudo apt update

Text Description automatically generated

Step 2: Once the packages are updated successfully. You can install the multimedia codecs on your system by issuing the following command. The command will install the package ubuntu-restricted-extras which is equipped with essential media codecs.

$ sudo apt install ubuntu-restricted-extras

Text Description automatically generated
Text Description automatically generated

Before installation, Ubuntu will ask you to confirm by pressing “y“. Moreover, you would also observe that a few codecs are installed but not required. Whereas there are tens of codecs that will be installed with this command.

As the installation is started, the following interface will appear which states that license agreement is required for Microsoft-core-fonts (a package being installed with the multimedia codecs).

Text Description automatically generated

Now, you have to accept the license agreement of Microsoft-core-fonts. To do so, press the “tab” key to navigate to “OK” and hit enter:

Graphical user interface, text, application Description automatically generated

The installation may take a while. Once the installation is finished; you can now play all kinds of audio/video files on your Ubuntu 22.04.

How to remove Multimedia codecs Ubuntu 22.04

Although the Multimedia codecs are recommended to be there on your Ubuntu 22.04. However, if you do not want to keep them on your Ubuntu 22.04. You can remove them via the following command.

$ sudo apt autoremove ubuntu-restricted-extras

Text Description automatically generated

Moreover, if you want to remove the configuration files as well. You can use the “–purge” option as written below:

$ sudo apt autoremove ubuntu-restricted-extras --purge

Here you go with multimedia codecs!

Conclusion

Ubuntu 22.04 is the latest LTS release of Ubuntu. It is equipped with the updated security features, improved usability, and interface. Multimedia codecs are the essential packages that are recommended to play various audio/video files on Ubuntu. Although Ubuntu 22.04 is equipped with most of them, it is recommended to install multimedia codecs for an uninterrupted stream of media on Ubuntu 22.04.

About the author

Adnan Shabbir