Gst-launch-1.0 reports errors during execution

My sensor model is IMX735 with RAW12 output format. The command argus_camera -d 0 works fine, but when using gst-launch-1.0 v4l2src device=/dev/video0 ! xvimagesink, I get the following error. What could be the reason?

设置暂停管道 …
管道正在使用且不需要 PREROLL …
管道被 PREROLLED …
设置播放管道 …
错误:来自组件 /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:Internal data stream error.
额外的调试信息:
../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.000148250
设置 NULL 管道 …
释放管道资源 …

Hello @pub_key,

Can you try with the following pipeline instead?

gst-launch-1.0 nvarguscamerasrc ! nvvidconv ! xvimagesink

Please let us know how it goes.

best regards,
Andrew
Embedded Software Engineer at ProventusNova
https://proventusnova.com/embedded-software-engineering-support/

I don’t think v4l2src support bayer raw format.
You can confirm by below command instead of v4l2src.

v4l2-ctl --stream-mmap -c bypass_mode

Hi

This command is work

Hi @pub_key,

Thanks for getting back.

Yes, @ShaneCCC is correct.
The reason why the command that we shared works is because you need nvarguscamersrc element to be able to process bayer buffers using the NVIDIA Jetson’s ISP.

Now, do you have any other questions? Is there anything else we can help you with ?

best regards,
Andrew
Embedded Software Engineer at ProventusNova
https://proventusnova.com/embedded-software-engineering-support/

v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture

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

Thank you for the explanation. If I need to write custom code to ‌capture camera sensor data for real-time display and storage‌, while ‌adjusting exposure and gain through the Argus API‌, could you please advise where to find relevant ‌APIs or demo examples‌?

Get the sample code by below command.

sudo apt list -a nvidia-l4t-jetson-multimedia-api
sudo apt install nvidia-l4t-jetson-multimedia-api=36.4.xxxxx