FFmpeg-Builds/scripts.d/50-ffnvcodec.sh
2021-07-12 16:50:56 +02:00

31 lines
546 B
Bash
Executable file

#!/bin/bash
FFNVCODEC_REPO="https://github.com/FFmpeg/nv-codec-headers.git"
FFNVCODEC_COMMIT="9939a5b7f49420c408b7a40f26c500c7ccfb6757"
ffbuild_enabled() {
return 0
}
ffbuild_dockerbuild() {
git-mini-clone "$FFNVCODEC_REPO" "$FFNVCODEC_COMMIT" ffnvcodec
cd ffnvcodec
make PREFIX="$FFBUILD_PREFIX" install
}
ffbuild_configure() {
echo --enable-ffnvcodec --enable-cuda-llvm
}
ffbuild_unconfigure() {
echo --disable-ffnvcodec --disable-cuda-llvm
}
ffbuild_cflags() {
return 0
}
ffbuild_ldflags() {
return 0
}