[FFmpeg-user] A compiling question

王世威 779803560 at qq.com
Wed May 25 17:49:44 EEST 2022


Hi, I'm currently compiling ffmpeg for my ubuntu18.04, and I have NVIDIA GTX1060, NVIDIA driver 11.4, cuda version 10.2, cudnn version7.6.5, I want to use GPU acceleration for encoding/decoding.


Yesterday, I got it done with following configuration and it worked perfectly with my test video(ffmpeg 4.3.4 +nv-codec-headers10.0):

  ./configure --prefix=/usr/local/ffmpeg --disable-asm --disable-x86asm \  --enable-cuda --enable-cuvid --enable-nvenc \  --enable-nonfree --enable-libnpp \  --extra-cflags=-I/usr/local/cuda/include \  --extra-cflags=-fPIC --extra-ldflags=-L/usr/local/cuda/lib64 \  --enable-gpl --enable-libx264  --enable-libx265 \  --enable-shared \  --enable-libass \  --enable-libfdk-aac \  --enable-libfreetype \  --enable-libmp3lame \  --enable-libopus \  --enable-libtheora \  --enable-libvorbis               

However, today I want to try another version of nv-codec-headers, and I use the exactly same configuration, it gives me these errors:
[h264_cuvid @ 0x55e14e670bb0] ctx->cvdl->cuvidGetDecoderCaps(&ctx->caps8) failed
[h264_cuvid @ 0x55e14e670bb0] ctx->cvdl->cuvidGetDecoderCaps(&ctx->caps10) failed
[h264_cuvid @ 0x55e14e670bb0] ctx->cvdl->cuvidGetDecoderCaps(&ctx->caps12) failed
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (h264_cuvid) -> h264 (h264_nvenc))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Error while opening decoder for input stream #0:0 : Generic error in an external library



Right after this error occurred, I was never able to make it work again. No matter what version I choose, or what configuration I use, it just didn't work, always the same errors. I couldn't use GPU to accelerate the video encoding/decoding anymore.


I couldn't find any solution on the Internet, seems that no one has ever come across this error. Could you please help me on it?


Best Regards!


More information about the ffmpeg-user mailing list