|
|
@@ -659,44 +659,44 @@ CONFIGURE_OPTIONS+=("--enable-libsrt")
|
|
|
## HWaccel library
|
|
|
##
|
|
|
|
|
|
-# if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
|
|
-# if command_exists "nvcc"; then
|
|
|
-# if build "nv-codec"; then
|
|
|
-# download "https://github.com/FFmpeg/nv-codec-headers/releases/download/n11.0.10.0/nv-codec-headers-11.0.10.0.tar.gz"
|
|
|
-# execute make PREFIX="${WORKSPACE}"
|
|
|
-# execute make install PREFIX="${WORKSPACE}"
|
|
|
-# build_done "nv-codec"
|
|
|
-# fi
|
|
|
-# CFLAGS+=" -I/usr/local/cuda/include"
|
|
|
-# LDFLAGS+=" -L/usr/local/cuda/lib64"
|
|
|
-# CONFIGURE_OPTIONS+=("--enable-cuda-nvcc" "--enable-cuvid" "--enable-nvenc" "--enable-cuda-llvm")
|
|
|
-
|
|
|
-# if [ -z "$LDEXEFLAGS" ]; then
|
|
|
-# CONFIGURE_OPTIONS+=("--enable-libnpp") # Only libnpp cannot be statically linked.
|
|
|
-# fi
|
|
|
-
|
|
|
-# # https://arnon.dk/matching-sm-architectures-arch-and-gencode-for-various-nvidia-cards/
|
|
|
-# CONFIGURE_OPTIONS+=("--nvccflags=-gencode arch=compute_52,code=sm_52")
|
|
|
-# fi
|
|
|
-
|
|
|
-# # Vaapi doesn't work well with static links FFmpeg.
|
|
|
-# if [ -z "$LDEXEFLAGS" ]; then
|
|
|
-# # If the libva development SDK is installed, enable vaapi.
|
|
|
-# if library_exists "libva"; then
|
|
|
-# if build "vaapi"; then
|
|
|
-# build_done "vaapi"
|
|
|
-# fi
|
|
|
-# CONFIGURE_OPTIONS+=("--enable-vaapi")
|
|
|
-# fi
|
|
|
-# fi
|
|
|
-# fi
|
|
|
+if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
|
|
+ if command_exists "nvcc"; then
|
|
|
+ if build "nv-codec"; then
|
|
|
+ download "https://github.com/FFmpeg/nv-codec-headers/releases/download/n11.0.10.0/nv-codec-headers-11.0.10.0.tar.gz"
|
|
|
+ execute make PREFIX="${WORKSPACE}"
|
|
|
+ execute make install PREFIX="${WORKSPACE}"
|
|
|
+ build_done "nv-codec"
|
|
|
+ fi
|
|
|
+ CFLAGS+=" -I/usr/local/cuda/include"
|
|
|
+ LDFLAGS+=" -L/usr/local/cuda/lib64"
|
|
|
+ CONFIGURE_OPTIONS+=("--enable-cuda-nvcc" "--enable-cuvid" "--enable-nvenc" "--enable-cuda-llvm")
|
|
|
|
|
|
-##
|
|
|
-## FFmpeg
|
|
|
-##
|
|
|
+ if [ -z "$LDEXEFLAGS" ]; then
|
|
|
+ CONFIGURE_OPTIONS+=("--enable-libnpp") # Only libnpp cannot be statically linked.
|
|
|
+ fi
|
|
|
+
|
|
|
+ # https://arnon.dk/matching-sm-architectures-arch-and-gencode-for-various-nvidia-cards/
|
|
|
+ CONFIGURE_OPTIONS+=("--nvccflags=-gencode arch=compute_52,code=sm_52")
|
|
|
+ fi
|
|
|
+
|
|
|
+ # Vaapi doesn't work well with static links FFmpeg.
|
|
|
+ if [ -z "$LDEXEFLAGS" ]; then
|
|
|
+ # If the libva development SDK is installed, enable vaapi.
|
|
|
+ if library_exists "libva"; then
|
|
|
+ if build "vaapi"; then
|
|
|
+ build_done "vaapi"
|
|
|
+ fi
|
|
|
+ CONFIGURE_OPTIONS+=("--enable-vaapi")
|
|
|
+ fi
|
|
|
+ fi
|
|
|
+fi
|
|
|
+
|
|
|
+#
|
|
|
+# FFmpeg
|
|
|
+#
|
|
|
|
|
|
build "ffmpeg"
|
|
|
-download "https://git.ffmpeg.org/gitweb/ffmpeg.git/snapshot/553eb0773763798a6b9656b621cb125e1f6edbcc.tar.gz"
|
|
|
+download "https://git.ffmpeg.org/gitweb/ffmpeg.git/snapshot/09c358362008e2d04cec8239526c6827543da4cf.tar.gz"
|
|
|
# shellcheck disable=SC2086
|
|
|
./configure "${CONFIGURE_OPTIONS[@]}" \
|
|
|
--disable-debug \
|