Ubuntu 20.04 FFmpeg installation - LinuxConfig.org

FFmpeg is a library of tools used for processing video and audio files. You can do a lot of things with it, such as encode videos or transcode audio to different formats, to name a few. In this guide, we'll show you how to install it on Ubuntu 20.04 Focal Fossa. There are two options for doing so, either from Ubuntu's software repository or compiling the latest version directly from source. We'll show you both methods below.


This is a companion discussion topic for the original entry at https://linuxconfig.org/ubuntu-20-04-ffmpeg-installation
1 Like

Great writeup! Thank for for sharing.

This procedure creates FFmpeg version N-98528-ge35a0f8 (Copyright © 2000-2020 the FFmpeg developers). However, it has at least one bug: namely, -f x11 grab is notified by FFmpeg as an unknown format:
ffmpeg version N-98528-ge35a0f8 Copyright © 2000-2020 the FFmpeg developers
built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
configuration: --prefix=/home/john/ffmpeg_build --pkg-config-flags=–static --extra-cflags=-I/home/john/ffmpeg_build/include --extra-ldflags=-L/home/john/ffmpeg_build/lib --extra-libs=’-lpthread -lm’ --bindir=/home/john/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
libavutil 56. 55.100 / 56. 55.100
libavcodec 58. 97.100 / 58. 97.100
libavformat 58. 49.100 / 58. 49.100
libavdevice 58. 11.101 / 58. 11.101
libavfilter 7. 87.100 / 7. 87.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
libpostproc 55. 8.100 / 55. 8.100
Unknown input format: ‘x11grab’
john@JohnPC:~$

The x265 repo has moved to /multicoreware/x265_git .

So these two lines:

$ hg clone https://bitbucket.org/multicoreware/x265
$ cd x265/build/linux 

Should be updated to:

$ git clone https://bitbucket.org/multicoreware/x265_git
$ cd x265_git/build/linux

This article doesn’t work for a novice user. It needs correction.