NVENC SDK 4.0 fails in Linux

Hi All,

I am testing NVENC SDK 4.0 in GeForce GTX 760 and GTX 680. When I run nvEncodeApp sample in Windows 7-64 bit and it works perfectly, so the hardware seems to work correctly.

But when I try to run the same code in Linux (Ubuntu 14.04 & Debian wheezy) it fails when calling NvEncInitializeEncoder. This call returns error code 8 (NV_ENC_ERR_INVALID_PARAM).

jtaibo@perkele:~/nvenc_sdk_4.0/Samples/nvEncodeApp$ sh ./1080p_heavyhand_3sec.sh 

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

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

>> Select GPU #0 - < GeForce GTX 680 > supports SM 3.0 and NVENC

 nvEncoder Error: NVENC H.264 encoder initialization failure! Check input params!

[b]Is NVENC SDK for Linux really supported in GeForce cards ?

Has anyone successfully run this test?
[/b]

Thanks in advance.

It’s supported on GeForce on Windows, but alas it doesn’t seem to be supported on GeForce on Linux.

Hopefully Valve and their SteamOS will force Nvidia to consider enabling NVENC on Geforce on Linux.

Thanks for the answer. It seems that NVIDIA does not care too much about Linux. Pity.

I had the same issue, sadly the Quatro also seems to fail under Linux. I get the same error from NvEncInitializeEncoder.

$ sh 1080p_heavyhand_3sec.sh 

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

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

>> Select GPU #0 - < Quadro K620 > supports SM 5.0 and NVENC

 nvEncoder Error: NVENC H.264 encoder initialization failure! Check input params!

Same error here

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

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

>> Select GPU #0 - < GeForce GT 630 > supports SM 3.5 and NVENC

 nvEncoder Error: NVENC H.264 encoder initialization failure! Check input params!

NVIDIA should correct this error