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.

34 lines
537 B

  1. #!/bin/bash
  2. export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/
  3. curDir="$PWD"
  4. pkg=libjpeg-turbo
  5. if ! [[ -d "$pkg" ]]
  6. then
  7. git clone https://github.com/libjpeg-turbo/libjpeg-turbo.git
  8. fi
  9. cd "$pkg"
  10. mkdir -p build
  11. cd build
  12. make clean
  13. cmake \
  14. -DCMAKE_INSTALL_PREFIX="/app/ffmpeg/install/" \
  15. -DCMAKE_C_FLAGS="-fPIC" \
  16. -DCMAKE_CXX_FLAGS="-fPIC" \
  17. ../
  18. make -j8
  19. if make
  20. then
  21. make install
  22. cd "$curDir"
  23. rm -rf "$pkg"
  24. else
  25. cd "$curDir"
  26. echo "BUILD FAILED"
  27. fi
  28. echo "Done"