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.

32 lines
513 B

  1. #!/bin/bash
  2. export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/
  3. curDir="$PWD"
  4. pkg="SVT-AV1"
  5. if ! [[ -d "$pkg" ]]
  6. then
  7. git clone https://gitlab.com/AOMediaCodec/SVT-AV1.git
  8. fi
  9. cd "$pkg/Build"
  10. make clean
  11. make distclean
  12. cmake \
  13. -DCMAKE_BUILD_TYPE=Realease \
  14. -DCMAKE_INSTALL_PREFIX="/app/ffmpeg/install/" \
  15. .. -G"Unix Makefiles"
  16. make -j8
  17. if make
  18. then
  19. make install
  20. cd "$curDir"
  21. rm -rf "$pkg"
  22. else
  23. cd "$curDir"
  24. echo "BUILD FAILED"
  25. fi
  26. echo "Done"