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 http://ffmpeg.gusari.org/static/64bit/ and pick the latest version of FFMPEG - as of this writing, it was:
ffmpeg.static.64bit.2014-02-16.tar.gz


    wget http://ffmpeg.gusari.org/static/64bit/ffmpeg.static.64bit.2014-02-16.tar.gz


Final Command is:
    wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz



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

OR
    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