I’m trying Video Codec SDK in nvidia-docker .
I’m interested to speed up H264 decoding.
But when I try to run the video-sdk-samples/Samples/AppDecode/AppDec/AppDec.cpp , it doesn’t work.
The cuvidCtxLockCreate function fail every time with a random error value.
GPU in use: Tesla T4
Decode with demuxing.
[INFO ][13:46:57] Media format: QuickTime / MOV (mov,mp4,m4a,3gp,3g2,mj2)
NvDecoder : cuvidCtxLockCreate(&m_ctxLock, cuContext) returned error 15155536 at /home/space2/Video_Codec_SDK_10.0.26/Samples/NvCodec/NvDecoder/NvDecoder.cpp:579
My docker image version is “nvidia/cuda:11.0-devel-centos7”
video-sdk-sample version is Video_Codec_SDK_10.0.26 .
nvidia-smi command shows the following in container .
Mon Jan 11 13:54:20 2021
±----------------------------------------------------------------------------+
| NVIDIA-SMI 440.33.01 Driver Version: 440.33.01 CUDA Version: 11.0 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Tesla T4 Off | 00000000:00:08.0 Off | 0 |
| N/A 35C P0 25W / 70W | 0MiB / 15109MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 1 Tesla T4 Off | 00000000:00:09.0 Off | Off |
| N/A 37C P0 15W / 70W | 0MiB / 16127MiB | 0% Default |
±------------------------------±---------------------±---------------------+
±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
±----------------------------------------------------------------------------+
Stub libraries (libnvcuvid.so and libnvidia-encode.so) are not in my library seach path (LD_LIBRARY_PATH) .
the nvidia docker does not contains /usr/local/cuda-11.0/lib64/libnvcuvid.so
so i copy from a centos system with cuda 11 installed.
It works a few beginning time, but never works after that.
it must be a bug of this nvidia docker or bug of libnvcuvid or video codec sdk.
Sorry to hear about the troubles you’re facing. I’ve created a MR that updates the base video codec SDK images. The README also includes some instructions on how to run a sample (AppDec) with a sample input video file. This has been tested on an NVIDIA T4 and works without any errors reported in this post.
Please try out this MR:
Once you can confirm it works, we can go ahead with merging the changes.