diff options
Diffstat (limited to 'ports/ffmpeg')
| -rw-r--r-- | ports/ffmpeg/CONTROL | 4 | ||||
| -rw-r--r-- | ports/ffmpeg/build.sh | 1 | ||||
| -rw-r--r-- | ports/ffmpeg/build_linux.sh | 1 | ||||
| -rw-r--r-- | ports/ffmpeg/portfile.cmake | 7 |
4 files changed, 13 insertions, 0 deletions
diff --git a/ports/ffmpeg/CONTROL b/ports/ffmpeg/CONTROL index 9b08398db..ef26c4d97 100644 --- a/ports/ffmpeg/CONTROL +++ b/ports/ffmpeg/CONTROL @@ -53,3 +53,7 @@ Description: upgrade (L)GPL to version 3 Feature: avresample Description: Libav audio resampling library support in ffmpeg + +Feature: nvcodec +Build-Depends: ffnvcodec, cuda +Description: Hardware accelerated codecs
\ No newline at end of file diff --git a/ports/ffmpeg/build.sh b/ports/ffmpeg/build.sh index 048d9ec08..40f1797cd 100644 --- a/ports/ffmpeg/build.sh +++ b/ports/ffmpeg/build.sh @@ -1,6 +1,7 @@ #!/usr/bin/bash set -e export PATH=/usr/bin:$PATH +export PKG_CONFIG_PATH="`cygpath -p ${PKG_CONFIG_PATH}`" # Export HTTP(S)_PROXY as http(s)_proxy: if [ "$HTTP_PROXY" ]; then export http_proxy=$HTTP_PROXY diff --git a/ports/ffmpeg/build_linux.sh b/ports/ffmpeg/build_linux.sh index b24be1346..d7360ce1d 100644 --- a/ports/ffmpeg/build_linux.sh +++ b/ports/ffmpeg/build_linux.sh @@ -16,6 +16,7 @@ PATH_TO_PACKAGE_DIR=$3 cd "$PATH_TO_BUILD_DIR" echo "=== CONFIGURING ===" +chmod a+x "$PATH_TO_SRC_DIR/configure" "$PATH_TO_SRC_DIR/configure" "--prefix=$PATH_TO_PACKAGE_DIR" $4 echo "=== BUILDING ===" make -j6 diff --git a/ports/ffmpeg/portfile.cmake b/ports/ffmpeg/portfile.cmake index b1ddd0ddf..6e861a051 100644 --- a/ports/ffmpeg/portfile.cmake +++ b/ports/ffmpeg/portfile.cmake @@ -131,6 +131,12 @@ if("avresample" IN_LIST FEATURES) set(OPTIONS "${OPTIONS} --enable-avresample") endif() +if("nvcodec" IN_LIST FEATURES) + set(OPTIONS "${OPTIONS} --enable-cuda --enable-nvenc --enable-cuvid --disable-libnpp") +else() + set(OPTIONS "${OPTIONS} --disable-cuda --disable-nvenc --disable-cuvid --disable-libnpp") +endif() + set(OPTIONS_CROSS "") if (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64") @@ -177,6 +183,7 @@ if(VCPKG_TARGET_IS_WINDOWS) endif() set(ENV_LIB_PATH "$ENV{${LIB_PATH_VAR}}") +set(ENV{PKG_CONFIG_PATH} "${CURRENT_INSTALLED_DIR}/lib/pkgconfig") message(STATUS "Building Options: ${OPTIONS}") |
