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.

44 lines
681 B

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