Hi,
You can use appsrc plugin and wrap the NvBuffer into NVMM buffer in the plugin. We have deprecated omx plugins and please use nvv4l2h265enc.
If you use Jetpack 4 release, please refer to this sample for using appsrc:
Opencv gpu mat into GStreamer without downloading to cpu - #15 by DaneLLL