Uncategorized

How to install ffmpeg on a Amazon Linux AMI

I recently had the need to create video thumbnails in a project, and to generate them I used the good old ffmpeg . No tutorial worked properly for installation on an Amazon EC2 instance, and that was the only way I could achieve that.

mkdir -v -p /usr/local/bin/ffmpeg
cd /usr/local/bin/ffmpeg
wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-i686-static.tar.xz
tar -v -xf ffmpeg-release-i686-static.tar.xz --strip-components=1
rm -v -f ffmpeg-release-i686-static.tar.xz
ln -snf /usr/local/bin/ffmpeg/ffmpeg /usr/bin/ffmpeg
ln -snf /usr/local/bin/ffmpeg/ffpropbe /usr/bin/ffpropbe
view raw gistfile1.txt hosted with ❤ by GitHub

Credits ansible

Leave a Reply

Your email address will not be published. Required fields are marked *