sudo apt install software-properties-common
sudo apt update
sudo add-apt-repository ppa:jonathonf/ffmpeg-4
sudo apt install ffmpeg
ffmpeg -version
# On Ubuntu 18.04
$ sudo add-apt-repository ppa:jonathonf/ffmpeg-4
$ sudo apt install ffmpeg
# check version
$ ffmpeg --version
# You can download Windows builds from ffmpeg site.
sudo snap install ffmpeg