

However, if you see ERROR: x265 not found using pkg-confg you will need to compile the x256 library from source using the below commands: $ mkdir ~/ffmpeg cd ~/ffmpeg You may try to install libx265-dev using $ sudo apt install libx265-dev and fast forward to compilation. However, the version of x256 from Ubuntu’s libx265-dev package is lower than expected by latest FFmpeg source code. We will also need libx265-dev development library. The following linux command will install all FFmpeg compilation prerequisites for Ubuntu 18.04: $ sudo apt install -y libopus-dev libmp3lame-dev libfdk-aac-dev libvpx-dev libx264-dev yasm libass-dev libtheora-dev libvorbis-dev mercurial cmake This FFmpeg installation will yield the highest possible FFmpeg and codes versions. To see all available FFmpeg’s encoders and decoders execute: $ ffmpeg -encoders To check for a installed ffmpeg version run: $ ffmpeg -versionįfmpeg version 3.4.2-1build1 Copyright (c) 2000-2018 the FFmpeg developers In most cases you do not need to go any further. The easiest way to install FFmpeg on Ubuntu is to use the apt command, open up terminal and enter: $ sudo apt install ffmpeg Ubuntu 20.04 (Focal Fossa) Instructions Install FFmpeg from Ubuntu Repository

Privileged access to your Ubuntu System as root or via sudo command is required. Operating System: – Ubuntu 18.04 Bionic Beaver.This guide will provide you with an information on how to install FFmpeg on Ubuntu 18.04 from a standard Ubuntu repository as well as how to install latest FFmpeg by compiling it from a source. Use FFmpegĪfter installing FFmpeg, you can begin using it to convert multimedia files to different formats.The objective is to Install FFmpeg on Ubuntu 18.04 Bionic Beaver Linux. This is how one installs FFmpeg on Ubuntu. sudo apt updateĪfter installing, use the command to verify FFmpeg version. They update automatically and roll back gracefully.įirst, run the commands below to install snap package manager and then install FFmpeg. Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. The easiest way is to install FFmpeg latest on Ubuntu is by using the snappy packaging system. That’s you install via a third party PPA. It should output similar lines as shown below: Output:įfmpeg version 4.2.2-0york0~18.04 Copyright (c) 2000-2019 the FFmpeg developersīuilt with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)Ĭonfiguration: -prefix=/usr -extra-version='0york0~18.04' -toolchain=hardened To verify if FFmpeg is installed, run the commands below: ffmpeg -version Sudo add-apt-repository -yes ppa:jonathonf/ffmpeg-4 Sudo apt install software-properties-common
