Installing Multimedia Codecs on Debian 10

29/12/2020
Chưa phân loại
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

The non-free repository should be enabled.

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

$ sudo apt-add-repository contrib

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

$ sudo apt update

The APT package repository cache should be updated.

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

Now, press Y and then press <Enter> to continue the installation.

APT will download and install all the required packages.

At this point, VLC should be installed.

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

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

Now, press Y and then press <Enter> to confirm the installation.

When you see this window, select <OK> and press <Enter>.

Again, select <OK> and press <Enter>.

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

The required packages should be installed.

Now, run the following command:

$ sudo dpkg-reconfigure libdvd-pkg

Now, select <Yes> and press <Enter>.

libdvdcss2 should be configured correctly.

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 the following command:

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

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

$ sudo apt update –allow-insecure-repositories

The APT package repository cache should be updated.

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

$ sudo apt install deb-multimedia-keyring

Now, press Y and then press <Enter> to confirm the installation.

The GPG key should be added.

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

$ sudo apt update

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

$ sudo apt install w64codecs

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.

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.

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

Installing Debian 10 Minimal Server

On a production server, you want only the bare minimum programs that are absolutely required for the proper function of...
29/12/2020

Hướng dẫn cấu hình Nginx với SSL làm Reverse Proxy cho WordPress trên Ubuntu server 18.04 LTS

Onet đã có bài viết hướng dẫn cấu Nginx làm Reverser Proxy trên CentOS-7. Hôm nay, bài viết này sẽ...
30/12/2020

Top 20 Best Webscraping Tools

Data lives more on the web than any other place. With the rise in social media activity and development of more web applications...
29/12/2020
Bài Viết

Bài Viết Mới Cập Nhật

Reliable IPv4 and IPv6 Subnet Rental Services: The Perfect Solution for Global Businesses
23/12/2024

Tìm Hiểu Về Thuê Proxy US – Lợi Ích và Cách Sử Dụng Hiệu Quả
11/12/2024

Mua Proxy V6 Nuôi Facebook Spam Hiệu Quả Tại Onetcomvn
03/06/2024

Hướng dẫn cách sử dụng ProxyDroid để duyệt web ẩn danh
03/06/2024

Mua proxy Onet uy tín tại Onet.com.vn
03/06/2024