Hi all:
I would like to use v4l2-ctl to get the raw data from ov5693 CMOS, and I’ve searched the forum for several days about how to get raw data from CSI(ov5693).
But still can not find a good solution to this issue.
I tried the suggested command:
v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --stream-mmap --stream-count=5 -d /dev/video0 --stream-to=ov5693.raw
(because the width is 1920; therefore I think “TEGRA_STRIDE_ALIGNMENT 256” should also work, though I’ve tried 64 also)
The hexdump result shown looks like:(yes, I know the first frame can be ignored)
00000000 ff 3f ff 3f ff 3f ff 3f ff 3f ff 3f ff 3f ff 3f |.?.?.?.?.?.?.?.?|
*
003f4800 61 06 82 0a 81 07 52 0b f2 08 b2 0b 52 08 02 0b |a.....R.....R...|
003f4810 b1 06 62 09 62 08 f2 09 51 07 82 0a 42 08 f2 09 |..b.b...Q...B...|
003f4820 51 07 22 0a 81 07 92 09 91 06 e2 0a 51 07 a2 0b |Q.".........Q...|
003f4830 e1 07 52 0a 51 07 52 0a 72 08 33 0c d1 07 f2 0a |..R.Q.R.r.3.....|
003f4840 d1 07 42 0b e2 08 b2 0a d1 07 d2 0a 12 08 02 0b |..B.............|
003f4850 12 08 d2 0a 51 07 72 0a e1 07 72 0a d1 07 82 0a |....Q.r...r.....|
003f4860 a1 07 42 0a 52 08 72 0a e1 07 52 0b 12 08 b2 0a |..B.R.r...R.....|
003f4870 e1 07 a2 0b a2 08 03 0c 42 08 82 0b f2 08 e2 0a |........B.......|
003f4880 72 08 42 0b 02 09 42 0b 42 08 12 0a 12 08 d2 0b |r.B...B.B.......|
003f4890 72 08 42 0b a2 08 03 0c 32 08 02 0b 72 08 a2 0b |r.B.....2...r...|
003f48a0 12 08 12 0b 72 09 d2 0b 72 08 d2 0a e1 07 a2 0a |....r...r.......|
003f48b0 82 09 c2 0b e1 07 a3 0c c2 08 63 0c 72 08 12 0b |..........c.r...|
003f48c0 71 07 33 0c d1 07 52 0b 51 07 22 0b 42 08 d3 0c |q.3...R.Q.".B...|
003f48d0 72 08 33 0d b2 08 c3 0c 02 0a e3 0d 92 0a 14 11 |r.3.............|
003f48e0 84 10 e7 1c 46 1b ba 2a b8 20 fb 2e 57 1f 2b 2e |....F..*. ..W.+.|
003f48f0 a5 17 e7 1c d3 0c f3 0e 12 08 e2 0a 91 06 32 09 |..............2.|
The RG10 alignment seems wrong to me (because the even bytes for 10bit bayer raw should not exceed 0x04, do I understand correctly?)
Is there anyone who already successfully get the correct raw bayer output?
Any suggestion is greatly appreciated.