Internal data stream error when using GstV4l2Src

L4T version is:# R35 (release), REVISION: 2.1, GCID: 32413640, BOARD: t186ref, EABI: aarch64, DATE: Tue Jan 24 23:38:33 UTC 2023

It report a fail message when run shell script:gst-launch-1.0 -v -e nvcompositor name=m start-time-selection=1 sink_0::xpos=0 sink_0::ypos=0 sink_0::width=960 sink_0::height=540 sink_1::xpos=960 sink_1::ypos=0 sink_1::width=960 sink_1::height=540 sink_2::xpos=0 sink_2::ypos=540 sink_2::width=960 sink_2::height=540 sink_3::xpos=960 sink_3::ypos=540 sink_3::width=960 sink_3::height=540 ! “video/x-raw(memory:NVMM),width=1920,height=1080” ! nv3dsink v4l2src device=“/dev/video0” ! “video/x-raw” ! nvvidconv ! “video/x-raw(memory:NVMM)” ! m.sink_0

The failed message is: Egst-launch-1.0 -v -e nvcompositor name=m start-time-selection=1 sink_0::xpos=0 sink_0::ypos=0 sink_0::width=960 sink_0::height=540 sink_1::xpos=960 sink_1::ypos=0 sink_1::width=960 sink_1::height=540 sink_2::xpos=0 sink_2::ypos=540 sink_2::width=960 sink_2::height=540 sink_3::xpos=960 sink_3::ypos=540 sink_3::width=960 sink_3::height=540 ! “video/x-raw(memory:NVMM),width=1920,height=1080” ! nv3dsink v4l2src device=“/dev/video0” ! “video/x-raw” ! nvvidconv ! “video/x-raw(memory:NVMM)” ! m.sink_0

run v4l2-ctl -d /dev/video0 --list-formats-ext:
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture

[0]: 'RG12' (12-bit Bayer RGRG/GBGB)
	Size: Discrete 2592x1944
		Interval: Discrete 0.033s (30.000 fps)

please help me to slove it, thanks

the failed message is :
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3072): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
EOS on shutdown enabled – waiting for EOS after Error
Waiting for EOS…
New clock: GstSystemClock

Let me add the background information:
my carmera is without ISP. but I don’t konw this. Therefore the image type I configured for the first time was yuv format, executing the gst-lanuch command and displaying a green screen. So I later changed the image type to RG12. But it report a failed message, as shown above.

Hi,
The v4l2src plugin does not support Bayer format such as RG10, RG12. Would suggest check with the camera vendor to see if they have sensor driver and device tree for using ISP engine in Orin.

Not sure if you get the camera from our camera partner. May share brand and model ID of the camera for reference.

hi DaneLLL, my camera is senyun ox5bir without isp. I can now use the i2ctransfer tools read/write serDes and sensor register. I think the current link is open. However, when I run webcam with gst-lanch command, the green screen is displayed, because the image output format I configured is yuv, so I think this is the reason for the green screen, because the sensor outputs the raw data. That’s why I want it to output image data in RG12 format. If orin does not support RG12 image data, is there any way I can get a grayscale image when I configure the data format to yuv?

Hi,
We would suggest use cameras from our partner. Our partners are listed in

Jetson Ecosystem | NVIDIA Developer

If you have to use the camera, a possible solution is to capture frame data into CUDA buffer, and implement debayering code to debayer frame data from Bayer to YUV. There is no existing implementation, and you would need to implement the whole software stack.

senyun is Sensing。orix support my camera to run.


But now there is another situation that when I set the format to yuv, running the gst-lanuch command will get a green screen. Now I want to get the grayscale image by setting the value of UV and Y, is there anything you can help me?

the log of dmesg is as follows:
dmesg555.txt (119.4 KB)

Hi,
Please consult with the vendor and see if they can support to enable using hardware ISP engine for the camera.

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