Error while encoding a video file and streaming

Hi Everyone, I am running one of the samples in Nvidia SDK 8.2.15 (AppEncDec.cpp). I am able to decode a file but when I trying encoding and stream it, I get the following error:

LoadNvEncApi : NvEncodeAPIGetMaxSupportedVersion(&version) returned error 24957824 at …/Video_Codec_SDK_8.2.15/Samples/NvCodec/NvEncoder/NvEncoder.cpp:92”

I get this error when I try to create an instance of NvEncoderCuda “NvEncoderCuda enc(cuContext, nWidth, nHeight, eFormat)

I have Nvidia 396.26 drivers installed. My GPU is Nvidia 1050 Ti. can someone help me out in solving this issue? Thank you.

Hi mizbauddin,

  1. Which OS are you are using? Is it Linux or windows?
  2. Is it possible for you to move to latest R415 drivers?
  3. Would also suggest using Video Codec SDK 8.2.16.

After trying steps 2 and 3, please let us know if you still see the problem. If you still see the same issue, our engineering team will then further debug the issue.

Thanks,
Ryan Park

Hi rypark, I was able to debug the issue. The sample program in Nvidia Codec SDK wasn’t able to find one fo the library files. Thank you for getting back to me.

Hi rypark, Can you tell me what the ffmpeg version needed to stream videos onto a port? I have currently 4.0.2 installed which doesn’t have the ffserver functionality anymore. Do I need to install a version which has ffserver functionality working?

Hi

Hi rypark, I am still getting errors when I am trying to encode frames and stream. These are the errors I am getting right now when I try to run Samples/AppEncode/AppEncDec.cpp

[INFO ][17:26:13] Streaming destination: tcp://127.0.0.1:8899
[tcp @ 0x7f80d4791d00] Connection to tcp://127.0.0.1:8899 failed: Connection refused
[ERROR][17:26:13] FFMPEG: Could not open tcp://127.0.0.1:8899

host frame size is: 1382400 nRead is: 1382400
frames encoded : 0

host frame size is: 1382400 nRead is: 1382400
frames encoded : 0

host frame size is: 1382400 nRead is: 1382400
frames encoded : 0

host frame size is: 1382400 nRead is: 1382400
Segmentation fault (core dumped)

The following are the specifications of the system on which I am running

  1. Ubuntu 16.04
  2. Nvidia Tesla P4 gpu
  3. FFMPEG 4.0.2
  4. CUDA 9.0
  5. Nvidia SDK 8.2.16

can you help me out in solving this issue? Thank you.