This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
hi
we use sdk ti-processor-sdk-linux-am62axx-evm-08.06.00.45 to debug camera KKC.A002.32(no need to config ,output yuv 422 8bit ,built-in ISP)
but the effect is too dark,we put the camera module connect to PC,it's ok,below is on PC's capture ,camera vendor said this is normal,at least 800lux
operations:
use below code ,and mask i2c operation(camera KKC.A002.32 no need to config)
board-support/linux-kernel/drivers/media/i2c/imx219.c
(need to use media-ctl,and need to modify imx219's code)
test environmental office with white lights
YUV:
media-ctrl -p is v4l2 yuv format
media-ctl -p Media controller API version 5.10.168 Media device information ------------------------ driver j721e-csi2rx model TI-CSI2RX serial bus info platform:30102000.ticsi2rx hw revision 0x1 driver version 5.10.168 Device topology - entity 1: 30102000.ticsi2rx (7 pads, 7 links, 1 route) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev0 routes: 0/0 -> 1/0 [ACTIVE] pad0: Sink [stream:0 fmt:YUYV8_1X16/1920x1080 field:none] <- "cdns_csi2rx.30101000.csi-bridge":1 [ENABLED,IMMUTABLE] pad1: Source [stream:0 fmt:YUYV8_1X16/1920x1080 field:none] -> "30102000.ticsi2rx context 0":0 [ENABLED,IMMUTABLE] pad2: Source -> "30102000.ticsi2rx context 1":0 [ENABLED,IMMUTABLE] pad3: Source -> "30102000.ticsi2rx context 2":0 [ENABLED,IMMUTABLE] pad4: Source -> "30102000.ticsi2rx context 3":0 [ENABLED,IMMUTABLE] pad5: Source -> "30102000.ticsi2rx context 4":0 [ENABLED,IMMUTABLE] pad6: Source -> "30102000.ticsi2rx context 5":0 [ENABLED,IMMUTABLE] - entity 9: cdns_csi2rx.30101000.csi-bridge (5 pads, 2 links, 0 route) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev1 pad0: Sink [stream:0 fmt:UYVY8_2X8/1920x1080 field:none] <- "imx219 2-0010":0 [ENABLED,IMMUTABLE] pad1: Source [stream:0 fmt:UYVY8_2X8/1920x1080 field:none] -> "30102000.ticsi2rx":0 [ENABLED,IMMUTABLE] pad2: Source [stream:0 fmt:UYVY8_2X8/1920x1080 field:none] pad3: Source [stream:0 fmt:UYVY8_2X8/1920x1080 field:none] pad4: Source [stream:0 fmt:UYVY8_2X8/1920x1080 field:none] - entity 15: imx219 2-0010 (1 pad, 1 link, 0 route) type V4L2 subdev subtype Sensor flags 0 device node name /dev/v4l-subdev2 pad0: Source [stream:0 fmt:UYVY8_2X8/1920x1080 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range crop.bounds:(8,8)/3280x2464 crop:(688,700)/1920x1080] -> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE] - entity 21: 30102000.ticsi2rx context 0 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video2 pad0: Sink <- "30102000.ticsi2rx":1 [ENABLED,IMMUTABLE] - entity 27: 30102000.ticsi2rx context 1 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video3 pad0: Sink <- "30102000.ticsi2rx":2 [ENABLED,IMMUTABLE] - entity 33: 30102000.ticsi2rx context 2 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video4 pad0: Sink <- "30102000.ticsi2rx":3 [ENABLED,IMMUTABLE] - entity 39: 30102000.ticsi2rx context 3 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video5 pad0: Sink <- "30102000.ticsi2rx":4 [ENABLED,IMMUTABLE] - entity 45: 30102000.ticsi2rx context 4 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video6 pad0: Sink <- "30102000.ticsi2rx":5 [ENABLED,IMMUTABLE] - entity 51: 30102000.ticsi2rx context 5 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video7 pad0: Sink <- "30102000.ticsi2rx":6 [ENABLED,IMMUTABLE]
use below comamd to capture
media-ctl -V '"imx219 2-0010":0 [fmt:UYVY8_2X8/1920x1080 field: none]' media-ctl -V '"30102000.ticsi2rx":0 [fmt:UYVY8_2X8/1920x1080 field: none]' media-ctl -V '"cdns_csi2rx.30101000.csi-bridge":0 [fmt:UYVY8_2X8/1920x1080 field: none]'
yavta -s 1920x1080 -f UYVY /dev/video2 -c5 -Fframe-#.bin
the effect is too dark
RAW
media-ctrl -p is raw
when we use v4l2 raw format(default ,no use media-ctl,and no need to modify imx219's code unuseless i2c's communication)
root@am62axx-evm:/opt/edgeai-gst-apps# media-ctl -p Media controller API version 5.10.168 Media device information ------------------------ driver j721e-csi2rx model TI-CSI2RX serial bus info platform:30102000.ticsi2rx hw revision 0x1 driver version 5.10.168 Device topology - entity 1: 30102000.ticsi2rx (7 pads, 7 links, 1 route) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev0 routes: 0/0 -> 1/0 [ACTIVE] pad0: Sink [stream:0 fmt:YUYV8_1X16/1920x1080 field:none] <- "cdns_csi2rx.30101000.csi-bridge":1 [ENABLED,IMMUTABLE] pad1: Source [stream:0 fmt:YUYV8_1X16/1920x1080 field:none] -> "30102000.ticsi2rx context 0":0 [ENABLED,IMMUTABLE] pad2: Source -> "30102000.ticsi2rx context 1":0 [ENABLED,IMMUTABLE] pad3: Source -> "30102000.ticsi2rx context 2":0 [ENABLED,IMMUTABLE] pad4: Source -> "30102000.ticsi2rx context 3":0 [ENABLED,IMMUTABLE] pad5: Source -> "30102000.ticsi2rx context 4":0 [ENABLED,IMMUTABLE] pad6: Source -> "30102000.ticsi2rx context 5":0 [ENABLED,IMMUTABLE] - entity 9: cdns_csi2rx.30101000.csi-bridge (5 pads, 2 links, 0 route) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev1 pad0: Sink [stream:0 fmt:UYVY8_2X8/1920x1080 field:none] <- "imx219 2-0010":0 [ENABLED,IMMUTABLE] pad1: Source [stream:0 fmt:UYVY8_2X8/1920x1080 field:none] -> "30102000.ticsi2rx":0 [ENABLED,IMMUTABLE] pad2: Source [stream:0 fmt:UYVY8_2X8/1920x1080 field:none] pad3: Source [stream:0 fmt:UYVY8_2X8/1920x1080 field:none] pad4: Source [stream:0 fmt:UYVY8_2X8/1920x1080 field:none] - entity 15: imx219 2-0010 (1 pad, 1 link, 0 route) type V4L2 subdev subtype Sensor flags 0 device node name /dev/v4l-subdev2 pad0: Source [stream:0 fmt:UYVY8_2X8/1920x1080 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range crop.bounds:(8,8)/3280x2464 crop:(688,700)/1920x1080] -> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE] - entity 21: 30102000.ticsi2rx context 0 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video2 pad0: Sink <- "30102000.ticsi2rx":1 [ENABLED,IMMUTABLE] - entity 27: 30102000.ticsi2rx context 1 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video3 pad0: Sink <- "30102000.ticsi2rx":2 [ENABLED,IMMUTABLE] - entity 33: 30102000.ticsi2rx context 2 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video4 pad0: Sink <- "30102000.ticsi2rx":3 [ENABLED,IMMUTABLE] - entity 39: 30102000.ticsi2rx context 3 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video5 pad0: Sink <- "30102000.ticsi2rx":4 [ENABLED,IMMUTABLE] - entity 45: 30102000.ticsi2rx context 4 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video6 pad0: Sink <- "30102000.ticsi2rx":5 [ENABLED,IMMUTABLE] - entity 51: 30102000.ticsi2rx context 5 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video7 pad0: Sink <- "30102000.ticsi2rx":6 [ENABLED,IMMUTABLE]
the effect is too dark
From the phenomenon of taking photos,the first few pictures are all black,I take 5 picture,show below,there is a delay phenomenon
capture yuv photo
by the way,below ,what's the meaning 8 of UYVY8,2X8 of _2X8
MEDIA_BUS_FMT_UYVY8_2X8
Hello Daiwei,
what's the meaning 8 of UYVY8,2X8 of _2X8
Please refer to https://www.kernel.org/doc/html/v4.15/media/uapi/v4l/subdev-formats.html#packed-yuv-formats.
we put the camera module connect to PC,it's ok
Was it a USB camera? If that's the case, you can use the USB camera on AM62A as well.
use below code ,and mask i2c operation(camera KKC.A002.32 no need to config)
Why did you use IMX219 driver for your KKC.A002.32? Do you have the driver for this camera?
Regards,
Jianzhong
not usb camera, soc+fpc+camra(isp+sensor),no have driver for this camera,so I use imx219.c
How did you connect your camera to the PC?
I don't think you can use imx219.c for this camera. You'll need to have a driver for this specific camera.
I have already use imx219.c to get the picture,the problem should be camera's timiming
yavta -s 1920x1080 -f UYVY /dev/video2 -c125 -Fframe-#.bin,maybe this command can tell soc the picture format by paramter -f UYVY
when I use no set format,like below, I see yavta.c default format is YUYV
yavta -s 1920x1080 /dev/video2 -c125 -Fframe-#.bin ,after I get the picture,I use 7yuv ,must setting YUYV,the picture is normal
and can you tell me can I use yavta to check fps of capture?
yavta -c -Fcapture -s 1920x1080 -f UYVY /dev/video2
root@am62axx-evm:/opt/edgeai-gst-apps/jpeg# yavta -c -Fcapture -s 1920x1080 -f UYVY /dev/video2 Device /dev/video2 opened. Device `j721e-csi2rx' on `platform:30102000.ticsi2rx' is a video output (without mplanes) device. Video format set: UYVY (59565955) 1920x1080 (stride 3840) field none buffer size 4147200 Video format: UYVY (59565955) 1920x1080 (stride 3840) field none buffer size 4147200 8 buffers requested. length: 4147200 offset: 0 timestamp type/source: mono/EoF Buffer 0/0 mapped at address 0xffff932be000. length: 4147200 offset: 4149248 timestamp type/source: mono/EoF Buffer 1/0 mapped at address 0xffff92ec9000. length: 4147200 offset: 8298496 timestamp type/source: mono/EoF Buffer 2/0 mapped at address 0xffff92ad4000. length: 4147200 offset: 12447744 timestamp type/source: mono/EoF Buffer 3/0 mapped at address 0xffff926df000. length: 4147200 offset: 16596992 timestamp type/source: mono/EoF Buffer 4/0 mapped at address 0xffff922ea000. length: 4147200 offset: 20746240 timestamp type/source: mono/EoF Buffer 5/0 mapped at address 0xffff91ef5000. length: 4147200 offset: 24895488 timestamp type/source: mono/EoF Buffer 6/0 mapped at address 0xffff91b00000. length: 4147200 offset: 29044736 timestamp type/source: mono/EoF Buffer 7/0 mapped at address 0xffff9170b000. 0 (0) [-] any 0 4147200 B 1064.124456 1064.124556 -12658.228 fps ts mono/EoF 1 (1) [-] any 1 4147200 B 1064.185172 1064.185232 16.470 fps ts mono/EoF 2 (2) [-] any 2 4147200 B 1064.218551 1064.235193 29.959 fps ts mono/EoF 3 (3) [-] any 3 4147200 B 1064.251886 1064.284884 29.999 fps ts mono/EoF 4 (4) [-] any 4 4147200 B 1064.285236 1064.334989 29.985 fps ts mono/EoF 5 (5) [-] any 5 4147200 B 1064.318573 1064.384929 29.997 fps ts mono/EoF 6 (6) [-] any 6 4147200 B 1064.351909 1064.435272 29.998 fps ts mono/EoF 7 (7) [-] any 7 4147200 B 1064.385237 1064.485085 30.005 fps ts mono/EoF 8 (0) [-] any 8 4147200 B 1064.418598 1064.535528 29.975 fps ts mono/EoF 9 (1) [-] any 9 4147200 B 1064.451932 1064.585569 29.999 fps ts mono/EoF 10 (2) [-] any 10 4147200 B 1064.485282 1064.635699 29.985 fps ts mono/EoF 11 (3) [-] any 11 4147200 B 1064.518620 1064.685650 29.996 fps ts mono/EoF 12 (4) [-] any 12 4147200 B 1064.551955 1064.735762 29.999 fps ts mono/EoF 13 (5) [-] any 13 4147200 B 1064.585287 1064.819246 30.001 fps ts mono/EoF 14 (6) [-] any 14 4147200 B 1064.618644 1064.871599 29.979 fps ts mono/EoF 15 (7) [-] any 15 4147200 B 1064.651978 1064.952594 29.999 fps ts mono/EoF 16 (0) [-] any 16 4147200 B 1064.685309 1065.005117 30.002 fps ts mono/EoF 17 (1) [-] any 17 4147200 B 1064.718642 1065.057957 30.000 fps ts mono/EoF 18 (2) [-] any 18 4147200 B 1064.752019 1065.107811 29.961 fps ts mono/EoF 19 (3) [-] any 19 4147200 B 1064.785332 1065.160075 30.018 fps ts mono/EoF 20 (4) [-] any 20 4147200 B 1064.852043 1065.210333 14.990 fps ts mono/EoF 21 (5) [-] any 21 4147200 B 1064.918689 1065.264408 15.005 fps ts mono/EoF 22 (6) [-] any 22 4147200 B 1064.985379 1065.314463 14.995 fps ts mono/EoF 23 (7) [-] any 23 4147200 B 1065.052056 1065.366677 14.998 fps ts mono/EoF 24 (0) [-] any 24 4147200 B 1065.118710 1065.416651 15.003 fps ts mono/EoF 25 (1) [-] any 25 4147200 B 1065.152047 1065.468903 29.997 fps ts mono/EoF 26 (2) [-] any 26 4147200 B 1065.218710 1065.552606 15.001 fps ts mono/EoF 27 (3) [-] any 27 4147200 B 1065.252073 1065.604990 29.973 fps ts mono/EoF 28 (4) [-] any 28 4147200 B 1065.318713 1065.685933 15.006 fps ts mono/EoF 29 (5) [-] any 29 4147200 B 1065.352050 1065.738038 29.997 fps ts mono/EoF 30 (6) [-] any 30 4147200 B 1065.418711 1065.819276 15.001 fps ts mono/EoF 31 (7) [-] any 31 4147200 B 1065.452045 1065.871561 29.999 fps ts mono/EoF 32 (0) [-] any 32 4147200 B 1065.518716 1065.924235 14.999 fps ts mono/EoF 33 (1) [-] any 33 4147200 B 1065.585380 1065.973756 15.001 fps ts mono/EoF 34 (2) [-] any 34 4147200 B 1065.652048 1066.026563 15.000 fps ts mono/EoF 35 (3) [-] any 35 4147200 B 1065.718717 1066.076300 14.999 fps ts mono/EoF 36 (4) [-] any 36 4147200 B 1065.785382 1066.128827 15.000 fps ts mono/EoF 37 (5) [-] any 37 4147200 B 1065.852047 1066.178462 15.000 fps ts mono/EoF 38 (6) [-] any 38 4147200 B 1065.918717 1066.230939 14.999 fps ts mono/EoF 39 (7) [-] any 39 4147200 B 1065.985381 1066.281278 15.001 fps ts mono/EoF 40 (0) [-] any 40 4147200 B 1066.018718 1066.333738 29.997 fps ts mono/EoF 41 (1) [-] any 41 4147200 B 1066.085380 1066.383369 15.001 fps ts mono/EoF 42 (2) [-] any 42 4147200 B 1066.118720 1066.436547 29.994 fps ts mono/EoF 43 (3) [-] any 43 4147200 B 1066.185382 1066.519345 15.001 fps ts mono/EoF 44 (4) [-] any 44 4147200 B 1066.218720 1066.571803 29.996 fps ts mono/EoF 45 (5) [-] any 45 4147200 B 1066.285384 1066.652610 15.001 fps ts mono/EoF 46 (6) [-] any 46 4147200 B 1066.318719 1066.705436 29.999 fps ts mono/EoF 47 (7) [-] any 47 4147200 B 1066.385383 1066.757757 15.001 fps ts mono/EoF 48 (0) [-] any 48 4147200 B 1066.418719 1066.807553 29.998 fps ts mono/EoF 49 (1) [-] any 49 4147200 B 1066.485387 1066.859797 15.000 fps ts mono/EoF 50 (2) [-] any 50 4147200 B 1066.552053 1066.909728 15.000 fps ts mono/EoF 51 (3) [-] any 51 4147200 B 1066.618720 1066.962001 15.000 fps ts mono/EoF 52 (4) [-] any 52 4147200 B 1066.685389 1067.011924 14.999 fps ts mono/EoF 53 (5) [-] any 53 4147200 B 1066.752053 1067.064380 15.001 fps ts mono/EoF 54 (6) [-] any 54 4147200 B 1066.818719 1067.114264 15.000 fps ts mono/EoF 55 (7) [-] any 55 4147200 B 1066.852054 1067.166474 29.999 fps ts mono/EoF 56 (0) [-] any 56 4147200 B 1066.918718 1067.216363 15.001 fps ts mono/EoF 57 (1) [-] any 57 4147200 B 1066.952054 1067.268569 29.998 fps ts mono/EoF 58 (2) [-] any 58 4147200 B 1067.018718 1067.318516 15.001 fps ts mono/EoF 59 (3) [-] any 59 4147200 B 1067.052055 1067.370788 29.997 fps ts mono/EoF 60 (4) [-] any 60 4147200 B 1067.118723 1067.452617 15.000 fps ts mono/EoF 61 (5) [-] any 61 4147200 B 1067.152056 1067.504764 30.000 fps ts mono/EoF 62 (6) [-] any 62 4147200 B 1067.218722 1067.585944 15.000 fps ts mono/EoF 63 (7) [-] any 63 4147200 B 1067.252065 1067.638152 29.991 fps ts mono/EoF 64 (0) [-] any 64 4147200 B 1067.318720 1067.719288 15.003 fps ts mono/EoF 65 (1) [-] any 65 4147200 B 1067.352058 1067.771388 29.996 fps ts mono/EoF 66 (2) [-] any 66 4147200 B 1067.418724 1067.852616 15.000 fps ts mono/EoF 67 (3) [-] any 67 4147200 B 1067.485392 1067.904849 15.000 fps ts mono/EoF 68 (4) [-] any 68 4147200 B 1067.552059 1067.985946 15.000 fps ts mono/EoF 69 (5) [-] any 69 4147200 B 1067.618727 1068.038320 15.000 fps ts mono/EoF 70 (6) [-] any 70 4147200 B 1067.685392 1068.119287 15.000 fps ts mono/EoF 71 (7) [-] any 71 4147200 B 1067.752060 1068.172105 15.000 fps ts mono/EoF 72 (0) [-] any 72 4147200 B 1067.818729 1068.224512 14.999 fps ts mono/EoF 73 (1) [-] any 73 4147200 B 1067.885394 1068.274032 15.000 fps ts mono/EoF 74 (2) [-] any 74 4147200 B 1067.952061 1068.326525 15.000 fps ts mono/EoF 75 (3) [-] any 75 4147200 B 1068.018730 1068.376332 14.999 fps ts mono/EoF 76 (4) [-] any 76 4147200 B 1068.085396 1068.428792 15.000 fps ts mono/EoF 77 (5) [-] any 77 4147200 B 1068.152063 1068.479151 15.000 fps ts mono/EoF 78 (6) [-] any 78 4147200 B 1068.218729 1068.532470 15.000 fps ts mono/EoF 79 (7) [-] any 79 4147200 B 1068.285395 1068.582351 15.000 fps ts mono/EoF 80 (0) [-] any 80 4147200 B 1068.318731 1068.635052 29.998 fps ts mono/EoF 81 (1) [-] any 81 4147200 B 1068.385393 1068.684823 15.001 fps ts mono/EoF 82 (2) [-] any 82 4147200 B 1068.418731 1070.285865 29.996 fps ts mono/EoF 83 (3) [-] any 83 4147200 B 1068.485396 1070.338340 15.000 fps ts mono/EoF 84 (4) [-] any 84 4147200 B 1068.518735 1070.419304 29.995 fps ts mono/EoF 85 (5) [-] any 85 4147200 B 1068.585398 1070.471496 15.001 fps ts mono/EoF 86 (6) [-] any 86 4147200 B 1068.618732 1070.552690 29.999 fps ts mono/EoF 87 (7) [-] any 87 4147200 B 1068.685396 1070.689381 15.001 fps ts mono/EoF 88 (0) [-] any 88 4147200 B 1068.718728 1070.742079 30.001 fps ts mono/EoF 89 (1) [-] any 89 4147200 B 1070.318745 1070.794392 0.625 fps ts mono/EoF 90 (2) [-] any 90 4147200 B 1070.385408 1070.844476 15.001 fps ts mono/EoF 91 (3) [-] any 91 4147200 B 1070.452077 1070.897062 14.999 fps ts mono/EoF 92 (4) [-] any 92 4147200 B 1070.518742 1070.947072 15.000 fps ts mono/EoF 93 (5) [-] any 93 4147200 B 1070.585414 1070.999405 14.999 fps ts mono/EoF 94 (6) [-] any 94 4147200 B 1070.718746 1071.049592 7.500 fps ts mono/EoF 95 (7) [-] any 95 4147200 B 1070.785411 1071.101989 15.000 fps ts mono/EoF 96 (0) [-] any 96 4147200 B 1070.852075 1071.185991 15.001 fps ts mono/EoF 97 (1) [-] any 97 4147200 B 1070.885413 1071.238316 29.996 fps ts mono/EoF 98 (2) [-] any 98 4147200 B 1070.952079 1071.290995 15.000 fps ts mono/EoF 99 (3) [-] any 99 4147200 B 1070.985414 1071.340793 29.999 fps ts mono/EoF 100 (4) [-] any 100 4147200 B 1071.052079 1071.393512 15.000 fps ts mono/EoF 101 (5) [-] any 101 4147200 B 1071.085412 1071.443271 30.000 fps ts mono/EoF 102 (6) [-] any 102 4147200 B 1071.152083 1071.495953 14.999 fps ts mono/EoF 103 (7) [-] any 103 4147200 B 1071.218750 1071.546667 15.000 fps ts mono/EoF 104 (0) [-] any 104 4147200 B 1071.285414 1071.599628 15.001 fps ts mono/EoF 105 (1) [-] any 105 4147200 B 1071.352080 1071.649464 15.000 fps ts mono/EoF 106 (2) [-] any 106 4147200 B 1071.385416 1071.702115 29.998 fps ts mono/EoF 107 (3) [-] any 107 4147200 B 1071.452081 1071.786009 15.000 fps ts mono/EoF 108 (4) [-] any 108 4147200 B 1071.485416 1071.838617 29.999 fps ts mono/EoF 109 (5) [-] any 109 4147200 B 1071.552083 1071.890902 15.000 fps ts mono/EoF 110 (6) [-] any 110 4147200 B 1071.585418 1071.941336 29.999 fps ts mono/EoF 111 (7) [-] any 111 4147200 B 1071.652083 1071.994174 15.000 fps ts mono/EoF 112 (0) [-] any 112 4147200 B 1071.685417 1072.044441 29.999 fps ts mono/EoF 113 (1) [-] any 113 4147200 B 1071.752083 1072.096763 15.000 fps ts mono/EoF 114 (2) [-] any 114 4147200 B 1071.818752 1072.146874 14.999 fps ts mono/EoF 115 (3) [-] any 115 4147200 B 1071.885418 1072.199244 15.000 fps ts mono/EoF 116 (4) [-] any 116 4147200 B 1071.952084 1072.249357 15.000 fps ts mono/EoF 117 (5) [-] any 117 4147200 B 1071.985420 1072.301716 29.998 fps ts mono/EoF 118 (6) [-] any 118 4147200 B 1072.052083 1072.351768 15.001 fps ts mono/EoF 119 (7) [-] any 119 4147200 B 1072.085419 1072.404148 29.998 fps ts mono/EoF 120 (0) [-] any 120 4147200 B 1072.152085 1072.485982 15.000 fps ts mono/EoF 121 (1) [-] any 121 4147200 B 1072.185421 1072.538445 29.998 fps ts mono/EoF 122 (2) [-] any 122 4147200 B 1072.252087 1072.591021 15.000 fps ts mono/EoF 123 (3) [-] any 123 4147200 B 1072.285421 1072.641044 29.999 fps ts mono/EoF 124 (4) [-] any 124 4147200 B 1072.352084 1072.693723 15.001 fps ts mono/EoF 125 (5) [-] any 125 4147200 B 1072.385421 1072.743377 29.997 fps ts mono/EoF 126 (6) [-] any 126 4147200 B 1072.452087 1072.795974 15.000 fps ts mono/EoF 127 (7) [-] any 127 4147200 B 1072.518758 1072.846030 14.999 fps ts mono/EoF 128 (0) [-] any 128 4147200 B 1072.585422 1072.899226 15.001 fps ts mono/EoF 129 (1) [-] any 129 4147200 B 1072.652088 1072.949073 15.000 fps ts mono/EoF 130 (2) [-] any 130 4147200 B 1072.685424 1073.001745 29.998 fps ts mono/EoF 131 (3) [-] any 131 4147200 B 1072.752089 1073.051786 15.000 fps ts mono/EoF 132 (4) [-] any 132 4147200 B 1072.785424 1073.104453 29.999 fps ts mono/EoF 133 (5) [-] any 133 4147200 B 1072.852087 1073.185987 15.001 fps ts mono/EoF 134 (6) [-] any 134 4147200 B 1072.885424 1073.238570 29.997 fps ts mono/EoF 135 (7) [-] any 135 4147200 B 1072.952088 1073.291943 15.001 fps ts mono/EoF 136 (0) [-] any 136 4147200 B 1072.985425 1073.342061 29.997 fps ts mono/EoF 137 (1) [-] any 137 4147200 B 1073.052088 1073.394397 15.001 fps ts mono/EoF 138 (2) [-] any 138 4147200 B 1073.085425 1073.444418 29.997 fps ts mono/EoF 139 (3) [-] any 139 4147200 B 1073.152091 1073.496886 15.000 fps ts mono/EoF 140 (4) [-] any 140 4147200 B 1073.218761 1073.547005 14.999 fps ts mono/EoF 141 (5) [-] any 141 4147200 B 1073.285431 1073.599359 14.999 fps ts mono/EoF 142 (6) [-] any 142 4147200 B 1073.352092 1073.649796 15.001 fps ts mono/EoF 143 (7) [-] any 143 4147200 B 1073.385428 1073.702196 29.998 fps ts mono/EoF 144 (0) [-] any 144 4147200 B 1073.452091 1073.786070 15.001 fps ts mono/EoF 145 (1) [-] any 145 4147200 B 1073.485428 1073.838451 29.997 fps ts mono/EoF 146 (2) [-] any 146 4147200 B 1073.552094 1073.891083 15.000 fps ts mono/EoF 147 (3) [-] any 147 4147200 B 1073.585428 1073.940877 29.999 fps ts mono/EoF 148 (4) [-] any 148 4147200 B 1073.652094 1073.993767 15.000 fps ts mono/EoF 149 (5) [-] any 149 4147200 B 1073.685429 1074.043605 29.999 fps ts mono/EoF 150 (6) [-] any 150 4147200 B 1073.752093 1074.096235 15.001 fps ts mono/EoF 151 (7) [-] any 151 4147200 B 1073.818766 1074.145926 14.999 fps ts mono/EoF 152 (0) [-] any 152 4147200 B 1073.885431 1074.198579 15.000 fps ts mono/EoF ^C[ 1075.424812] ti-udma 4e230000.dma-controller: chan0 teardown timeout!
How did you connect your camera to the PC?
PC+ convert machine + fpc+camra(isp+sensor)
Hi Daiwei,
You can use v4l2 utility or GStreamer to measure the fps:
v4l2-ctl -d /dev/video2 --set-fmt-video=width=
<width>
,height=
<height>
,pixelformat=<format> --stream-mmap
gst-launch-
1.0
-v v4l2src device=/dev/video2 io-mode=dmabuf ! video/x-raw, width=<width>
, height=<height>
, framerate=
30
/
1
, format=<format> ! fpsdisplaysink text-overlay=
false
Regards,
Jianzhong
Please use "YUYV8_1X16", "UYVY8_1X16",
etc, instead of 2X8, in your sensor driver. TI's CSI RX driver doesn't support 2X8 formats, because 2X8 is not a valid format for CSI.
thx,I got it
root@am62axx-evm:/opt/edgeai-gst-apps# v4l2-ctl -d /dev/video2 --set-fmt-video=width=1920,height=1080,pixelformat=UYVY --stream-mmap <<<<<<<<<<<<<<< <<<<<<<<<<<<<<<<< 30.00 fps <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps <<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps
two question:
1.So I must use MEDIA_BUS_FMT_UYVY8_1X16 instead of MEDIA_BUS_FMT_UYVY8_2X8,
also other yuv format should use 8_1X16, like YUYV->MEDIA_BUS_FMT_YUYV8_1X16?
2.when soc start to capture,when soc send stream on , probability 1 or 2 picture is green,Is there a way to avoid SOC here?
example capture 120
yavta -s 1920x1080 -f UYVY /dev/video2 -c125 -Fframe-#.bin
fist or second frame is green
1.So I must use MEDIA_BUS_FMT_UYVY8_1X16 instead of MEDIA_BUS_FMT_UYVY8_2X8,
also other yuv format should use 8_1X16, like YUYV->MEDIA_BUS_FMT_YUYV8_1X16?
You can use other YUV formats as long as they are 8_1X16. Please refer here: https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c?h=ti-linux-6.1.y#n138.
when soc start to capture,when soc send stream on , probability 1 or 2 picture is green
Does this happen every capture, or just after a power cycle?
Does this happen every capture, or just after a power cycle?
yavta -s 1920x1080 -f UYVY /dev/video2 -c125 -Fframe-#.bin
Green pictures mean the camera data buffers have all 0's. That most likely means your camera wasn't streaming in time when you started yavta capture. You'll need to check your sensor driver.