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.

39 lines
583 B

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