Jetson Gstreamer NVRmMemInit failed

Hi,

(follow up on: AGX Xavier: get Gstreamer nvvidconv and others )

I got all the needed libraries needed and added the correct LD_LIBRARY_PATH etc for my custom system.

Unofrtunate, I got following error when trying to run gst-launch-1.0 -v videotestsrc pattern=smpte ! video/x-raw,width=1280,height=720 ! fbdevsink

root@mycompany:~# gst-launch-1.0 -v videotestsrc pattern=smpte ! video/x-raw,width=1280,height=720 ! fbdevsink 
NvRmMemInitNvmap failed with No such file or directory
549: Memory Manager Not supported
****NvRmMemInit failed**** error type: 196626
*** NvRmMemInit failed NvRmMemConstructor

did I miss something on adding the libraries?
All sources used are based on the original 35.1 and Jetpack 5.0.2 sources.

gst-inspect-1.0 -b gives me my blacklisted nv* plugins

[33mBlacklisted files:[[0m
  libgstnvarguscamerasrc.so
  libgstnvcompositor.so
  libgstnvivafilter.so
  libgstnvjpeg.so
  libgstnvvidconv.so
  libgstnvvideo4linux2.so
  libnvargus_socketclient.so
  libnvjpeg.so
  libnvrm_host1x.so
  libnvrm_mem.so

[[94mTotal count[[0m: [[0m10 blacklisted files[[0m

gst-inspect-1.0 libnvrm_mem.so or any other plugin shows

[[33mPlugin Details[[0m:
  [[94mName                     [[0m[[0mlibnvrm_mem.so[[0m
  [[94mDescription              [[0m[[0mPlugin for blacklisted file[[0m
  [[94mFilename                 [[0m[[0m/usr/lib/gstreamer-1.0/libnvrm_mem.so[[0m
  [[94mVersion                  [[0m[[0m0.0.0[[0m
  [[94mLicense                  [[0m[[0mBLACKLIST[[0m
  [[94mSource module            [[0m[[0mBLACKLIST[[0m
  [[94mBinary package           [[0m[[0mBLACKLIST[[0m
  [[94mOrigin URL               [[0m[[0mBLACKLIST[[0m

  [[33m0 features[[0m:

I am using gstreamer 1.20.4

loaded nvgpu.ko and nvmap.ko seems to solve this.

Getting some stranger stuff with this now:

gst-launch-1.0 -v videotestsrc pattern=smpte ! video/x-raw,width=1280,height=720 ! nvvidconv ! "video/x-raw(memory:NVMM),format=RGBA,width=1280,height=720" ! nvvidconv ! video/x-raw,width=1280,height=720 ! fbdevsink
No EGL Display 
nvbufsurftransform: Could not get EGL display connection
nvbuf_utils: ERROR getting proc addr of eglCreateImageKHR
nvbuf_utils: ERROR getting proc addr of eglDestroyImageKHR
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps = video/x-raw, format=(string)RGBA, width=(int)1280, height=(int)720, framerate=(fraction)30/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, format=(string)RGBA, width=(int)1280, height=(int)720, framerate=(fraction)30/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, framerate=(fraction)30/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, format=(string)RGBA
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, framerate=(fraction)30/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, format=(string)RGBA
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, framerate=(fraction)30/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, format=(string)RGBA
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:sink: caps = video/x-raw, format=(string)RGBA, width=(int)1280, height=(int)720, framerate=(fraction)30/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, format=(string)RGBA, width=(int)1280, height=(int)720, framerate=(fraction)30/1, multiview-mode=(string)mono, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive
ERROR: from element /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...


Hi,
We don’t have much experience about using fbdevsink plugin. This would need other users to check and give suggestion.

Not sure if your use-case is to send video content to another process or device. If yes, you may try RTSP and UDP. Please take a look at Jetson AGX Orin FAQ

Q: Is there any example of running RTSP streaming?
Q: Is there an example for running UDP streaming?

The above ‘command’ is just to verify I Have access to the NVidia hardware.
I wanted to stream the smpte pattern to the HDMI port on board of the dev-kit.
using gst-launch-1.0 -v videotestsrc pattern=smpte ! video/x-raw,width=1280,height=720 ! fbdevsink this works fine.
I suspect it has something to do with the combonation of the commands.

If you have another approach on verifying I have the right hardware access, please feel free to share :)

It is working, thanks for the help.
I use following command gst-launch-1.0 -v videotestsrc pattern=smpte ! video/x-raw,width=1280,height=720 ! nvvidconv ! "video/x-raw(memory:NVMM),format=RGBA,width=1280,height=720" ! nvvidconv ! "video/x-raw(memory:NVMM)" ! nvdrmvideosink

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