CI FFmpeg Linux: use NV headers 12.0

This implies driver version 520 in Linux.

That driver is not avaiable on Kepler cards (1st generation supporting
NVENC), which is almost 10 years old and only basic H.264 was supported
there.

This SDK version allows acceleration of AV1 on supported cards (GeForce
40 series - Ada Lovelace).
This commit is contained in:
Martin Pulec
2023-08-21 11:10:33 +02:00
parent 989d732d80
commit 5f229e66bf

View File

@@ -29,9 +29,9 @@ install_svt() {
git am -3 SVT-VP9/ffmpeg_plugin/master-*.patch
}
# The NVENC API implies respective driver version (see libavcodec/nvenc.c) - 455.28 (Linux) / 456.71 (Windows) for v11.0
# The NV Video Codec SDK headers version 12.0 implies driver v520.56.06 in Linux
install_nv_codec_headers() {
git clone --depth 1 -b sdk/11.0 https://github.com/FFmpeg/nv-codec-headers
git clone --depth 1 -b sdk/12.0 https://github.com/FFmpeg/nv-codec-headers
( cd nv-codec-headers && make && sudo make install || exit 1 )
}