How to install ffmpeg clean on Ubuntu 14.04 and 16.04?

First of all I am not an Expert at all. I was looking for the same search term online as its kanda different to install FFMPEG on Ubuntu 14.04, Installing FFMPEG on Ubuntu 16.04 is much easier. Just run the following code in your terminal or putty sudo apt-get install ffmpeg But on Ubuntu 14.04, its kind of different. On Ubuntu 14.04, ffmpeg has been removed and replaced with avconv. You can install avconv by by SSH'ing into your server as root and running the command: sudo apt-get install libav-tools But if we use avconv we will have to modify our script to that it can run by avconv too. There are some other ways to install direct FFMPEG on Ubuntu 14.04. sudo apt-get install ppa-purge sudo ppa-purge ppa:jon-severinsson/ffmpeg sudo add-apt-repository ppa:mc3man/trusty-media sudo apt-get update sudo apt-get dist-upgrade sudo apt-get install ffmpeg I don't know why but sudo add-apt-repository ppa:mc3man/trusty-media ...