Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
build ffmpeg on debian 8 (not tested)
apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texinfo zlib1g-dev
wget https://ffmpeg.org/releases/ffmpeg-3.1.7.tar.gz
mkdir -p /opt/ffmpeg/bin
mv /tmp/ffmpeg-3.1.7.tar.gz /root/
ls
tar xzf ffmpeg-3.1.7.tar.gz
cd ffmpeg-3.1.7/
ls
apt-get install yasm libx264-dev libmp3lame-dev libopus-dev libvpx-dev
cd ..
mkdir bin
mkdir -p ffmpeg_build/lib/pkgconfig
mkdir -p ffmpeg_build/include
cd ffmpeg-3.1.7/
wget -O fdk-aac.tar.gz https://github.com/mstorsjo/fdk-aac/tarball/master
apt-get install libvo-aacenc-dev
tar xzvf fdk-aac.tar.gz
cd mstorsjo-fdk-aac-*
autoreconf -fiv
./configure --prefix="$HOME/ffmpeg_build" --disable-shared
make
make install
make distclean
hash -r
cd ..
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-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
PATH="$HOME/bin:$PATH" make
make install
cd ../bin/
ls
mkdir /opt/ffmpeg/bin
cp * /opt/ffmpeg/bin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.