Docker,  EC2,  PHP,  Programação

Como instalar o ffmpeg no Amazon Linux AMI

Recentemente tive a necessidade de criar thumbnails de vídeos em um projeto, e para gerar as mesmas recorri ao bom e velho ffmpeg. Nenhum tutorial funcionou de forma adequada para a instalação em uma instancia EC2 da amazon, e essa foi a única forma que consegui.

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

Créditos ansible


Notice: ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/samu/public_html/blog/wp-includes/functions.php on line 5277