NVIDIA Docker nvdec / nvenc gstreamer plugin

What’s the recommended way to build the nvdec / nvenc gstreamer 1.16.0 plugins to be used in NVIDIA Docker? I downloaded the SDK and built the plugins against the headers but I get some errors when inspecting the element “undefined symbol: cuCtxDestroy_v2”, “undefined symbol: cuMemAllocPitch_v2”.

I had to install NVIDIA drivers in the containers, is that a mismatch of drivers between host and container? Or a mismatch of SDK between the latest and the gstreamer plugin?

Why do you need to build nvdec/nvenc gst-plugin? What’s SDK you downloaded ?

I want to leverage the Nvidia GPU for hardware decoding h264 video. I’ve downloaded the SDK available at NVIDIA VIDEO CODEC SDK | NVIDIA Developer

We have deepstream SDK https://developer.nvidia.com/deepstream-sdk It has decoder gst-plugin.

How is that different from nvdec? I’m not using a Jetson or Tesla GPU, just a regular 1060/1080.

 Deepstream SDK

 ......|

nvdecoder gst plugin … video codec SDK (Sample)

…\ … /

libnvcuvid.so (From nvidia driver)

Can you be more specific please? What’s the difference with nvdec? Why can’t I use it, is that deprecated?

Sure. You can use https://developer.nvidia.com/nvidia-video-codec-sdk and https://developer.nvidia.com/deepstream-sdk both.

What’s the difference with nvdec?
I am not clear your question.

There is a nvdec gst plugin in gst-plugins-bad (gst-plugins-bad/gstnvdec.h at bc128d610063a266a1b715e5a696ca252f2d5a74 · GStreamer/gst-plugins-bad · GitHub), I’m trying to understand what’s the difference with that plugin and the one you recommended from deepstream to decode video using the GPU.

Deepstream has its own nvdec gstreamer plugin. The link you provide is not owned by Nvidia.
You can wait one or two days. deepstream SDK 4.0 will be released soon. There is decoder plugin source code in the package.

Hi bricew63kk,

We have released the DeepSteam SDK 4.0 last week, please try to move this new version for more features and supports, see [url]Announcing DeepStream SDK 4.0 - Announcements - NVIDIA Developer Forums

Thanks

Hi,

Gstreamer 1.16 supports NVENC/NVDEC plugins: GStreamer 1.16 release notes

So, from NVIDIA side, is there a guide on how to build GStreamer for NVIDIA HW acceleration on x86_64 PCs? Something like the ffmpeg build instructions.

Deepstream SDK is not useful as I need hardware encoding as well.

Thanks.

Hi,

did you find such a guide to build GStreamer with NVIDIA’s HW acceleration??
I have been days searching for something like that without luck.

Regards

This gist was what I needed to install gstreamer nvdec and enc plugins: Install NVDEC and NVENC as GStreamer plugins · GitHub