I can't receive an image from the camera on the TX2_NX

I have a camera with an IMX565 sensor, and I’m trying to capture an image on the TX2_NX. Here’s the command I’m using:

gst-launch-1.0 nvarguscamerasrc sensor-id=0 sensor-mode=1 silent=false ! 'video/x-raw(memory:NVMM), width=4128, height=3008, format=(string)NV12, framerate=(fraction)5/1' ! nvvidconv ! 'video/x-raw,width=640, height=480' ! nvvidconv ! clockoverlay shaded-background=true font-desc='Sans 38' ! ximagesink -e

Here’s the error I’m getting:

Streamer-WARNING **: 11:30:37.135: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvarguscamerasrc.so': librestbed.so.4: cannot open shared object file: No such file or directory
X11 connection rejected because of wrong authentication.
nvbuf_utils: Could not get EGL display connection
WARNING: erroneous pipeline: no element "nvarguscamerasrc"

How can I solve this?

Have below command before gst-launch-1.0

export DISPLAY=:0

Still no go:


export DISPLAY=:0
hs@4-6-rev2-NX_TX2_BATI:~$ gst-launch-1.0 nvarguscamerasrc sensor-id=1 sensor-mode=1 silent=false ! 'video/x-raw(memory:NVMM), width=4128, height=3008, format=(string)NV12, framerate=(fraction)5/1' ! nvvidconv ! 'video/x-raw,width=640, height=480' ! nvvidconv ! clockoverlay shaded-background=true font-desc='Sans 38' ! ximagesink -e
No EGL Display
nvbufsurftransform: Could not get EGL display connection
No EGL Display
nvbufsurftransform: Could not get EGL display connection
No EGL Display
nvbufsurftransform: Could not get EGL display connection
No EGL Display
nvbufsurftransform: Could not get EGL display connection
No EGL Display
nvbufsurftransform: Could not get EGL display connection
No EGL Display
nvbufsurftransform: Could not get EGL display connection
No EGL Display
nvbufsurftransform: Could not get EGL display connection
No EGL Display
nvbufsurftransform: Could not get EGL display connection
No EGL Display
nvbufsurftransform: Could not get EGL display connection
No EGL Display
nvbufsurftransform: Could not get EGL display connection

(gst-plugin-scanner:448): GStreamer-WARNING **: 12:52:33.865: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_evisplugin.so': libekinNvUtils.so: cannot open shared object file: No such file or directory
No EGL Display
nvbufsurftransform: Could not get EGL display connection
No EGL Display
nvbufsurftransform: Could not get EGL display connection
No EGL Display
nvbufsurftransform: Could not get EGL display connection
No EGL Display
nvbufsurftransform: Could not get EGL display connection

(gst-plugin-scanner:452): GStreamer-WARNING **: 12:52:34.166: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_inferserver.so': libtritonserver.so: cannot open shared object file: No such file or directory
No EGL Display
nvbufsurftransform: Could not get EGL display connection

(gst-plugin-scanner:453): GStreamer-WARNING **: 12:52:34.192: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_inferserver.so': libtritonserver.so: cannot open shared object file: No such file or directory
No EGL Display
nvbufsurftransform: Could not get EGL display connection
No EGL Display
nvbufsurftransform: Could not get EGL display connection
No EGL Display
nvbufsurftransform: Could not get EGL display connection
No EGL Display
nvbufsurftransform: Could not get EGL display connection
No EGL Display
nvbufsurftransform: Could not get EGL display connection
No EGL Display
nvbufsurftransform: Could not get EGL display connection
No EGL Display
nvbufsurftransform: Could not get EGL display connection
No EGL Display
nvbufsurftransform: Could not get EGL display connection
No EGL Display
nvbufsurftransform: Could not get EGL display connection
No EGL Display
nvbufsurftransform: Could not get EGL display connection

(gst-plugin-scanner:492): GStreamer-WARNING **: 12:52:38.158: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_udp.so': librivermax.so.0: cannot open shared object file: No such file or directory
No EGL Display
nvbufsurftransform: Could not get EGL display connection

(gst-plugin-scanner:493): GStreamer-WARNING **: 12:52:38.228: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_udp.so': librivermax.so.0: cannot open shared object file: No such file or directory
No EGL Display
nvbufsurftransform: Could not get EGL display connection
nvbuf_utils: Could not get EGL display connection
nvbuf_utils: Could not get EGL display connection
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstXImageSink:ximagesink0: Could not initialise X output
Additional debug info:
ximagesink.c(860): gst_x_image_sink_xcontext_get (): /GstPipeline:pipeline0/GstXImageSink:ximagesink0:
Could not open display
Setting pipeline to NULL ...
Freeing pipeline ...

Do you have DISPLAY connected?
Try below.

xinit&
export DISPLAY=:0
gst-launch-1.0 ....

Yes I have display connected,

xinit&
[1] 30998
root@hsrev2-NX_TX2_BATI:/home/ekin/tx2_nx_imx568_imx565# export DISPLAY=:0

X.Org X Server 1.19.6
Release Date: 2017-12-20
X Protocol Version 11, Revision 0
Build Operating System: Linux 5.4.0-139-generic aarch64 Ubuntu
Current Operating System: Linux hsrev2-NX_TX2_BATI 4.9.253 #3 SMP PREEMPT Fri May 3 19:52:04 +05 2024 aarch64
Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 isolcpus=1-2  video=tegrafb earlycon=uart8250,mmio32,0x3100000 nvdumper_reserved=0x1772e0000 gpt rootfs.slot_suffix= tegra_fbmem=0x800000@0x96085000 lut_mem=0x2008@0x96081000 usbcore.old_scheme_first=1 tegraid=18.1.2.0.0 maxcpus=6 no_console_suspend boot.slot_suffix= boot.ratchetvalues=0.2031647.1 vpr_resize bl_prof_dataptr=0x10000@0x175840000 sdhci_tegra.en_boot_part_access=1 quiet root=/dev/nvme0n1p1 rw rootwait rootfstype=ext4
Build Date: 29 March 2023  03:17:58PM
xorg-server 2:1.19.6-1ubuntu4.15 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.34.0
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Mar  2 11:08:31 2023
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
root@hsrev2-NX_TX2_BATI:/home/ekin/tx2_nx_imx568_imx565# export DISPLAY=:0gst-launch-1.0 nvarguscamerasrc sensor-id=0 sensor-mode=0 silent=false ! 'video/x-raw(memory:NVMM), width=4128, height=3008, format=(string)NV12, framerate=(fraction)5/1' ! nvvidconv ! 'video/x-raw,width=640, height=480' ! nvvidconv ! clockoverlay shaded-background=true font-desc='Sans 38' ! ximagesink -e
bash: export: `sensor-id=0': not a valid identifier
bash: export: `sensor-mode=0': not a valid identifier
bash: export: `!': not a valid identifier
bash: export: `video/x-raw(memory:NVMM), width=4128, height=3008, format=(string)NV12, framerate=(fraction)5/1': not a valid identifier
bash: export: `!': not a valid identifier
bash: export: `!': not a valid identifier
bash: export: `video/x-raw,width=640, height=480': not a valid identifier
bash: export: `!': not a valid identifier
bash: export: `!': not a valid identifier
bash: export: `shaded-background=true': not a valid identifier
bash: export: `font-desc=Sans 38': not a valid identifier
bash: export: `!': not a valid identifier
bash: export: `-e': not a valid identifier

Seperate “export DISPLAY=:0” and gst-launch-1.0 to two command.

Yes, I write the commands separately but it still doesn’t work. I still can’t get an image.

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

What’s the log??