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
619 B

  1. #!/bin/bash
  2. export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/
  3. curDir="$PWD"
  4. pkg=zimg
  5. if ! [[ -d "$pkg" ]]
  6. then
  7. git clone https://github.com/sekrit-twc/zimg.git
  8. fi
  9. cd "$pkg"
  10. git submodule update --init --recursive
  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"