Skip to content

Instantly share code, notes, and snippets.

Avatar

Prashant Maurice prashantmaurice

View GitHub Profile
@prashantmaurice
prashantmaurice / install-ffmpeg-amazon-linux.sh
Last active May 10, 2021 — forked from gboudreau/install-ffmpeg-amazon-linux.sh
How to compile ffmpeg on Amazon Linux (EC2)
View install-ffmpeg-amazon-linux.sh
#!/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