How to install FFMPEG on AWS Server ?

by abhi singh Apr 25 in Amazon 0 Comments 145 Views

How to install FFMPEG on AWS Server ?
You can follow below steps to install FFMPEG:

1. SSH into your instance and login with root using below command
    sudo su -

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

3. Inside the /usr/local/bin directory, you need to create an "ffmpeg" directory
    mkdir ffmpeg

4. Go into the new (ffmpeg) directory
    cd ffmpeg

5. Go to static build directory at and pick the latest version of FFMPEG - as of this writing, it was:


Final Command is:

6. The file should now be in /usr/local/bin/ffmpeg. Untar file using below command:
    tar -xzf ffmpeg.static.64bit.2014-02-16.tar.gz

    tar xvf MyFile.tar.gz

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

6. 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

Check ffmpeg path:
    whereis ffmpeg