ffmpeg安装ERROR: cuvid requested, but not all dependencies are satisfied: ffnvcodec

南笙酒味 提交于 2019-12-04 05:07:26

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

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.

 

解决方法:安装NVIDIA headers

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

然后重新configure:

 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --extra-cflags='-I/home/wuxiaofeng/vendor/x264-snapshot-20181101-2245-stable -I/usr/local/cuda/include' --extra-ldflags='-L/home/wuxiaofeng/vendor/x264-snapshot-20181101-2245-stable -L/usr/local/cuda/lib64 -ldl ' --pkg-config-flags=--static --prefix=/home/wuxiaofeng/vendor/ffmpeg_4.0.2/ --enable-gpl --enable-libx264 --enable-cuvid --enable-nvenc --enable-nonfree --enable-debug=gdb3 --cc=/usr/bin/gcc --cxx=/usr/bin/g++ --nvcc=/usr/local/cuda-9.0/bin/nvcc --disable-encoders --enable-encoder=h264_nvenc,nvenc_h264,aac,libx264 --disable-decoders --enable-decoder=aac,h264,h264_cuvid,png --disable-muxers --enable-muxer=flv --disable-demuxers --enable-demuxer=flv,image2 --disable-filters --enable-filter=overlay,amix,scale,pad,aformat,crop,aresample,crop,asplit

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!