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