Custom gStreamer plugin with EGLStream as input

Hi All,

I need a module which works on video frames present in the device memory. It would do some processing with CUDA, then transfer the frames e.g. to an encoder plugin.

I know there is the nveglstreamsrc plugin which accepts an EGLStream as input, I need the same, my plugin would be the consumer of an EGLStream. Is this possible? How do I have to define the sink pad of this custom module if I want to do that, video/x-raw(memory:NVMM)?

Thank you,

After further thinking I realised that nveglstreamsrc only has a source pad and its ‘eglstream’ property has to point to an existing EGLStream, so what I probably need is a pipeline like nveglstreamsrc ! video-x-raw(memory:NVMM) ! gst-custom-plugin ! …

Please refer to