gpt4 book ai didi

ffmpeg - 无法编译 ffmpeg 以支持 NVIDIA 硬件加速

转载 作者:行者123 更新时间:2023-12-04 23:34:01 26 4
gpt4 key购买 nike

我正在尝试编译 ffmpeg 以支持 NVIDIA 硬件加速。但我收到以下错误:

libavcodec/cuvid.c: In function ‘check_cu’:
libavcodec/cuvid.c:83:5: error: implicit declaration of function ‘cuGetErrorName’ [-Werror=implicit-function-declaration]
cuGetErrorName(err, &err_name);
^
libavcodec/cuvid.c:84:5: error: implicit declaration of function ‘cuGetErrorString’ [-Werror=implicit-function-declaration]
cuGetErrorString(err, &err_string);

我按照 NVIDIA 开发者论坛上的说明安装了 CUDA。我使用的配置是:
./configure --enable-nonfree --enable-nvenc --enable-cuda --enable-cuvid --enable-libx264 --enable-gpl

我笔记本电脑上的 GPU 是 NVIDIA Corporation GM108M [GeForce 840M]。

最佳答案

尝试安装 CUDA UTILITY:

$ wget http://developer.download.nvidia.com/compute/redist/ffmpeg/1511-patch/cudautils.zip
$ unzip cudautils.zip
$ cd cudautils
$ make

并添加配置:--extra-cflags=-I../cudautils --extra-ldflags=-L../cudautils

无论如何 this manual会更好。

关于ffmpeg - 无法编译 ffmpeg 以支持 NVIDIA 硬件加速,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41486383/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com