Error nvenc 0x3e7 (999) Encoding ffmpeg (Ubtuntu 14.04)

Hi…

  I've tried encoding with ffmpeg but always have the same error when it started with video encoding part..

“>> dl_fn->cu_init(0) - failed with error code 0x3e7”

I followed all the instructions to compile ffmpeg (according to FFMPEG WITH NVIDIA ACCELERATION ON UBUNTU LINUX) using the cuda sdk 7.5 and my nvidia driver version it’s 352.63 so everything looks fine

lsmod | grep nvidia
nvidia 8642880 44
drm 303102 2 nvidia

fmpeg -encoders | grep nvenc
ffmpeg version N-76714-g518742b Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
configuration: --prefix=/home/ptvidal/ffmpeg_build --pkg-config-flags=–static --extra-cflags=-I/home/ptvidal/ffmpeg_build/include --extra-ldflags=-L/home/ptvidal/ffmpeg_build/lib --bindir=/home/ptvidal/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nvenc --enable-nvresize --enable-libx265 --enable-nonfree
libavutil 55. 6.100 / 55. 6.100
libavcodec 57. 15.100 / 57. 15.100
libavformat 57. 15.100 / 57. 15.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 15.100 / 6. 15.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
V… nvenc NVIDIA NVENC h264 encoder (codec h264)
V… nvenc_h264 NVIDIA NVENC h264 encoder (codec h264)
V… nvenc_hevc NVIDIA NVENC hevc encoder (codec hevc)

ffmpeg -filters | grep resize
ffmpeg version N-76714-g518742b Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
configuration: --prefix=/home/ptvidal/ffmpeg_build --pkg-config-flags=–static --extra-cflags=-I/home/ptvidal/ffmpeg_build/include --extra-ldflags=-L/home/ptvidal/ffmpeg_build/lib --bindir=/home/ptvidal/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nvenc --enable-nvresize --enable-libx265 --enable-nonfree
libavutil 55. 6.100 / 55. 6.100
libavcodec 57. 15.100 / 57. 15.100
libavformat 57. 15.100 / 57. 15.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 15.100 / 6. 15.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
… nvresize V->N GPU accelerated video resizer.

ls -la /dev/nvidia*
crw-rw-rw- 1 root root 195, 0 nov 19 11:49 /dev/nvidia0
crw-rw-rw- 1 root root 195, 255 nov 19 11:49 /dev/nvidiactl

and my nvidia-smi
nvidia-smi
Thu Nov 19 15:37:17 2015
±-----------------------------------------------------+
| NVIDIA-SMI 352.63 Driver Version: 352.63 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GT 640 Off | 0000:01:00.0 N/A | N/A |
| 30% 36C P8 N/A / N/A | 288MiB / 2047MiB | N/A Default |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 Not Supported |
±----------------------------------------------------------------------------+

I don’t know what’s could be wrong or if there are something miss… and also I’m looking for the cuda error codes and didn’t found any information about that…