[FFmpeg-user] Nvenc Fails with Cannot Init CUDA

Fabian Russell fr314159 at gmail.com
Thu May 31 19:40:07 EEST 2018


On Thu, May 31, 2018 at 11:56 AM, Dennis Mungai <dmngaie at gmail.com> wrote:

> Hello,
>
> Can you provide the output of:
>
> ffmpeg -buildconf
>
> And how you installed the NVIDIA driver?
> And what platform/OS you're on?
>
>
My system is Gentoo Linux with the Gentoo nvidia-drivers-396.24.

The Gentoo nvidia-drivers include the following files:

/usr/lib64/libcuda.so -> libcuda.so.396.24
/usr/lib64/libcuda.so.1 -> libcuda.so.396.24
/usr/lib64/libcuda.so.396.24

The Gentoo ffmpeg is compiled with --enable-nvenc:

ffmpeg -buildconf

  configuration:
    --prefix=/usr
    --libdir=/usr/lib64
    --shlibdir=/usr/lib64
    --docdir=/usr/share/doc/ffmpeg-3.4.2-r1/html
    --mandir=/usr/share/man
    --enable-shared
    --cc=gcc
    --cxx=g++
    --ar=x86_64-pc-linux-gnu-ar
    --optflags='-O2 -pipe -march=native -floop-interchange
-floop-strip-mine -floop-block -mfpmath=sse -fno-stack-protector
-mindirect-branch=keep -mfunction-return=keep
    --param l1-cache-size=32
    --param l1-cache-line-size=64
    --param l2-cache-size=8192 -fno-strict-aliasing -U_FORTIFY_SOURCE'
    --disable-static
    --enable-avfilter
    --enable-avresample
    --disable-stripping
    --disable-indev=v4l2
    --disable-outdev=v4l2
    --disable-indev=oss
    --disable-indev=jack
    --disable-outdev=oss
    --disable-outdev=sdl
    --enable-version3
    --enable-bzlib
    --disable-runtime-cpudetect
    --disable-debug
    --disable-gcrypt
    --disable-gnutls
    --enable-gmp
    --enable-gpl
    --enable-hardcoded-tables
    --enable-iconv
    --disable-lzma
    --disable-network
    --enable-opencl
    --disable-openssl
    --enable-postproc
    --disable-libsmbclient
    --disable-ffplay
    --disable-sdl2
    --disable-vaapi
    --enable-vdpau
    --enable-xlib
    --enable-libxcb
    --enable-libxcb-shm
    --enable-libxcb-xfixes
    --enable-zlib
    --disable-libcdio
    --disable-libiec61883
    --disable-libdc1394
    --disable-libcaca
    --disable-openal
    --enable-opengl
    --disable-libv4l2
    --disable-libpulse
    --enable-libdrm
    --disable-libopencore-amrwb
    --disable-libopencore-amrnb
    --disable-libfdk-aac
    --disable-libopenjpeg
    --disable-libbluray
    --disable-libcelt
    --disable-libgme
    --disable-libgsm
    --disable-mmal
    --disable-libmodplug
    --enable-libopus
    --disable-libilbc
    --disable-librtmp
    --disable-libssh
    --disable-libspeex
    --enable-librsvg
    --enable-libvorbis
    --disable-libvpx
    --disable-libzvbi
    --disable-appkit
    --enable-libbs2b
    --disable-chromaprint
    --disable-libflite
    --disable-frei0r
    --disable-libfribidi
    --enable-fontconfig
    --disable-ladspa
    --disable-libass
    --disable-libfreetype
    --disable-librubberband
    --disable-libzmq
    --disable-libzimg
    --disable-libsoxr
    --enable-pthreads
    --disable-libvo-amrwbenc
    --enable-libmp3lame
    --disable-libkvazaar
    --enable-nvenc
    --disable-libopenh264
    --disable-libsnappy
    --enable-libtheora
    --disable-libtwolame
    --disable-libwavpack
    --disable-libwebp
    --enable-libx264
    --disable-libx265
    --enable-libxvid
    --disable-armv5te
    --disable-armv6
    --disable-armv6t2
    --disable-neon
    --disable-vfp
    --disable-vfpv3
    --disable-armv8
    --disable-mipsdsp
    --disable-mipsdspr2
    --disable-mipsfpu
    --disable-altivec
    --disable-amd3dnow
    --disable-amd3dnowext
    --disable-fma4
    --disable-xop
    --cpu=host
    --disable-doc
    --disable-htmlpages
    --enable-manpages


More information about the ffmpeg-user mailing list