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.

42 lines
649 B

  1. #!/bin/bash
  2. export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/
  3. curDir="$PWD"
  4. pkg=libva-utils
  5. if ! [[ -d "$pkg" ]]
  6. then
  7. git clone https://github.com/intel/libva-utils.git
  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-drm \
  22. --enable-shared \
  23. --enable-static \
  24. --prefix="/app/ffmpeg/install/"
  25. make -j8
  26. if make
  27. then
  28. make install
  29. cd "$curDir"
  30. rm -rf "$pkg"
  31. else
  32. cd "$curDir"
  33. echo "BUILD FAILED"
  34. fi
  35. echo "Done"