如何使用较旧的 NVEnc 编译 FFMpeg?

dab*_*bei 1 ffmpeg google-kubernetes-engine nvenc

使用 NVEnc 运行 FFMpeg 时出现此错误。

[h264_nvenc @ 0x2a27d00] Driver does not support the required nvenc API version. Required: 9.1 Found: 9.0
[h264_nvenc @ 0x2a27d00] The minimum required Nvidia driver for nvenc is 435.21 or newer
Run Code Online (Sandbox Code Playgroud)

我无法将驱动程序升级到最新版本,因为我受到 GKE 支持的限制。

dab*_*bei 6

解决。我正在使用https://git.videolan.org/git/ffmpeg/nv-codec-headers.git中的最新代码编译 ffmpeg 切换到 sdk/9.0 分支适用于 GKE 上的 nvidia 驱动程序。