To install FFMPEG at Amazon EC2 we need to follow following steps:

Step1. SSH into your instance and become root
           sudo su

Step2. Go to the the /usr/local/bin directory
           cd /usr/local/bin

Step3. Inside the /usr/local/bin directory, create an “ffmpeg” directory
          mkdir ffmpeg

Step4. Go into the new directory
          cd ffmpeg

Step5. Go to static build directory at and pick the
latest version of FFMPEG –  it was ffmpeg.static.64bit.2014-03-02.tar.gz when i was writting.

Step6. The file should now be in /usr/local/bin/ffmpeg. Un-tar it…

        tar -xzf ffmpeg.static.64bit.2014-03-02.tar.gz

Step7. Run it and check what the latest version is
        ./ffmpeg -version

Step8. If you want to be able to execute FFMPEG from any directory, simply create a symlink into /usr/bin like this:
          ln -s /usr/local/bin/ffmpeg/ffmpeg /usr/bin/ffmpeg

Now, you should be able to run the command “ffmpeg” from anywhere