I am new to everything so I do not know some if this involves some core level modifications so please clarify everything in details. Thanks in advance!
I encountered issues with my Raspberry Pi High Quality Camera on a Jetson Orin Nano after upgrading from JetPack 5.1.1 to JetPack 6.0. It worked previously but doesn’t anymore, suggesting a driver issue, as the camera still functions on a Raspberry Pi. JetPack 6.0 is also showing startup errors. I’ve tried various troubleshooting steps without success. Could you guide me through some steps to resolve this? I’ll promptly test them and provide updates.
So far I have tried this:
Command1:
gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw, format=(string)UYVY, width=(int)640, height=(int)480, framerate=(fraction)30/1' ! xvimagesink -ev
Output1:
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Execution ended after 0:00:00.000233152
Setting pipeline to NULL ...
Freeing pipeline ...
Command2:
v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --stream-mmap --set-ctrl=sensor_mode=0 --stream-count=100 -d /dev/video0
Output2:
VIDIOC_S_FMT: failed: Remote I/O error
VIDIOC_STREAMON returned -1 (Remote I/O error)
Command3:
ros2 launch ros_deep_learning video_viewer.ros2.launch input:=csi://0 output:=display://0
Output3:
[INFO] [launch]: All log files can be found below /home/ubuntu/.ros/log/2024-03-19-17-15-20-836357-ubuntu-21984
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [video_source-1]: process started with pid [21987]
[INFO] [video_output-2]: process started with pid [21989]
[video_output-2] [INFO] [1710882921.611714624] [video_output]: opening video output: display://0
[video_source-1] [INFO] [1710882921.612129312] [video_source]: opening video source: csi://0
[video_output-2] [OpenGL] glDisplay -- X screen 0 resolution: 1920x1080
[video_output-2] [OpenGL] glDisplay -- X window resolution: 1920x1080
[video_source-1] [gstreamer] initialized gstreamer, version 1.20.3.0
[video_source-1] [gstreamer] gstCamera -- attempting to create device csi://0
[video_source-1] [gstreamer] gstCamera pipeline string:
[video_source-1] [gstreamer] nvarguscamerasrc sensor-id=0 ! video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, framerate=30/1, format=(string)NV12 ! nvvidconv flip-method=2 ! video/x-raw ! appsink name=mysink
[video_output-2] [OpenGL] glDisplay -- display device initialized (1920x1080)
[video_output-2] [video] created glDisplay from display://0
[video_output-2] ------------------------------------------------
[video_output-2] glDisplay video options:
[video_output-2] ------------------------------------------------
[video_output-2] -- URI: display://0
[video_output-2] - protocol: display
[video_output-2] - location: 0
[video_output-2] -- deviceType: display
[video_output-2] -- ioType: output
[video_output-2] -- width: 1920
[video_output-2] -- height: 1080
[video_output-2] -- frameRate: 0
[video_output-2] -- numBuffers: 4
[video_output-2] -- zeroCopy: true
[video_output-2] ------------------------------------------------
[video_output-2] [INFO] [1710882921.743630912] [video_output]: video_output node initialized, waiting for messages
[video_source-1] [gstreamer] gstCamera successfully created device csi://0
[video_source-1] [video] created gstCamera from csi://0
[video_source-1] ------------------------------------------------
[video_source-1] gstCamera video options:
[video_source-1] ------------------------------------------------
[video_source-1] -- URI: csi://0
[video_source-1] - protocol: csi
[video_source-1] - location: 0
[video_source-1] -- deviceType: csi
[video_source-1] -- ioType: input
[video_source-1] -- width: 1280
[video_source-1] -- height: 720
[video_source-1] -- frameRate: 30
[video_source-1] -- numBuffers: 4
[video_source-1] -- zeroCopy: true
[video_source-1] -- flipMethod: rotate-180
[video_source-1] ------------------------------------------------
[video_source-1] [gstreamer] opening gstCamera for streaming, transitioning pipeline to GST_STATE_PLAYING
[video_source-1] [gstreamer] gstreamer changed state from NULL to READY ==> mysink
[video_source-1] [gstreamer] gstreamer changed state from NULL to READY ==> capsfilter1
[video_source-1] [gstreamer] gstreamer changed state from NULL to READY ==> nvvconv0
[video_source-1] [gstreamer] gstreamer changed state from NULL to READY ==> capsfilter0
[video_source-1] [gstreamer] gstreamer changed state from NULL to READY ==> nvarguscamerasrc0
[video_source-1] [gstreamer] gstreamer changed state from NULL to READY ==> pipeline0
[video_source-1] [gstreamer] gstreamer changed state from READY to PAUSED ==> capsfilter1
[video_source-1] [gstreamer] gstreamer changed state from READY to PAUSED ==> nvvconv0
[video_source-1] [gstreamer] gstreamer changed state from READY to PAUSED ==> capsfilter0
[video_source-1] [gstreamer] gstreamer stream status CREATE ==> src
[video_source-1] [gstreamer] gstreamer changed state from READY to PAUSED ==> nvarguscamerasrc0
[video_source-1] [gstreamer] gstreamer changed state from READY to PAUSED ==> pipeline0
[video_source-1] [gstreamer] gstreamer message new-clock ==> pipeline0
[video_source-1] [gstreamer] gstreamer stream status ENTER ==> src
[video_source-1] [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> capsfilter1
[video_source-1] [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> nvvconv0
[video_source-1] [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> capsfilter0
[video_source-1] [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> nvarguscamerasrc0
[video_source-1] GST_ARGUS: Creating output stream
[video_source-1] [gstreamer] gstreamer message stream-start ==> pipeline0
[video_source-1] CONSUMER: Waiting until producer is connected...
[video_source-1] GST_ARGUS: Available Sensor modes :
[video_source-1] GST_ARGUS: 3840 x 2160 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 22.250000; Exposure Range min 13000, max 683709000;
[video_source-1]
[video_source-1] GST_ARGUS: 1920 x 1080 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 22.250000; Exposure Range min 13000, max 683709000;
[video_source-1]
[video_source-1] GST_ARGUS: Running with following settings:
[video_source-1] Camera index = 0
[video_source-1] Camera mode = 1
[video_source-1] Output Stream W = 1920 H = 1080
[video_source-1] seconds to Run = 0
[video_source-1] Frame Rate = 59.999999
[video_source-1] GST_ARGUS: Setup Complete, Starting captures for 0 seconds
[video_source-1] GST_ARGUS: Starting repeat capture requests.
[video_source-1] CONSUMER: Producer has connected; continuing.
[video_source-1] [gstreamer] gstCamera::Capture() -- a timeout occurred waiting for the next image buffer
[video_source-1] [ERROR] [1710882922.993521408] [video_source]: failed to capture next frame
[video_source-1] [gstreamer] gstCamera::Capture() -- a timeout occurred waiting for the next image buffer
[video_source-1] [ERROR] [1710882923.994671104] [video_source]: failed to capture next frame
[video_source-1] nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
[video_source-1] Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:694 NvBufSurfaceFromFd Failed.
[video_source-1] Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:247 (propagating)
[video_source-1] [gstreamer] gstCamera -- end of stream (EOS)
[video_source-1] [gstreamer] gstCamera::Capture() -- a timeout occurred waiting for the next image buffer
[video_source-1] [ERROR] [1710882924.995339360] [video_source]: failed to capture next frame
^C[WARNING] [launch]: user interrupted with ctrl-c (SIGINT)
[video_output-2] [INFO] [1710882925.787200448] [rclcpp]: signal_handler(signum=2)
[video_source-1] [INFO] [1710882925.787366848] [rclcpp]: signal_handler(signum=2)
[INFO] [video_output-2]: process has finished cleanly [pid 21989]
[video_source-1] [gstreamer] gstCamera::Capture() -- a timeout occurred waiting for the next image buffer
Command4:
v4l2-compliance -d /dev/video0
Output4:
v4l2-compliance 1.22.1, 64 bits, 64-bit time_t
Compliance test for tegra-video device /dev/video0:
Driver Info:
Driver name : tegra-video
Card type : vi-output, imx477 9-001a
Bus info : platform:tegra-capture-vi:2
Driver version : 5.15.122
Capabilities : 0x84200001
Video Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : tegra-camrtc-ca
Model : NVIDIA Tegra Video Input Device
Serial :
Bus info :
Media version : 5.15.122
Hardware revision: 0x00000003 (3)
Driver version : 5.15.122
Interface Info:
ID : 0x0300000b
Type : V4L Video
Entity Info:
ID : 0x00000009 (9)
Name : vi-output, imx477 9-001a
Function : V4L2 I/O
Pad 0x0100000a : 0: Sink
Link 0x0200000f: from remote pad 0x1000006 of entity '13e00000.host1x:nvcsi@15a00000-' (Unknown sub-device (0002000a)): Data, Enabled
Required ioctls:
test MC information (see 'Media Driver Info' above): OK
test VIDIOC_QUERYCAP: OK
fail: v4l2-compliance.cpp(783): doioctl(node, ioc, nullptr) != ENOTTY
test invalid ioctls: FAIL
Allow for multiple opens:
test second /dev/video0 open: OK
test VIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OK
Debug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
test VIDIOC_LOG_STATUS: OK
Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported)
test VIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK
test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 1 Audio Inputs: 0 Tuners: 0
Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
test VIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0
Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported)
test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported)
test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported)
test VIDIOC_G/S_EDID: OK (Not Supported)
Control ioctls (Input 0):
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
test VIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 1 Private Controls: 13
Standard Compound Controls: 0 Private Compound Controls: 7
Format ioctls (Input 0):
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK
fail: v4l2-test-formats.cpp(1344): ret && node->has_frmintervals
test VIDIOC_G/S_PARM: FAIL
test VIDIOC_G_FBUF: OK (Not Supported)
test VIDIOC_G_FMT: OK
test VIDIOC_TRY_FMT: OK
test VIDIOC_S_FMT: OK
test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)
Codec ioctls (Input 0):
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
test VIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)
Buffer ioctls (Input 0):
fail: v4l2-test-buffers.cpp(751): q.create_bufs(node, 1, &fmt) != EINVAL
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
test VIDIOC_EXPBUF: OK
test Requests: OK (Not Supported)
Total for tegra-video device /dev/video0: 46, Succeeded: 43, Failed: 3, Warnings: 0