[FFmpeg-user] Nvenc Fails with Cannot Init CUDA

Dennis Mungai dmngaie at gmail.com
Thu May 31 18:56:53 EEST 2018


Hello,

Can you provide the output of:

ffmpeg -buildconf

And how you installed the NVIDIA driver?
And what platform/OS you're on?

For linux, run:

lsb_release -a

Normally, with the installation of the NVIDIA driver through the
distribution's package manager (yum, apt, dnf, etc), it should satisfy the
requirements for CUDA runtimes, normally called libcuda-$driver-version on
Debian distros.

Without that information, we are not able to assist.

On 31 May 2018 at 18:43, Fabian Russell <fr314159 at gmail.com> wrote:

> Hello,
>
> On my linux system I have an Nvidia GT 730 card:
>
> # lspci | grep -i nvidia
> 01:00.0 VGA compatible controller: NVIDIA Corporation GK208B [GeForce GT
> 730] (rev a1)
>
> This GPU is supposed to support nvenc using the latest proprietary Nvidia
> drivers
> yet when I attempt to record or transcode a video nvenc will fail.  Here is
> one example
> of the many possible command lines:
>
> ffmpeg -i input.mp4 -c:v h264_nvenc output.mkv
>
> [h264_nvenc @ 0xb10d00] Cannot init CUDA
>
> Using the strace utility I can get a little more information on the error:
>
> strace ffmpeg -i input.mp4 -c:v h264_nvenc output.mkv
>
> stat("/dev/nvidia-uvm", {st_mode=S_IFCHR|0666, st_rdev=makedev(249, 0),
> ...}) = 0
> stat("/dev/nvidia-uvm-tools", {st_mode=S_IFCHR|0666, st_rdev=makedev(249,
> 1), ...}) = 0
> openat(AT_FDCWD, "/dev/nvidia-uvm", O_RDWR|O_CLOEXEC) = -1 EIO
> (Input/output error)
> openat(AT_FDCWD, "/dev/nvidia-uvm", O_RDWR) = -1 EIO (Input/output error)
> ioctl(-5, _IOC(0, 0x00, 0x01, 0x3000), 0x7ffd8ccc67e0) = -1 EBADF (Bad file
> descriptor)
> ioctl(-5, _IOC(0, 0x00, 0x02, 0x3000), 0) = -1 EBADF (Bad file descriptor)
> close(-5)                               = -1 EBADF (Bad file descriptor)
> write(2, "\33[48;5;0m\33[38;5;51m[h264_nvenc @"..., 47[h264_nvenc @
> 0xf33d00] ) = 47
> write(2, "\33[48;5;0m\33[38;5;196mCannot init "..., 41Cannot init CUDA
> ) = 41
>
> What is the problem here?  How can I debug this further?
>
> Is it necessary to install the complete Nvidia SDK package?
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list