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

  1. #!/bin/bash
  2. export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/
  3. curDir="$PWD"
  4. pkg=MediaSDK
  5. if ! [[ -d "$pkg" ]]
  6. then
  7. git clone https://github.com/Intel-Media-SDK/MediaSDK.git
  8. fi
  9. #Unsure if still needed:
  10. echo "#include <stdint.h>" >>./MediaSDK/api/mfx_dispatch/linux/mfxparser.cpp
  11. cd "$pkg"
  12. mkdir -p build
  13. cd build
  14. make clean
  15. cmake \
  16. -DCMAKE_INSTALL_PREFIX="/app/ffmpeg/install/" \
  17. -DENABLE_X11_DRI3=ON \
  18. -DENABLE_WAYLAND=ON \
  19. ../
  20. make -j8
  21. if make
  22. then
  23. make install
  24. cd "$curDir"
  25. rm -rf "$pkg"
  26. else
  27. cd "$curDir"
  28. echo "BUILD FAILED"
  29. fi
  30. echo "Done"