[FFmpeg-user] A compiling question
ferdi at sttc-nlp.nl
Thu May 26 18:26:16 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!
My best guess is that when you change headers you must recompile.
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user