moonchild_it

FFMPEG Compile

Apr 13th, 2017
153
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. mkdir /tmp/ffmpeg_build
  4.  
  5. cd /tmp/ffmpeg_build/ || exit
  6. wget http://download.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
  7. tar jxf last_x264.tar.bz2
  8. cd x264-snapshot* || exit
  9. ./configure --prefix="/tmp/ffmpeg_build" --enable-static --enable-pic --bindir="$HOME/bin"
  10. make -j9
  11. make install
  12.  
  13. cd /tmp/ffmpeg_build || exit
  14. hg clone http://hg.videolan.org/x265
  15. cd x265/build/linux || exit
  16. cmake -G "Unix Makefiles" ../../source -DCMAKE_INSTALL_PREFIX:PATH=/tmp/ffmpeg_build -DENABLE_SHARED=OFF -DENABLE_CLI=OFF
  17. make -j9
  18. make install
  19.  
  20. cd /tmp/ffmpeg_build/ || exit
  21. git clone https://github.com/mstorsjo/fdk-aac.git
  22. cd fdk-aac || exit
  23. ./autogen.sh
  24. ./configure --prefix="/tmp/ffmpeg_build" --disable-shared
  25. make -j9
  26. make install
  27.  
  28. cd /tmp/ffmpeg_build/ || exit
  29. wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
  30. tar jxf ffmpeg-snapshot.tar.bz2
  31. cd ffmpeg || exit
  32. export PATH="$HOME/bin:$PATH"
  33. export PKG_CONFIG_PATH="/tmp/ffmpeg_build/lib/pkgconfig:$PKG_CONFIG_PATH"
  34. ./configure --prefix="/usr/local" --pkg-config-flags="--static" \
  35. --enable-avisynth \
  36. --enable-frei0r \
  37. --enable-gnutls \
  38. --enable-gpl \
  39. --enable-ladspa \
  40. --enable-libass \
  41. --enable-libbluray \
  42. --enable-libbs2b \
  43. --enable-libcaca \
  44. --enable-libcdio \
  45. --enable-cuda \
  46. --enable-cuvid \
  47. --enable-libdc1394 \
  48. --enable-libfdk-aac \
  49. --enable-libflite \
  50. --enable-libfontconfig \
  51. --enable-libfreetype \
  52. --enable-libfribidi \
  53. --enable-libgme \
  54. --enable-libgsm \
  55. --enable-libiec61883 \
  56. --enable-libmodplug \
  57. --enable-libmp3lame \
  58. --enable-libnpp \
  59. --enable-libopencv \
  60. --enable-libopus \
  61. --enable-libpulse \
  62. --enable-librtmp \
  63. --enable-libshine \
  64. --enable-libsmbclient \
  65. --enable-libsnappy \
  66. --enable-libsoxr \
  67. --enable-libspeex \
  68. --enable-libtheora \
  69. --enable-libtwolame \
  70. --enable-libv4l2 \
  71. --enable-libvorbis \
  72. --enable-libvpx \
  73. --enable-libwavpack \
  74. --enable-libwebp \
  75. --enable-libx264 \
  76. --enable-libx265 \
  77. --enable-libxvid \
  78. --enable-libzvbi \
  79. --enable-nonfree \
  80. --enable-nvenc \
  81. --enable-openal \
  82. --enable-opencl \
  83. --enable-opengl \
  84. --enable-openssl \
  85. --enable-version3 \
  86. --extra-libs=-lasound
  87.  
  88. make -j9
  89. make install
  90.  
  91. rm -fr /tmp/ffmpeg_build
RAW Paste Data