Posts

How to install the latest version of FFmpeg on Linux Debian, Ubuntu and Fedora

If you need to use ffmpeg on your system and need it well updated, see how to install the latest version of FFmpeg on Linux Debian, Ubuntu, Fedora, and derived systems.

FFmpeg is a free software project that produces libraries and programs that are used for manipulating multimedia data.

How to install the latest version of FFmpeg on Linux Debian, Ubuntu and Fedora
How to install the latest version of FFmpeg on Linux Debian, Ubuntu and Fedora

The program is a popular multimedia framework, which allows users to decode , encode, transcode, mux, demux, stream, filter and play virtually anything that humans and machines have created.

Also worth mentioning is that the package contains libavcodec, libavutil, libavformat, libavfilter, libavdevice, libswscale and libswresample that can be used by applications. As well as ffmpeg, ffserver, ffplay and ffprobe, which can be used by end users for transcoding, streaming and playback.

FFmpeg supports from the most obscure to the most current formats. In short, it is a cross-platform and complete solution for recording, converting and streaming audio and video.

How to install the latest version of FFmpeg on Linux

Here’s how to install the latest available version of FFmpeg in Debian, Ubuntu, Fedora and its derived systems, using a repository or a PPA, depending on the system.

How to install the latest version of FFmpeg on Linux Debian and Derived Systems

To install FFmpeg on Debian Linux and derived systems and still be able to automatically receive future upgrades from it, do the following:

Step 1. Open a terminal;
Step 2. If you are using Debian 8, add the program repository with this command:

sudo sh -c 'echo "deb http://www.deb-multimedia.org jessie main non-free" >> /etc/apt/sources.list'

Step 3. If you are using Debian 9, add the program repository with this command:

sudo sh -c 'echo "deb http://www.deb-multimedia.org stretch main non-free" >> /etc/apt/sources.list'

Step 4. Update the package manager with the command:

sudo apt-get update

Step 5. Use the command below to install the packages needed for ffmpeg to work;

sudo apt-get install deb-multimedia-keyring

Step 6. Again, update the package manager with the command:

sudo apt-get update

Step 7. Now use the command below to install the program;

sudo apt-get install ffmpeg

Step 8. Then, if it is necessary to uninstall the program, use the commands below;

sudo apt-get remove ffmpeg
sudo apt-get autoremove

How to install the latest version of FFmpeg on Linux Ubuntu and derivatives

To install the program on Linux Ubuntu and derivatives, and still be able to automatically receive future updates from it, you must do the following:

Step 1. Open a terminal (in Unity use the CTRL + ALT + T keys);
Step 2. If you are using Ubuntu 14.04, add the program repository with this command:

sudo add-apt-repository ppa:jonathonf/tesseract

Step 2. For other versions, add the program repository with this command:

sudo apt-add-repository ppa:jonathonf/ffmpeg-3

Step 3. Update the package manager with the command:

sudo apt-get update

Step 4. Now use the command below to install the program;

sudo apt-get install ffmpeg

Step 5. Use the command below to create a link to the program and make it easier to execute;

sudo ln -sf /opt/ffmpeg/bin/ffmpeg /usr/bin/ffmpeg

Step 6. If you need to uninstall the program, use the commands below;

sudo apt-get remove ffmpeg
sudo apt-get autoremove
sudo rm /opt/ffmpeg/bin/ffmpeg /usr/bin/ffmpeg

How to install FFmpeg on Linux Fedora and its derivatives

To install FFmpeg on Linux Fedora 21, 22, 23, 24, 25, 26, 27, 28 and 29, and still be able to receive future updates automatically, you should do the following:

Step 1. Open a terminal; 
Step 2. If your system is a Fedora 21 or derived from it, add the program repository with this command:

sudo yum install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-21.noarch.rpm

Step 3. If your system is a Fedora 22 or derived from it, add the program repository with this command:

sudo yum install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-22.noarch.rpm

Step 4. If your system is a Fedora 23 or derived from it, add the program repository with this command:

sudo yum install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-23.noarch.rpm

Step 5. If your system is a Fedora 24 or derived from it, add the program repository with this command:

sudo yum install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-24.noarch.rpm

Step 6. If your system is a Fedora 25 or derived from it, add the program repository with this command:

sudo yum install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-25.noarch.rpm

Step 7. If your system is a Fedora 26 or derived from it, add the program repository with this command:

sudo yum install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-26.noarch.rpm

Step 8. If your system is a Fedora 27 or derived from it, add the program repository with this command:

sudo yum install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-27.noarch.rpm

Step 9. If your system is a Fedora 28 or derived from it, add the program repository with this command:

sudo yum install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-28.noarch.rpm

Step 10. If your system is a Fedora 29 or derived from it, add the program repository with this command:

sudo yum install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-29.noarch.rpm

Step 11. Update the package manager with the command:

sudo yum update

Step 12. Now use the command below to install the program;

sudo yum install ffmpeg

or

sudo dnf install ffmpeg

Step 13. If you need to uninstall the program, use the command below;

sudo yum remove ffmpeg

or

sudo dnf remove ffmpeg

Ready! Now that you have installed Debian, Ubuntu, and Fedora, you can now reuse those utilities that depend on the program or even use it directly in a terminal.

How to install the latest version of FFmpeg on Linux Debian, Ubuntu and Fedora
Rate this post

Leave a Reply

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