Install ffmpeg on Ubuntu
To install ffmpeg 4 on Ubuntu, you can use PPA
https://launchpad.net/~jonathonf/+archive/ubuntu/ffmpeg-4
apt install software-properties-common -y add-apt-repository ppa:jonathonf/ffmpeg-4 -y
Now install ffmpeg with
apt update && apt install ffmpeg -y
See ffmpeg