From 5f229e66bfb1fda4b0037a94d86213601e2f6397 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Mon, 21 Aug 2023 11:10:33 +0200 Subject: [PATCH] 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). --- .github/scripts/Linux/download_build_ffmpeg.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/Linux/download_build_ffmpeg.sh b/.github/scripts/Linux/download_build_ffmpeg.sh index 03ed3225c..59dc34749 100755 --- a/.github/scripts/Linux/download_build_ffmpeg.sh +++ b/.github/scripts/Linux/download_build_ffmpeg.sh @@ -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 ) }