In this article, we will have explained the necessary steps to install FFmpeg on Ubuntu 22.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with
sudo privileges. All the commands in this tutorial should be run as a non-root user.
FFmpeg is the leading free, open-source multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter, and play nearly all multimedia files. FFmpeg compiles and runs on Linux, Mac OS X, Microsoft Windows, BSD systems, and Solaris.
- Operating System with Ubuntu 22.04
- Server IPv4 Address with Superuser Privileges (Root Access)
- Gnome Terminal for Linux Desktop
- PuTTy SSH client for Windows or macOS
- Powershell for Windows 10/11
- Familiar with APT Commands
Install FFmpeg on Ubuntu 22.04 LTS
Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.
sudo apt update sudo apt upgrade sudo apt install software-properties-common dirmngr apt-transport-https gnupg
Step 3. Install FFmpeg on Ubuntu Linux.
Installing the FFmpeg on your Ubuntu 22.04 Jammy Jellyfish system is straightforward, Run the following command to install FFmpeg:
sudo apt install ffmpeg
Verify FFmpeg installation using the below command:
Step 3. FFmpeg Basic Commands.
Here is the list of the FFmpeg basic command options used with the FFmpeg command-line tool:
ffmpeg -version: show version ffmpeg -formats: show available formats ffmpeg -codecs: show available codecs ffmpeg -decoders: show available decoders ffmpeg -encoders: show available encoders ffmpeg -bsfs: show available bit stream filters ffmpeg -protocols: show available protocols ffmpeg -filters: show available filters ffmpeg -pix_fmts: show available pixel formats ffmpeg -layouts: show standard channel layouts ffmpeg -sample_fmts: show available audio sample formats
Sample Basic conversion:
- Convert video files from mp4 to webm:
ffmpeg -i input.mp4 output.webm
- Convert audio files from mp3 to ogg:
ffmpeg -i input.mp3 output.ogg
- Convert audio files from mp3 to ogg encoded with libopus codec:
ffmpeg -i input.mp3 -c:a libopus output.ogg
That’s all you need to do to install FFmpeg Ubuntu 22.04 LTS Jammy Jellyfish. I hope you find this quick tip helpful. For further reading on the installation of the FFmpeg open-source multimedia framework, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.