NVENC not working on Nvidia 930M

After installing ubuntu 15.10 with nvidia-364 from graphics-drivers ppa:

NVENC 6.0 SDK Sample on compilation, running with this command:
./NvEncoder -i …/common/video/plush1_720p_10s.m2v -o hello.avi -size 1280 720

Gives:
NvEncoder: …/common/src/NvHWEncoder.cpp:506: NVENCSTATUS CNvHWEncoder::NvEncOpenEncodeSessionEx(void*, NV_ENC_DEVICE_TYPE): Assertion `0’ failed.

NVENC 4.0 Linux SDK on the command :
bash 1080p_heavyhand_3sec.sh
Gives :

GetNumberEncoders() has detected 1 CUDA capable GPU device(s) <<
[ GPU #0 - < GeForce 930M > has Compute SM 5.0, NVENC Available ]

InitCUDA() has detected 1 CUDA capable GPU device(s)<<
[ GPU #0 - < GeForce 930M > has Compute SM 5.0, Available NVENC ]

Select GPU #0 - < GeForce 930M > supports SM 5.0 and NVENC
File: src/CNVEncoder.cpp, Line: 1872, nvEncOpenEncodeSessionEx() returned with error 2
Note: GUID key may be invalid or incorrect. Recommend to upgrade your drivers and obtain a new key
NVENC error at src/CNVEncoder.cpp:1874 code=2(NVENC that devices pass by the client is not supported) “nvStatus”

Can someone help?

Bump, cuda/nvenc not working on gt 930m for me too. NVENC fails with 0x2 error.

Some info (from ffmpeg):

[graph 0 input from stream 0:0 @ 0x55cc2d2f84a0] w:1920 h:1080 pixfmt:yuv420p tb:1/90000 fr:59/2 sar:1/1 sws_param:flags=2
[nvenc_h264 @ 0x55cc2d2f5b20] 1 CUDA capable devices found
[nvenc_h264 @ 0x55cc2d2f5b20] [ GPU #0 - < GeForce 930M > has Compute SM 5.0, NVENC Available ]
[nvenc_h264 @ 0x55cc2d2f5b20] Nvenc initialized successfully
[nvenc_h264 @ 0x55cc2d2f5b20] OpenEncodeSessionEx failed: 0x2
[nvenc_h264 @ 0x55cc2d2f5b20] Nvenc unloaded

Nothing useful anymore ;(

I have the same problem… Is there any solution?

You might need to update your nvidia driver to at least 384.xx if using the latest ffmpeg/nvenc