Camera driver not uses libv4l2

I have attached the IMX219 sensor with the nano board , the driver loaded for the sensor is not using libv4l2. How to make the driver to use libv4l2.Screenshot from 2020-09-30 12-50-33

Why do you need it?

I like to capture the raw data directly from the memory without passing through ISP using libv4l2 api( videodev2),

Current driver can support your request. Below is the v4l2-ctl command line that implement by the v4l2 API.

v4l2-ctl --set-ctrl bypass_mode=0 --stream-mmap --stream-count=100 -d /dev/video0

Thanks for your reply,I tried with this v4l2-ctl command, it captures only a black image where as the gstreamer captures correctly.I don’t know why the v4l2-ctl is not working correctly with this driver.

What’s the pixel format for this sensor?
The v4l2-ctl command didn’t provide the preview how do you check it.

Hi, I used the following command to capture the image and examined the raw file which is a plain black image. v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080, --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=test.raw.
The pixel format for the sensor is RAW10

1 Like

Try add --stream-skip=20 to the pipeline to check.