Scripts for building va-api enabled ffmpeg (with intel)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
941 B

  1. #!/bin/bash
  2. export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/
  3. curDir="$PWD"
  4. pkg=libvpx
  5. if ! [[ -d "$pkg" ]]
  6. then
  7. git clone https://github.com/webmproject/libvpx/
  8. fi
  9. cd "$pkg"
  10. if ! [[ -f configure ]] && [[ -f autogen.sh ]]
  11. then
  12. bash autogen.sh
  13. elif ! [[ -f configure ]]
  14. then
  15. echo "NO WAY TO CONFIGURE?, CMAKE?"
  16. exit 1
  17. fi
  18. make clean
  19. make distclean
  20. ./configure \
  21. --enable-runtime-cpu-detect \
  22. --enable-vp9 \
  23. --enable-vp8 \
  24. --enable-postproc \
  25. --enable-vp9-postproc \
  26. --enable-multi-res-encoding \
  27. --enable-webm-io \
  28. --enable-vp9-highbitdepth \
  29. --enable-onthefly-bitpacking \
  30. --enable-realtime-only \
  31. --enable-better-hw-compatibility \
  32. --disable-unit-tests \
  33. --as=nasm \
  34. --prefix="/app/ffmpeg/install/"
  35. make -j8
  36. if make
  37. then
  38. make install
  39. cd "$curDir"
  40. rm -rf "$pkg"
  41. else
  42. cd "$curDir"
  43. echo "BUILD FAILED"
  44. fi
  45. echo "Done"