I would like to know how to acquire Bayer raw data on a Xavier board

I want to acquire bayer data from jetson xavier board and IMX415 camera. I’m using Kernel version 4.9.140, and I haven’t found a way to acquire Bayer data in that version. The example program using CUDA included information about acquiring Bayer data, so when I tried to update it, it failed to boot. Afterwards, I installed the latest version of the kernel and tried to install the IMX415 camera’s device tree and the IMX 415 camera module, but it failed.
Anyway I was wondering if there is a way to get Bayer data while maintaining Kernel version 4.9.140.

Thank you.

hello wngus235,

the quickest approach is Applications Using V4L2 IOCTL Directly.
for instance, you may examine the sensor format dump by… $ v4l2-ctl -d /dev/video0 --list-formats-ext
please assign the sensor supported formats, and running with v4l2 IOCTL to fetch the raw content,
$ v4l2-ctl -d /dev/video0 --set-fmt-video=width=2592,height=1944,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=test.raw

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