V4L2_CID_ARGUS_METADATA freeze video

Hi

We want to read metadata with (V4L2_CID_ARGUS_METADATA) after a dqbuf but the video freeze, and ioctl return no error
the code is

ret_val = v4l2_ioctl (VideoCapProcess_var.fd, VIDIOC_DQBUF, &v4l2_buf);
struct v4l2_ext_controls extCtrls;

struct v4l2_ext_control control;                                                   

v4l2_argus_ctrl_metadata metadata;                                                                                         

memset (&control, 0, sizeof (control));                                                                                    

memset (&extCtrls, 0, sizeof (extCtrls));                                                                                                                                                                                                                         

control.id = V4L2_CID_ARGUS_METADATA;                                                                                  

control.string = (char *)&metadata;                                                                                       

metadata.BufferIndex = v4l2_buf.index;     



 extCtrls.controls = &control;                                      

 extCtrls.count = 1;                                                                                                        

 // extCtrls.ctrl_class = V4L2_CTRL_CLASS_CAMERA; with  or thanks

 ret=v4l2_ioctl(VideoCapProcess_var.fd, VIDIOC_G_EXT_CTRLS, &extCtrls);                                      

dmesg return
[62054.381997] misc tegra_camera_ctrl: tegra_camera_update_isobw: Warning, Requested ISO BW 1500000 has been capped to VI’s max BW 1500000
[62080.117826] misc tegra_camera_ctrl: tegra_camera_update_isobw: Warning, Requested ISO BW 18446744073707910991 has been capped to VI’s max BW 1500000

Thanks for your help

Best Regard

Mathieu

Does any others V4L2_CID_ARGUS_* work?

Yes the others V4L2_CID_ARGUS_* work when called after set_output_plane, and before VIDIOC_REQBUFS
My design is based on /usr/src/jetson_multimedia_api/samples/unittest_samples/camera_unit_sample/ and the jetpack version is 4.5.1

Mathieu

Did you run on J4.5.1?
Could you attached the sample code include your modification here.

camera_unit_sample.cpp (40.7 KB)

Yes i run on J4.5.1

The modify have some incorrect cause freeze. Should remove latest line extCtrls.ctrl_class = V4L2_CID_ARGUS_METADATA

				int ret_io;
				extCtrls.controls = &control;
				extCtrls.count = 1;
				extCtrls.ctrl_class = V4L2_CTRL_CLASS_CAMERA;
				metadata.BufferIndex = v4l2_buf.index;
				extCtrls.ctrl_class =  V4L2_CID_ARGUS_METADATA;

Hi

I remove extCtrls.ctrl_class = V4L2_CID_ARGUS_METADATA, but I have the same problem after 10 buffer are DQ :

Error while DQing buffer from capture plane
Error while DQing buffer from capture plane
Camera is in error

Mathieu

@mathieu.chabert
Replace the /usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so by attached file to verify the problem.

Thanks

Hi

I replace libv4l2_nvargus.so and that solves the problem (no error for DQBUF).
The only problem is the value of brightness :
Sometimes right , often zero with no error

Thanks for your answer and your help

Mathieu

Have verify this lib again.

Thanks

libv4l2_nvargus.so.1.txt (349.4 KB)

It’s fine, all values are right

Thanks

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