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-07-08 15:37:10 +00:00
|
|
|
SCRIPT_COMMIT="855f8263d97bbdcaeabaaaa2997e1ccad7c52dc3"
|
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
|
|
|
|
}
|
|
|
|
|
2023-06-18 14:44:57 +00:00
|
|
|
ffbuild_dockerdl() {
|
2023-06-18 19:25:50 +00:00
|
|
|
default_dl ffnvcodec
|
|
|
|
to_df "RUN git-mini-clone \"$SCRIPT_REPO2\" \"$SCRIPT_COMMIT2\" ffnvcodec2"
|
2023-06-18 14:44:57 +00:00
|
|
|
}
|
|
|
|
|
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
|
2023-06-18 14:44:57 +00:00
|
|
|
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
|
|
|
|
}
|