NVMEDIA gstreamer plugin issue

I’m trying to use gstreamer-rtsp-server in conjunction with nvmedia and EGLStreams in one application on Tegra.

GStreamer 1.8.2.
Gst pipeline for each factory looks like:

"nvmediaeglstreamsrc "
      "name=\"nvm_rtsp_server_egl_src_%d\" "
      "server-mode=false surface-type=0 "
      "width=%d height=%d "
      "socket-path=\"%s\" "
    "! nvmediah264videnc low-latency=%s framerate=%d bitrate=%d ! h264parse "
    "! rtph264pay name=pay0 pt=96"

Application has more than one GST-Pipelines and related EGLProducers. I use EGL_KHR_display_reference extension to avoid breaking the pipeline when one of the clients goes off. But it seems nvmediaeglstreamsrc doesn’t.

I’m connecting to server in a way like this:

gst-launch-1.0 rtspsrc location=rtsp:// ! testsink

Thus when one of of the simultaneously launched RTSP-clients shuts down, the whole RTSP-server breaks down with infinite errors like this:

0:00:12.576915953  6690   0x7f700268a0 ERROR          eglstream_src gstnvmeglstreamsrc.c:450:gst_nvm_egl_stream_src_create: Nvmedia video consumer, eglQueryStreamKHR EGL_STREAM_STATE_KHR failed

Does anyone have any idea how to fix this?

Dear geyzerov,
Gstreamer is not supported on DRIVE platform. If you are using any other platform, please post issue in relavant forum

But I’m following https://docs.nvidia.com/drive/nvvib_docs/index.html#page/NVIDIA%2520DRIVE%2520Linux%2520SDK%2520Development%2520Guide%2Fgstreamer.html%23


Development Guide Release

And on Drive PX2 Gstreamer’s gstnvmeglstreamsrc works exactly as it should.