FFmpeg-Builds/scripts.d/50-ffnvcodec.sh

44 lines
913 B
Bash
Raw Permalink Normal View History

2020-09-03 17:32:54 +00:00
#!/bin/bash
2022-07-12 15:54:12 +00:00
SCRIPT_REPO="https://github.com/FFmpeg/nv-codec-headers.git"
2023-06-21 11:43:28 +00:00
SCRIPT_COMMIT="9402b5a7693e9841f8a4f4488cd2df21ac55c685"
2022-11-06 00:21:33 +00:00
SCRIPT_REPO2="https://github.com/FFmpeg/nv-codec-headers.git"
2023-06-21 11:43:28 +00:00
SCRIPT_COMMIT2="dc3e4484dc83485734e503991fe5ed3bdf256fba"
2022-11-06 00:21:33 +00:00
SCRIPT_BRANCH2="sdk/11.1"
2020-09-03 17:32:54 +00:00
ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
default_dl ffnvcodec
to_df "RUN git-mini-clone \"$SCRIPT_REPO2\" \"$SCRIPT_COMMIT2\" ffnvcodec2"
}
2020-09-03 17:32:54 +00:00
ffbuild_dockerbuild() {
2022-11-06 00:21:33 +00:00
if [[ $ADDINS_STR == *4.4* || $ADDINS_STR == *5.0* || $ADDINS_STR == *5.1* ]]; then
cd "$FFBUILD_DLDIR"/ffnvcodec2
else
cd "$FFBUILD_DLDIR"/ffnvcodec
2022-11-06 00:21:33 +00:00
fi
2021-04-04 21:20:31 +00:00
make PREFIX="$FFBUILD_PREFIX" install
2020-09-03 17:32:54 +00:00
}
ffbuild_configure() {
echo --enable-ffnvcodec --enable-cuda-llvm
}
ffbuild_unconfigure() {
echo --disable-ffnvcodec --disable-cuda-llvm
}
ffbuild_cflags() {
return 0
}
ffbuild_ldflags() {
return 0
}