Created
February 15, 2017 06:38
-
-
Save rustamtolipov/76175ee6dd366fad3d2d253a25d3903f to your computer and use it in GitHub Desktop.
build ffmpeg on debian 8 (not tested)
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
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