Last active
March 27, 2016 22:41
-
-
Save philcrump/ead413d6245ff549c492 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get update && sudo apt-get -y dist-upgrade | |
sudo apt-get -y --force-yes install autoconf automake build-essential libasound2-dev libass-dev libfreetype6-dev libtool pkg-config texinfo zlib1g-dev | |
mkdir /home/pi/ffmpeg_sources | |
cd /home/pi/ffmpeg_sources/ | |
wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz | |
tar -xf yasm-1.3.0.tar.gz | |
cd /home/pi/ffmpeg_sources/yasm-1.3.0/ | |
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" | |
make | |
make install | |
make distclean | |
cd /home/pi/ffmpeg_sources/ | |
wget http://download.videolan.org/pub/x264/snapshots/last_x264.tar.bz2 | |
tar -xf last_x264.tar.bz2 | |
cd /home/pi/ffmpeg_sources/x264-snapshot-*/ | |
PATH="$HOME/bin:$PATH" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-static | |
PATH="$HOME/bin:$PATH" make -j4 | |
make install | |
make distclean | |
cd /home/pi/ffmpeg_sources/ | |
wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 | |
tar -xf ffmpeg-snapshot.tar.bz2 | |
cd /home/pi/ffmpeg_sources/ffmpeg/ | |
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --pkg-config-flags="--static" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --enable-gpl --enable-libass --enable-libfreetype --enable-libx264 --enable-nonfree | |
PATH="$HOME/bin:$PATH" make -j4 | |
make install | |
make distclean | |
hash -r | |
cd /home/pi/ | |
rm -rf ffmpeg_sources/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment