could not register 0th memory
I'm trying to modify https://gstreamer.freedesktop.org/documentation/opengl/glvideomixer.html#glvideomixer-page example to do remote rendering over UDP/RTP
As a first step I'm trying to add encoding
videotestsrc ! video/x-raw, format=YUY2 ! glupload ! glcolorconvert ! nvh264enc ! fakesink
I'm getting an error:
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got context from element 'nvh264enc0': gst.cuda.context=context, gst.cuda.context=(GstCudaContext)"(GstCudaContext)\ cudacontext1", cuda-device-id=(uint)0;
Got context from element 'glcolorconvertelement0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"(GstGLDisplayX11)\ gldisplayx11-0";
0:00:00.292164155 17913 0x7f44e40020c0 ERROR nvenc gstnvbaseenc.c:2148:_map_gl_input_buffer: could not register 0th memory
ERROR: from element /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data stream error.
Additional debug info:
../subprojects/gstreamer/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
streaming stopped, reason error (-5)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
ericsson@Blade-15:~$
Any suggestions ?