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.

40 lines
628 B

  1. #!/bin/bash
  2. export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/
  3. unset LIBVA_DRIVERS_PATH
  4. curDir="$PWD"
  5. pkg=intel-vaapi-driver
  6. if ! [[ -d "$pkg" ]]
  7. then
  8. git clone https://github.com/intel/intel-vaapi-driver.git
  9. fi
  10. cd "$pkg"
  11. if ! [[ -f configure ]] && [[ -f autogen.sh ]]
  12. then
  13. bash autogen.sh
  14. elif ! [[ -f configure ]]
  15. then
  16. echo "NO WAY TO CONFIGURE?, CMAKE?"
  17. exit 1
  18. fi
  19. make clean
  20. make distclean
  21. ./configure \
  22. --prefix="/app/ffmpeg/install/"
  23. #make -j8
  24. if make
  25. then
  26. make install
  27. cd "$curDir"
  28. rm -rf "$pkg"
  29. else
  30. cd "$curDir"
  31. echo "BUILD FAILED"
  32. fi
  33. echo "Done"