Categories: TutorialsUbuntu

How to Install ffmpeg on Ubuntu 22.04

FFmpeg is a free and open-source tool that runs through the command line. Basically, it’s used to convert multimedia files from one format to another. It’s got a bunch of audio and video libraries that it shares, like libavformat, libavcodec, and libavutil. Using FFmpeg, you can switch things up between different video and audio formats, change sample rates, and videos size.

Now, if you’re using Ubuntu 22.04 and you would like to get started with FFmpeg, we got you covered. In this tutorial, we’ll take you through the steps to install both the stable version of FFmpeg that comes with the distro, as well as the latest version.

Sponsored
Installing FFmpeg on Ubuntu 22.04 from the official repositories

You can snag FFmpeg packages straight from the official Ubuntu repositories using the apt package manager. This is definitely the simplest way to get it done. But, keep in mind that the version of FFmpeg that you get through the repositories might not be the most up-to-date one available.

Read: How to display Graphics card information on Ubuntu 22.04

Start first by updating your repositories :

sudo apt update

Next proceed with the installation of FFmpeg by running the command below:

sudo apt install ffmpeg

Install ffmpeg on Linux

In order to confirm that ffmpeg has been installed successfully, carry out the following version check:

ffmpeg – version

As mentioned earlier, apps you get through Ubuntu repositories might not always be the most current version. If you want however to bring FFmpeg up to the latest version, you can use snappy to do it.

Read: How to install Snap pack support on Linux

Sponsored

Install FFmpeg on Ubuntu 22.04 using snappy

The snap utility is a handy tool that bundles up an app and everything it needs into a snap package, kind of like a container. What’s cool about it is that it works across all different types of Linux distributions. Plus, when you go with FFmpeg packages through snap, they’re updated all on their own, all the time, so you know you’re always getting the newest version. This is definitely an advantage over relying on the FFmpeg packages from the official Ubuntu repositories.

1 – Installation of snap

First things first, you should double-check whether Snap is already up and running on your system. If you’re using Ubuntu 22.04, chances are it’s already installed. Run the following command:

snap version

When you run the command, it’ll check to see if Snap is already up and running. If you see an output like the one I got, that means it’s good to go. However, if it turns out that snap isn’t installed, here’s what you can do:

Run the command:

sudo apt install snapd

Next, check if it hs been installed correctly, by checking the version (see above).

Read: How to install and uninstall applications on Ubuntu – A Beginner’s guide

2 – Installing ffmpeg usinbg snap

Now that snap is installed, run the following command in order to install ffmpeg:

sudo snap install ffmpeg

As usuall, check the version to confirm the installation.

Conclusion

You’ve successfully installed FFmpeg on your Ubuntu 22.04. Now, head over to the official FFmpeg Documentation page to learn how to use this powerful tool for converting your video and audio files.

 

The post How to Install ffmpeg on Ubuntu 22.04 appeared first on net2.

Ubuntu Server Admin

Recent Posts

From sales development to renewals: Mariam Tawakol’s career progression at Canonical

Career progression doesn’t follow a single path – and at Canonical, we embrace that. Our…

9 hours ago

In pursuit of quality: UX for documentation authors

Canonical’s Platform Engineering team has been hard at work crafting documentation in Rockcraft and Charmcraft…

9 hours ago

Ubuntu 24.10 (Oracular Oriole) reached End of Life on 10th July 2025

This is a follow-up to the End of Life warning sent earlier to confirm that…

1 day ago

Canonical announces Charmed Feast: A production-grade feature store for your open source MLOps stack

July 10, 2025: Today, Canonical announced the release of Charmed Feast, an enterprise solution for…

1 day ago

Ubuntu Adding NVIDIA 575 Driver Support for 24.04 & 22.04 LTS

For NVIDIA users, the latest 575 series driver will be available soon in Ubuntu repository.…

2 days ago

Amarok Released 3.3 with Qt6/KF6 Port & GStreamer Backend

Amarok, the free open-source KDE music player, released new 3.3 version on Tuesday, named “Far…

2 days ago