Failed to create FrameConsumer

Getting this error,
xvfb-run ./GStreamerOpenGLBlend
GST_ARGUS: Creating output stream
(Argus) Error BadParameter: (propagating from src/eglstream/FrameConsumerImpl.cpp, function initialize(), line 93)
(Argus) Error BadParameter: (propagating from src/eglstream/FrameConsumerImpl.cpp, function create(), line 44)
Error generated. gstnvarguscamerasrc.cpp, threadInitialize:321 Failed to create FrameConsumer
Error generated. gstnvarguscamerasrc.cpp, threadFunction:242 (propagating)
Error generated. gstnvarguscamerasrc.cpp, waitRunning:204 Invalid thread state 3
Error generated. gstnvarguscamerasrc.cpp, execute:956 (propagating)

I am trying to setup the code ( camera capture in gstreamer + opengl render) . Please find the code attached
opengl_gstreamer.zip (5.4 KB)

With videotestsrc pipeline working fine,
videotestsrc ! video/x-raw,format=RGBA ! appsink name=appsink0

Problem is when opengl coded added with nvarguscamerasrc
nvarguscamerasrc sensor-id=1 ! video/x-raw(memory:NVMM),width=1920,height=1080,framerate=29/1 ! nvvidconv ! video/x-raw,format=RGBA ! appsink name=appsink0

First, modify the pipeline to add “” like below and export the DISPLAY=:0 before runt he APP.

nvarguscamerasrc sensor-id=1 ! "video/x-raw(memory:NVMM),width=1920,height=1080,framerate=29/1" ! nvvidconv ! "video/x-raw,format=RGBA" ! appsink name=appsink0

export DISPLAY=:0

If didn’t help confirm the gst-launch-1.0 working well.

gst-launch-1.0 nvarguscamerasrc sensor-id=1 ! "video/x-raw(memory:NVMM),width=1920,height=1080,framerate=29/1" ! nvvidconv ! "video/x-raw,format=RGBA" ! fakesink -v

I don’t have monitor. Also my requirement is to capture 2 camera feed at same time and blend it in opengl by doing image calibaration applied my opengl code and stream it.

Try below.

sudo xinit&
export DISPLAY=:0
gst-launch-1.0 .......
sudo xinit&
[7] 4574
(base) jetson@3rditech-desktop:~/jetson/blending/gstreamer_blending/build$ export DISPLAY=:0

[7]+  Stopped                 sudo xinit
gst-launch-1.0 nvarguscamerasrc sensor-id=1 ! "video/x-raw(memory:NVMM),width=1920,height=1080,framerate=29/1" ! nvvidconv ! "video/x-raw,format=RGBA" ! fakesink -v
nvbufsurftransform: Could not get EGL display connection
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)29/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)29/1
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)29/1, format=(string)RGBA
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)29/1, format=(string)RGBA
/GstPipeline:pipeline0/GstFakeSink:fakesink0.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)29/1, format=(string)RGBA
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)29/1, format=(string)RGBA
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)29/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)29/1
GST_ARGUS: Creating output stream
(Argus) Error NotSupported: Failed to initialize EGLDisplay (in src/eglutils/EGLUtils.cpp, function getDefaultDisplay(), line 77)
(Argus) Error BadParameter:  (propagating from src/eglstream/FrameConsumerImpl.cpp, function initialize(), line 93)
(Argus) Error BadParameter:  (propagating from src/eglstream/FrameConsumerImpl.cpp, function create(), line 44)
Error generated. gstnvarguscamerasrc.cpp, threadInitialize:321 Failed to create FrameConsumer
Error generated. gstnvarguscamerasrc.cpp, threadFunction:242 (propagating)
Error generated. gstnvarguscamerasrc.cpp, waitRunning:204 Invalid thread state 3
Error generated. gstnvarguscamerasrc.cpp, execute:956 (propagating)
Redistribute latency...
Got EOS from element "pipeline0".
Execution ended after 0:00:00.094881682
Setting pipeline to NULL ...


Have reference to below topic for headless setup.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.