Advertisement
rainabba

Untitled

May 31st, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.66 KB | None | 0 0
  1. rm -rf ~/ffmpeg_build ~/ffmpeg_sources ~/bin/{ffmpeg,ffprobe,ffserver,lame,vsyasm,x264,yasm,ytasm}
  2. mkdir ~/ffmpeg_sources
  3.  
  4. cd ~/ffmpeg_sources
  5. git clone --depth 1 git://github.com/yasm/yasm.git
  6. cd yasm
  7. autoreconf -fiv
  8. ./configure --prefix="$HOME/ffmpeg_build"
  9. make -j 32
  10. make install
  11. make distclean
  12.  
  13. cd ~/ffmpeg_sources
  14. git clone --depth 1 git://git.videolan.org/x264
  15. cd x264
  16. PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --enable-static
  17. make -j 32
  18. make install
  19. make distclean
  20.  
  21. cd ~/ffmpeg_sources
  22. hg clone https://bitbucket.org/multicoreware/x265
  23. cd ~/ffmpeg_sources/x265/build/linux
  24. cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DENABLE_SHARED:bool=off ../../source
  25. make -j 32
  26. make install
  27.  
  28. cd ~/ffmpeg_sources
  29. git clone --depth 1 git://git.code.sf.net/p/opencore-amr/fdk-aac
  30. cd fdk-aac
  31. autoreconf -fiv
  32. ./configure --prefix="$HOME/ffmpeg_build" --disable-shared
  33. make -j 32
  34. make install
  35. make distclean
  36.  
  37. cd ~/ffmpeg_sources
  38. git clone --depth 1 https://chromium.googlesource.com/webm/libvpx.git
  39. cd libvpx
  40. ./configure --prefix="$HOME/ffmpeg_build" --disable-examples
  41. make -j 32
  42. make install
  43. make clean
  44.  
  45. cd ~/ffmpeg_sources
  46. git clone http://source.ffmpeg.org/git/ffmpeg.git
  47. cd ffmpeg
  48. make distclean
  49. 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
  50. make
  51. make install
  52. make distclean
  53. hash -r
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement