NVEGLStreamSrc does not receive EGLDisplay and EGLStreamKHR parameters

Following the simpleEGLStreams_producer example I’ve been able to create an EGLStream and Producer Surface. However I’m now attempting to couple the stream to a gstreamer nveglstreamsrc element. But the element seems to ignore the display and stream values. With the following code I pass the display and stream to the element.

g_object_set(streamSrc,
    "do-timestamp", true,
    "display",   (size_t) display,
    "eglstream", (size_t) stream,
    NULL);

However the display and eglstream parameters do not show up in gstreamer debugging images and the element fails with:

NvEglStreamSrc: Can not start because egl_display and stream are not set

Please refer to https://github.com/DaneLLL/gstreamer_eglstreamsrc

In the gstreamer_eglstreamsrc example, changing the launch_stream to

<< “nveglstreamsrc name=egl_src ! "
<< “video/x-raw(memory:NVMM), format=I420, width=”<< w <<”, height="<< h <<", framerate=30/1 ! "
<< “omxh264enc ! mp4mux ! filesink location=test.mp4”;

results in an unplayable mp4 file. Is there a reason for this?

Hi lancec4c2p, you can try qtmux.