Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rm -rf ~/ffmpeg_build ~/ffmpeg_sources ~/bin/{ffmpeg,ffprobe,ffserver,lame,vsyasm,x264,yasm,ytasm}
- mkdir ~/ffmpeg_sources
- cd ~/ffmpeg_sources
- git clone --depth 1 git://github.com/yasm/yasm.git
- cd yasm
- autoreconf -fiv
- ./configure --prefix="$HOME/ffmpeg_build"
- make -j 32
- make install
- make distclean
- cd ~/ffmpeg_sources
- git clone --depth 1 git://git.videolan.org/x264
- cd x264
- PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --enable-static
- make -j 32
- make install
- make distclean
- cd ~/ffmpeg_sources
- hg clone https://bitbucket.org/multicoreware/x265
- cd ~/ffmpeg_sources/x265/build/linux
- cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DENABLE_SHARED:bool=off ../../source
- make -j 32
- make install
- cd ~/ffmpeg_sources
- git clone --depth 1 git://git.code.sf.net/p/opencore-amr/fdk-aac
- cd fdk-aac
- autoreconf -fiv
- ./configure --prefix="$HOME/ffmpeg_build" --disable-shared
- make -j 32
- make install
- make distclean
- cd ~/ffmpeg_sources
- git clone --depth 1 https://chromium.googlesource.com/webm/libvpx.git
- cd libvpx
- ./configure --prefix="$HOME/ffmpeg_build" --disable-examples
- make -j 32
- make install
- make clean
- cd ~/ffmpeg_sources
- git clone http://source.ffmpeg.org/git/ffmpeg.git
- cd ffmpeg
- make distclean
- PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --pkg-config-flags="--static" --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libfreetype --enable-libx264 --enable-libx265 --enable-opencl
- make
- make install
- make distclean
- hash -r
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement