Installing Multimedia Codecs on Debian 10

86528100 1631745482 Installing Multimedia Codecs on Debian 10
4 11 Installing Multimedia Codecs on Debian 10

A codec is used to encode and decode digital data stream. It is mainly used to reduce file size of audio and video files. Every audio and video file type is encoded and decoded differently. So, to play a specific audio/video file, you must have a suitable codec installed on your computer. Some codecs are free while others are proprietary in nature. So, most of them are not included on open source operating systems like Debian. As these codecs are not included, you can’t play every type of audio and video files once you install a fresh copy of Debian.

In this article, I am going to show you how to install multimedia codecs on Debian 10 Buster. So, let’s get started.

Enabling Official Contrib and Non-Free Repository:

The official package repository of Debian 10 has most of the common multimedia codecs already available. To install multimedia codecs, you have to enable the non-free and contrib package repositories on your Debian 10 machine.

To enable non-free repository, run the following command:

$ sudo apt-add-repository non-free

1 12 Installing Multimedia Codecs on Debian 10

The non-free repository should be enabled.

2 12 Installing Multimedia Codecs on Debian 10

The same way, enable the contrib repository with the following command.

$ sudo apt-add-repository contrib

3 11 Installing Multimedia Codecs on Debian 10

Now, update the APT package repository cache with the following command:

$ sudo apt update

\

The APT package repository cache should be updated.

5 11 Installing Multimedia Codecs on Debian 10

Installing Multimedia Codecs from Official Debian 10 Repositories:

Now that you’ve enabled the non-free and contrib official Debian 10 repositories, you are ready to install multimedia codecs on Debian 10.

The best way to install multimedia codecs is to install your favorite audio/video player on Debian 10, which in turn will install all the required multimedia codecs automatically.

If you know the package name of the multimedia codec that you want to install, you can manually install each multimedia codecs separately.

VLC is one of the best multimedia player out there. There is a saying that if VLC can’t play a media file, then no other player can play it. So, installing VLC player should also install most of the multimedia codecs automatically. VLC player is available in the official package repository of Debian 10 Buster. So, you can easily install it with the APT package manager.

To install VLC player, run the following command:

$ sudo apt install vlc

6 10 Installing Multimedia Codecs on Debian 10

Now, press Y and then press to continue the installation.

7 9 Installing Multimedia Codecs on Debian 10

APT will download and install all the required packages.

8 9 Installing Multimedia Codecs on Debian 10

At this point, VLC should be installed.

9 9 Installing Multimedia Codecs on Debian 10

Now, you should be able to play almost any type of media files.

Installing Some Other Codecs:

If you need support for one of the following codecs, then you have to install the libavcodec-extra package on Debian 10.

  • OpenCORE Adaptive Multi-Rate (AMR) Narrow-Band (AMRNB Encoder/Decoder)
  • OpenCORE Adaptive Multi-Rate (AMR) Wide-Band (AMRWB Decoder)
  • Android VisualOn AAC (AAC Encoder)
  • Android VisualOn Adaptive Multi-Rate (AMR) Wide-Band (AMRWB Encoder)

You can install the libavcodec-extra package from the official Debian 10 package repository with the following command:

$ sudo apt install libavcodec-extra

10 9 Installing Multimedia Codecs on Debian 10

Enabling DVD Playback:

To play DVDs in Debian 10, you have to install libdvdread4 and libdvdcss2 packages from the official package repository of Debian 10 with the following command:

sudo apt install libdvdread4 libdvdcss2

11 9 Installing Multimedia Codecs on Debian 10

Now, press Y and then press to confirm the installation.

12 9 Installing Multimedia Codecs on Debian 10

When you see this window, select and press .

13 8 Installing Multimedia Codecs on Debian 10

Again, select and press .

14 8 Installing Multimedia Codecs on Debian 10

Select if you want to enable automatic upgrades for libdvdcss2 package. Otherwise, select . Once you’re done, press .

15 7 Installing Multimedia Codecs on Debian 10

The required packages should be installed.

16 7 Installing Multimedia Codecs on Debian 10

Now, run the following command:

$ sudo dpkg-reconfigure libdvd-pkg

17 7 Installing Multimedia Codecs on Debian 10

Now, select and press .

18 7 Installing Multimedia Codecs on Debian 10

libdvdcss2 should be configured correctly.

19 7 Installing Multimedia Codecs on Debian 10

Installing Windows Media Codecs:

If you want to play WMV media files on Debian 10, then you have to install w64codecs (for 64-bit systems) or w32codecs (for 32-bit systems) package from Deb-Multimedia third party package repository.To add the Deb-Multimedia repository on Debian 10, run th

20 7 Installing Multimedia Codecs on Debian 10

$ echo “deb http://www.deb-multimedia.org buster main non-free”
| sudo tee /etc/apt/sources.list.d/deb-multimedia.list

24 7 Installing Multimedia Codecs on Debian 10

Now, update the APT package repository cache with the following command:

$ sudo apt update –allow-insecure-repositories

21 7 Installing Multimedia Codecs on Debian 10

The APT package repository cache should be updated.

22 7 Installing Multimedia Codecs on Debian 10

Now, install the Deb-Multimedia GPG key with the following command:

$ sudo apt install deb-multimedia-keyring

23 7 Installing Multimedia Codecs on Debian 10

Now, press Y and then press to confirm the installation.

The GPG key should be added.

25 6 Installing Multimedia Codecs on Debian 10

Now, you can update the APT package repository cache as usual.

$ sudo apt update

26 6 Installing Multimedia Codecs on Debian 10

Now, to enable WMV support for 64-bit Debian 10 installation, run the following command:

$ sudo apt install w64codecs

27 6 Installing Multimedia Codecs on Debian 10

Now, to enable WMV support for 32-bit Debian 10 installation, run the following command:

$ sudo apt install w32codecs

The required codecs should be installed.

28 6 Installing Multimedia Codecs on Debian 10

Now, you should be able to play WMV media files.

So, that’s basically how you install multimedia codecs on Debian 10. Thanks for reading this article.

Author:
programmer and TronLite Founder

Leave a Reply

Your email address will not be published. Required fields are marked *


Get our best healthy recipes and nutrition tips straight to your inbox!
Get Healthy Now! Extra Health Updates
Sign Up
Your privacy is important to us
Join Our Newsletter!
Sign up today for free and be the first to get notified on new tutorials and snippets.
Subscribe Now