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.

37 lines
690 B

  1. #!/bin/bash
  2. export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/
  3. curDir="$PWD"
  4. pkg=media-driver
  5. if ! [[ -d "$pkg" ]]
  6. then
  7. git clone https://github.com/intel/media-driver.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. -DMEDIA_BUILD_FATAL_WARNINGS=OFF \
  16. ../
  17. # -DCMAKE_C_FLAGS="-O1 -Wno-error=overloaded-virtual" \
  18. # -DCMAKE_CXX_FLAGS="-O1 -Wno-error=overloaded-virtual" \
  19. # -DCMAKE_Fortran_FLAGS="-O1 -Wno-error=overloaded-virtual" \
  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"