欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Windows msys2编译ffmpeg之ERROR: cuvid requested, but not all dependencies are satisfied: cuda/ffnvcodec

程序员文章站 2024-02-19 23:37:04
...

一、错误

Nvidia Cuda with drivers are installed. When I try to configure ffmpeg, it says:

ERROR: cuvid requested, but not all dependencies are satisfied: cuda

Newer ffmpeg will show a similar, re-worded message:

ERROR: cuda requested, but not all dependencies are satisfied: ffnvcodec

 

 二、在msys2 命令行输入

git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git
cd nv-codec-headers
make
sudo make install

Now compile ffmpeg as usual. The headers should be autodetected. If not then declare the PKG_CONFIG_PATH pointing to the path where ffnvcodec.pc is located when running configure for FFmpeg. For example:

PKG_CONFIG_PATH="/path/to/lib/pkgconfig" ./configure 

原文链接:https://superuser.com/questions/1299064/error-cuvid-requested-but-not-all-dependencies-are-satisfied-cuda-ffnvcodec 

相关标签: Mingw ffmpeg