OV5693 through V4L2

Hi all.
I tried to take picture through v4l2-ctl using below command
v4l2-ctl -d /dev/video0 --set-fmt-video=pixelformat=RG10 --stream-count=1 --stream-to=pic.raw
but a get too dark image.

I use raw2rgb to convert data. May be conversion works not very well with RG10, but i have more problem with other pixel formats:
if I use pixelformat=RGGB, output file has only zero values.
if I try to set pixelformat=RG12, result is:

VIDIOC_S_FMT: failed: Invalid argument

Can someone tell me, what is wrong?

P.S. I use L4T 24.2

Hi. This might help you:

https://devtalk.nvidia.com/default/topic/968767/jetson-tx1/viewing-raw-bayer-data/post/4995325/#4995325

Hi David,
I want to use v4l without gstreamer. And I have more problem with RGGB and RG12 pixel formats.

hi david
i want to use that…

You should be able to use v4l2 without gstreamer to capture frames. Other applications like Yavta do this. Assuming you installed Jetpack in a path called $DEVDIR, I think you can use some of the samples in $DEVDIR/64_TX1/tegra_multimedia_api/samples as reference.

If you are thinking about encoding/displaying the frame later I would recommend you to use gstreamer.