Home openSUSE How To Install Multimedia Codecs In OpenSUSE

How To Install Multimedia Codecs In OpenSUSE

By sk
Published: Updated: 37.6K views

This brief guide explains the steps to enable Packman repository in openSUSE and how to install multimedia codecs in openSUSE Leap and Tumbleweed editions from Packman repository.

What is Packman Repository?

Installing codecs is one of the essential things to do in your openSUSE desktop system after doing a clean installation.

Many multimedia codecs are non-free, so they are not included in the openSUSE default repositories due to legal reasons.

This is why we need to add some third-party repositories like Packman, which provides various non-free packages, restricted codecs and libraries.

Packman is the largest external repository that offers various additional packages for openSUSE. It contains all essential multimedia codecs, many audio and video player applications, games and also network related applications.

Without Packman, you may not able to play many online or offline multimedia content in openSUSE desktop operating systems.

Disclaimer:

Before adding a third-party repository, you must remember that the packages hosted in a third-party repository are neither tested nor supported by openSUSE development team. Use it at your own risk.

Install Multimedia Codecs in OpenSUSE

Like I already said, the multimedia codecs can be installed by enabling Packman repository. Packman repository can be added in multiple ways.

You can use OPI, Zypper and YaST to add Packman repository in openSUSE. First, we will see how to enable Packman using Opi.

1. Install Multimedia Codecs using OPI

OPI, short for OBS Package Installer, is a command line utility to search and install packages from OBS (openSUSE Build Service), Packman, Microsoft and other vendors like Chrome and Teamviewer etc.

To install OPI in openSUSE, run:

$ sudo zypper install opi

After installing OPI, run the following command to install necessary codecs to play most audio and video formats:

$ opi packman

Or,

$ opi codecs

This command will install all missing codecs and libraries from Packman repository to play most audio and video format files.

Not only codecs, you can install other non-free packages like Google Chrome, Microsoft Teams, Skype, Vscode and vscodium etc., from other vendors.

$ opi msteams
$ opi skype
$ opi vscode

For more details, refer the official GitHub repository of OPI.

2. Install Multimedia Codecs using Zypper

Zypper is the default command-line package manager for openSUSE. You can add and enable Packman repository using Zypper depending upon the openSUSE version you use.

To add Packman repository on openSUSE Tumbleweed edition, run:

$ sudo zypper addrepo -cfp 90 'https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/' packman

Add Packman repository on openSUSE Leap:

$ sudo zypper addrepo -cfp 90 'https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_$releasever/' packman

Refresh the repository database and update your openSUSE system using commands:

$ sudo zypper refresh
$ sudo zypper dist-upgrade --from packman --allow-vendor-change

Here, the --allow-vendor-change option is used to update the installed packages to a newer version, if the newer version is provided by a different vendor. In our case, the newer vendor is Packman repository.

Finally, install all necessary multimedia codecs and libraries from Packman repository using Zypper as shown below.

$ sudo zypper install --from packman ffmpeg gstreamer-plugins-{good,bad,ugly,libav} libavcodec-full vlc-codecs

3. Install Multimedia Codecs using YaST

YaST is the official graphical installation and configuration tool for openSUSE and SUSE distributions. If you are not comfortable with command-line, you can use the YaST graphical application to install and manage packages.

To enable Packman repository, open YaST application. Click "Software" section from the left pane and click "Software Repositories" on the right.

Add software repositories from Yast in opensuse
Add software repositories from Yast in opensuse

Click the "Add" button in the bottom left of YaST control center:

Add new repository from yast in opensuse
Add new repository from yast in opensuse

Select "Community Repositories" check box and click Next.

Select Community Repositories option in yast
Select Community Repositories option in yast

Select "Packman Repository" from the list of available 3rd party repositories, and click OK.

Select Packman Repository in Yast
Select Packman Repository in Yast

The Packman repository is added now.

Now, go back to the YaST Control Center and click "Software Management".

Click Software Management in Yast
Click Software Management in Yast

Go to View > Repositories > Packman Repository. Click "Switch system packages" to packages from Packman repository. Finally, click Accept to continue installation.

Install multimedia codecs from Packman using Yast
Install multimedia codecs from Packman using Yast

After the multimedia codecs are installed, you should be able to play most multimedia files without any issues.

Conclusion

Packman is a must-have if you wanted to setup a full-fledged openSUSE desktop with all essential codecs and non-free software.

Of course, you can still install all essential codecs in other ways (like compiling from source). However, installing restricted and non-free packages and codecs is much hassle-free task with Packman.

Related read:

You May Also Like

4 comments

Wolfgang Goetz June 6, 2021 - 5:36 pm

New installation the openSUSE LEAP 15.3 (on old iron IBM ThinkPad Edge11 notebook) but no “mp4”-file doesn’t work anymore due to missing CODEC’s. I have to thank you and your Team for this Howto. After doing this now it works fine

Reply
sk June 6, 2021 - 6:39 pm

Glad I could help.

Reply
Edan June 27, 2023 - 9:22 pm

This was very helpful. Thank you!

Reply
linuxlizard September 9, 2023 - 12:30 pm

opi fixed the broken x264/5 codecs thanks

Reply

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This website uses cookies to improve your experience. By using this site, we will assume that you're OK with it. Accept Read More