Skip to content

Instantly share code, notes, and snippets.

View dotneet's full-sized avatar

Shinji Yamada dotneet

View GitHub Profile
@dotneet
dotneet / install-ffmpeg-amazon-linux.sh
Last active September 11, 2017 22:13 — forked from prashantmaurice/install-ffmpeg-amazon-linux.sh
How to compile ffmpeg on Amazon Linux (EC2)
#!/bin/sh
# Based on gist.github.com/gboudreau/install-ffmpeg-amazon-linux.sh
# and https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
if [ "`/usr/bin/whoami`" != "root" ]; then
echo "You need to execute this script as root."
exit 1
fi
cat > /etc/yum.repos.d/centos.repo<<EOF