Jetson Xavier NX and MIPI Arducam Gstream error using nvvidconv and NVMM

Running:

gst-launch-1.0 -v videotestsrc ! video/x-raw, width=1600, height=1300, framerate=30/1, format=GRAY8 ! nvvidconv ! 'video/x-raw(memory:NVMM), format=I420' ! nvvidconv ! video/x-raw, format=BGRx ! videoconvert ! video/x-raw, format=BGR ! fpsdisplaysink video-sink=fakesink text-overlay=false

gives a solid 30 fps with my NX.

I’d guess the problem is with your camera capture. Try adding option io-mode=2 to v4l2src:

gst_str = ('v4l2src io-mode=2 ! video/x-raw, width=1600, height=1300, framerate=30/1, format=GRAY8 ! nvvidconv ! video/x-raw(memory:NVMM), format=I420 ! nvvidconv ! video/x-raw, format=BGRx ! videoconvert ! video/x-raw, format=BGR ! appsink')

Also note if you are using imshow for display that it may not be fast on jetson for high resolution*fps.
An alternative could using a videoWriter with a gtsreamer pipeline to another display sink such as this one.

1 Like