Site icon TechGit

How to Install FFmpeg 5.0 in Ubuntu 20.04 or Ubuntu 18.04 via PPA

The popular FFmpeg multi-media library released version 5.0 recently. Here’s how to install it in Ubuntu 20.04, Ubuntu 18.04 and/or Ubuntu 16.04 via PPA.

FFmpeg 5.0, codename “Lorentz”, is a new major release that features:

Install FFmpeg 5.0 in Ubuntu:

IMPORTANT: Upgrading FFmpeg is not recommended for beginners! It may conflict with other packages in your system. Use it at your own risk!

Rob Savoury has built the FFmpeg 5.0 packages into PPA for all the current Ubuntu LTS releases. Though the updates is suspend due to lack of donations. The PPA still works, and if you find it’s useful you may help by making donations (see the previous link).

1.) Add the PPAs

Firstly, press Ctrl+Alt+T on keyboard to open a terminal window. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:savoury1/ffmpeg5

Also add the FFmpeg4 PPA which contains the dependency libraries:

sudo add-apt-repository ppa:savoury1/ffmpeg4

2.) Update package cache:

If you’re running Ubuntu 18.04 or Ubuntu 16.04, you need to manually refresh the system package cache by running command:

sudo apt update

3.) Upgrade FFmpeg to 5.0:

Finally, run the command below to install all the available updates including FFmpeg 5:

sudo apt full-upgrade

NOTE: This command may remove some apps on your system due to package conflict! DO CHECK the terminal output before typing ‘y‘ to confirm installation!

When everything’s done successfully, verify via ffmpeg -version command.

How to Restore:

You may purge the two PPAs which also downgrade all the installed packages. Firstly, install the ppa-purge tool via command:

sudo apt install ppa-purge

Then purge the PPAs via the commands below one by one:

sudo ppa-purge ppa:savoury1/ffmpeg5
sudo ppa-purge ppa:savoury1/ffmpeg4

NOTE: The downgrade process may also remove some other apps. Keep an eye on terminal output before performing the action!

Original Article

FacebookTwitterTumblrRedditLinkedInHacker NewsDiggBufferGoogle ClassroomThreadsXINGShare
Exit mobile version