Skip to content

Instantly share code, notes, and snippets.

View prashantmaurice's full-sized avatar

Prashant Maurice prashantmaurice

View GitHub Profile
@prashantmaurice
prashantmaurice / install-ffmpeg-amazon-linux.sh
Last active May 10, 2021 14:54 — forked from gboudreau/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