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.

29 lines
469 B

  1. #!/bin/bash
  2. export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/
  3. curDir="$PWD"
  4. pkg=dav1d
  5. if ! [[ -d "$pkg" ]]
  6. then
  7. git clone https://code.videolan.org/videolan/dav1d.git
  8. fi
  9. mkdir -p build
  10. cd "$pkg"
  11. meson ../build/
  12. meson configure ../build/ -Dprefix=/app/ffmpeg/install/
  13. cd ../
  14. if ninja -C build/ install
  15. then
  16. make install
  17. cd "$curDir"
  18. rm -rf "$pkg" "build"
  19. else
  20. cd "$curDir"
  21. echo "BUILD FAILED"
  22. fi
  23. echo "Done"