Jetson Orin Nano failed to light up the camera using gst-launch-1.0

Hi,
I used the “gst-launch-1.0 v4l2src device=/dev/video0 ! xvimagesink -ev” command to light up the AR0820C camera (3840x2160 30fps) On 36.3, but failed, and the error message was as follows:

Setting pipeline to PAUSED ...
ERROR: from element /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: Could not initialise Xv output
Additional debug info:
../sys/xvimage/xvimagesink.c(1806): gst_xv_image_sink_open (): /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0:
No Xv Port available
ERROR: pipeline doesn't want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL ...
Freeing pipeline ...

I tried to use the “gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! ximagesink -ev” command to light up successfully, but the resolution became 1920x1080, and the message was as follows:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)3840, height=(int)2160, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, format=(string)UYVY, interlace-mode=(string)progressive, colorimetry=(string)2:4:7:1
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = video/x-raw, width=(int)3840, height=(int)2160, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, format=(string)BGRx, colorimetry=(string)sRGB
/GstPipeline:pipeline0/GstXImageSink:ximagesink0.GstPad:sink: caps = video/x-raw, width=(int)3840, height=(int)2160, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, format=(string)BGRx, colorimetry=(string)sRGB
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps = video/x-raw, width=(int)3840, height=(int)2160, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, format=(string)UYVY, interlace-mode=(string)progressive, colorimetry=(string)2:4:7:1
Redistribute latency...
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, format=(string)UYVY, interlace-mode=(string)progressive, colorimetry=(string)2:4:7:1
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, format=(string)BGRx, colorimetry=(string)sRGB
/GstPipeline:pipeline0/GstXImageSink:ximagesink0.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, format=(string)BGRx, colorimetry=(string)sRGB
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, format=(string)UYVY, interlace-mode=(string)progressive, colorimetry=(string)2:4:7:1

Hi @65M

Could you please share the output after executing the xvinfo command in your Jetson just to make sure that your X / drivers are installed correctly?

Eduardo Salazar
Embedded SW Engineer at RidgeRun

Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com/
Website: www.ridgerun.com

Hi EduardoSalazar96
The output of xvinfo command is as follows:

nvidia@nvidia-desktop:~$ xvinfo
X-Video Extension version 2.2
screen #0
 no adaptors present

Have a try below command.

gst-launch-1.0 nvv4l2camerasrc ! 'video/x-raw(memory:NVMM),width=(int)3840, height=(int)2160 ! nvvidconv ! xvimagesink sync=0 -v

Hi,
The output is as follows.

nvidia@nvidia-desktop:~$ gst-launch-1.0 nvv4l2camerasrc ! 'video/x-raw(memory:NVMM),width=(int)3840, height=(int)2160' ! nvvidconv ! xvimagesink sync=0 -v
WARNING: erroneous pipeline: no element "nvv4l2camerasrc "

Then I installed “nvidia-l4t-gstreamer”.

sudo apt-get install nvidia-l4t-gstreamer

The result of re-execution is the same as before.

nvidia@nvidia-desktop:~$ gst-launch-1.0 nvv4l2camerasrc ! 'video/x-raw(memory:NVMM),width=(int)3840, height=(int)2160' ! nvvidconv ! xvimagesink sync=0 -v
libEGL warning: DRI2: failed to authenticate
Setting pipeline to PAUSED ...
ERROR: from element /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: Could not initialise Xv output
Additional debug info:
../sys/xvimage/xvimagesink.c(1806): gst_xv_image_sink_open (): /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0:
No Xv Port available
ERROR: pipeline doesn't want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL ...
Freeing pipeline ...

By the way, I used the following command to flash the device instead of using the SDKManager

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 \
  -c tools/kernel_flash/flash_l4t_t234_nvme.xml -p "-c bootloader/generic/cfg/flash_t234_qspi.xml" \
  --showlogs --network usb0 jetson-orin-nano-devkit internal

Looks like EGL lib failed to load. Could you try the fakesink instead of xvimagesink and install the system by sdkmanager.

libEGL warning: DRI2: failed to authenticate

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