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

  1. #!/bin/bash
  2. #Depends on libtool
  3. export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/
  4. curDir="$PWD"
  5. pkg=ImageMagick
  6. if ! [[ -d "$pkg" ]]
  7. then
  8. git clone https://github.com/ImageMagick/ImageMagick.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. --enable-opengl \
  23. --enable-opencl \
  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"