July 4, 2025
Trending News

How to install multimedia support in Ubuntu, Linux Mint, Fedora and Flatpak

  • April 19, 2024
  • 0

One of the first obstacles encountered by users who start using it Linux It supports multimedia and some compressed file formats. Here the situation varies depending on the

One of the first obstacles encountered by users who start using it Linux It supports multimedia and some compressed file formats. Here the situation varies depending on the distribution and its approach, but one reason that can be more or less generalized is the fact that certain sectors are dominated by proprietary and/or proprietary formats, which can make it difficult to pre-install certain components.

Although Linux still has a reputation in many circles as a system focused on advanced profiles, the reality is that for some time now most of the people who use it are nothing more than home users who use it for common tasks such as office, Internet browsing, consumption multimedia and even video games, despite the disadvantages it brings to online gaming due to how the devices are implemented and work. anticheats.

Aside from the philosophical and conceptual issues, when push comes to shove, many don’t care about the issue of free and proprietary formats, and moreover, the dominance of proprietary and/or proprietary formats in certain sectors means that many followers of free software install adequate support so that you have a fully functional computer.

Fortunately to have necessary support for multimedia, 7Zip (which is free but often not preinstalled) and RAR It’s something that can be easily fixed in most distros, but with the latter, the easy installation in many cases only involves the UNRAR decompressor, while the RAR compressor has to be obtained from the official site and probably paid for. This is because the free redistribution of UNRAR is allowed, which leads to it being implemented in tools like PeaZip, while using RAR requires the paper to go through the RARLAB box.

Here I will insert some command lines that will allow you to have the necessary support in Ubuntu, Linux Mint, Fedora and the Flatpak universal package format in a few steps.

Installing multimedia support in Ubuntu and Linux Mint

Ubuntu and Linux Mint have an option in their respective installers that allows you to get third-party codecs, with the result that the system is better prepared from the start to reproduce video and audio formats that are proprietary and/or proprietary. The step I am referring to is as follows:

Future Ubuntu 24.04 LTSwhose release is coming soon, the missing packages are as follows:

sudo apt install rar unrar 7zip 7zip-rar gstreamer1.0-plugins-bad ffmpeg intel-media-va-driver-non-free

For the current reference version of the Canonical distribution Ubuntu 22.04 LTSthe command is this:

sudo apt install rar unrar 7zip gstreamer1.0-plugins-bad ffmpeg intel-media-va-driver-non-free

While for Linux Mint 21.3 what is missing is the following:

sudo apt install rar unrar 7zip ffmpeg intel-media-va-driver-non-free

Now I will deal with the same systems, but for cases where the box for installing multimedia codecs was not checked in the installation process.

Ubuntu 24.04 LTS:

sudo apt install rar unrar 7zip 7zip-rar gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-vaapi ffmpeg intel-media-va-driver-non-free libvdpau1 mesa-vdpau-drivers vdpau-driver-all

Ubuntu 22.04 LTS and Linux Mint 21.3:

sudo apt install rar unrar 7zip gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-vaapi ffmpeg intel-media-va-driver-non-free libvdpau1 mesa-vdpau-drivers vdpau-driver-all

How to install multimedia support in Fedora

Fedora is a community distribution sponsored by Red Hat that serves as a testbed for technologies that will be implemented in Red Hat Enterprise Linux (RHEL). Its popularity has grown in recent years due to its commitment to more neglected use through automation, its focus on the latest software, and to a lesser extent its strong commitment to open source, as nothing proprietary or patent-offending from their official repositories is useful beyond hardware support.

Due to its strong commitment to open source, Fedora does not provide codecs from its repositories for formats such as H.264/x264, H.265/x265/HEVC, and RAR, so must be provided through RPM Fusion, a third-party repository based in France that provides codecs, drivers, Steam, UNRAR and various multimedia applications. Given these circumstances, the first step is to configure the complete RPM Fusion repositories, which are divided into free and non-free branches:

sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

After configuring the repositories, you need to enter the following commands to get the components I mentioned earlier for Ubuntu and Linux Mint, albeit with things customized for Fedora:

sudo dnf swap ffmpeg-free ffmpeg --allowerasing

sudo dnf groupupdate multimedia --setopt="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin

sudo dnf groupupdate sound-and-video

sudo dnf swap mesa-va-drivers mesa-va-drivers-freeworld

sudo dnf swap mesa-vdpau-drivers mesa-vdpau-drivers-freeworld

sudo dnf swap mesa-va-drivers.i686 mesa-va-drivers-freeworld.i686

sudo dnf swap mesa-vdpau-drivers.i686 mesa-vdpau-drivers-freeworld.i686

sudo dnf install intel-media-driver libva-intel-driver unrar gstreamer1-vaapi

If you are using a proprietary and official NVIDIA driver, it might be interesting to install the unofficial VA-API support for it, which consists of a wrapper around NVENC:

sudo dnf install nvidia-vaapi-driver

When the user starts installing things from RPM Fusion, they will be asked if accepts the keys of the listed repositories. Obviously you have to answer yes here by typing “s”.

How to install multimedia support in Flatpak

Flatpak has become a universal package format that is preinstalled in multiple distributions, although the most popular, Ubuntu, is not one of them. Currently, most Ubuntu derivatives pre-install Flatpak, and there are systems such as Fedora Silverblue and openSUSE MicroOS that promote its use as a way to decouple applications from the system, thereby improving mechanisms that prevent system crashes.

All technical equipment aside, Flatpak can be thought of as a general framework for Linux applications, so the steps are the same for all distributions. Of course, you need to make sure that Flathub storage is configured first.

Configuring multimedia support in Flatpak is simple and may not even be necessary because the package we will install ffmpeg-full, is considered a dependency by many applications. Despite this, I will explain the steps.

The first thing you need to do is enter the installation command ffmpeg-full:

flatpak install org.freedesktop.Platform.ffmpeg-full

A list of versions will then appear. ffmpeg-full available. It is best to install the last two here, which are currently 22.08 and 23.08. Yeah, you have to go through the installation process twicein case it wasn’t clear.

As for compressor support, you can use PeaZip, which is one of the best third-party compression tools, it’s free software and its Flatpak version is also verified.

flatpak install flathub io.github.peazip.PeaZip

Conclusion

And these are the steps to follow to have basic multimedia support and at least decompress RAR files in Linux.

Command lines are a little scary, but as I’ve explained on other occasions, they end up being much faster to use than viewing windows, which can also easily lead to errors due to the large amount of detail in them. the ones you have to watch.

Source: Muy Computer

Leave a Reply

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

Exit mobile version