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.gitmakesudo 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