How to Install FFmpeg 5.0 in Ubuntu Linux

FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge.

It contains libavcodec, libavutil, libavformat, libavfilter, libavdevice, libswscale and libswresample which can be used by applications. As well as ffmpeg, ffplay and ffprobe which can be used by end users for transcoding and playing.

FFmpeg 5.0 “Lorentz”

FFmpeg 5.0 “Lorentz”is the latest stable FFmpeg release from the 5.0 release branch, which was cut from master on 2022-01-04.

Some of the changelog highlights:

  • ADPCM IMA Westwood encoder
  • Westwood AUD muxer
  • ADPCM IMA Acorn Replay decoder
  • Argonaut Games CVG demuxer
  • Argonaut Games CVG muxer
  • Concatf protocol
  • afwtdn audio filter
  • audio and video segment filters
  • Apple Graphics (SMC) encoder
  • hsvkey and hsvhold video filters
  • adecorrelate audio filter
  • atilt audio filter
  • grayworld video filter
  • AV1 Low overhead bitstream format muxer
  • swscale slice threading
  • MSN Siren decoder
  • scharr video filter
  • apsyclip audio filter
  • morpho video filter
  • amr parser
  • (a)latency filters
  • GEM Raster image decoder
  • asdr audio filter
  • speex decoder
  • limitdiff video filter
  • xcorrelate video filter
  • varblur video filter
  • huesaturation video filter
  • colorspectrum source video filter
  • RTP packetizer for uncompressed video (RFC 4175)
  • bitpacked encoder
  • VideoToolbox VP9 hwaccel
  • VideoToolbox ProRes hwaccel
  • support loongarch.
  • aspectralstats audio filter
  • adynamicsmooth audio filter
  • libplacebo filter
  • vflip_vulkan, hflip_vulkan and flip_vulkan filters
  • adynamicequalizer audio filter
  • yadif_videotoolbox filter
  • VideoToolbox ProRes encoder
  • anlmf audio filter

Install FFmpeg 5.0 in Ubuntu

Run the following commands in terminal to install FFmpeg 5.0 in Ubuntu 20.10, ubuntu 21.04, Ubuntu 20.04, Ubuntu 18.04 and other Ubuntu Linux derivatives via PPA

sudo apt update
sudo add-apt-repository ppa:savoury1/ffmpeg5
sudo add-apt-repository ppa:savoury1/ffmpeg4
sudo apt update
sudo apt full-upgrade

Once installed, you can convert video and audio using the following command syntax:

ffmpeg -i input.mp4 output.avi

Original Article