Tool/software:
Hi expert,
My goal is to achieve the mosaic of the images from two X3C cameras on the TDA4 development board. Since I only have two cameras, I have temporarily enabled the display of the two channels. Each of the two channels can display the image separately, but they cannot be displayed simultaneously. Could you please tell me what's wrong with it?
root@j721e-evm:/opt/edgeai-gst-apps# media-ctl -p Media controller API version 6.1.80 Media device information ------------------------ driver j721e-csi2rx model TI-CSI2RX serial bus info platform:4500000.ticsi2rx hw revision 0x1 driver version 6.1.80 Device topology - entity 1: 4500000.ticsi2rx (17 pads, 17 links, 2 routes) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev3 routes: 0/0 -> 2/0 [ACTIVE] 0/1 -> 3/0 [ACTIVE] pad0: Sink [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range] [stream:1 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range] <- "cdns_csi2rx.4504000.csi-bridge":1 [ENABLED,IMMUTABLE] pad1: Source -> "4500000.ticsi2rx context 0":0 [ENABLED,IMMUTABLE] pad2: Source [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range] -> "4500000.ticsi2rx context 1":0 [ENABLED,IMMUTABLE] pad3: Source [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range] -> "4500000.ticsi2rx context 2":0 [ENABLED,IMMUTABLE] pad4: Source -> "4500000.ticsi2rx context 3":0 [ENABLED,IMMUTABLE] pad5: Source -> "4500000.ticsi2rx context 4":0 [ENABLED,IMMUTABLE] pad6: Source -> "4500000.ticsi2rx context 5":0 [ENABLED,IMMUTABLE] pad7: Source -> "4500000.ticsi2rx context 6":0 [ENABLED,IMMUTABLE] pad8: Source -> "4500000.ticsi2rx context 7":0 [ENABLED,IMMUTABLE] pad9: Source -> "4500000.ticsi2rx context 8":0 [ENABLED,IMMUTABLE] pad10: Source -> "4500000.ticsi2rx context 9":0 [ENABLED,IMMUTABLE] pad11: Source -> "4500000.ticsi2rx context 10":0 [ENABLED,IMMUTABLE] pad12: Source -> "4500000.ticsi2rx context 11":0 [ENABLED,IMMUTABLE] pad13: Source -> "4500000.ticsi2rx context 12":0 [ENABLED,IMMUTABLE] pad14: Source -> "4500000.ticsi2rx context 13":0 [ENABLED,IMMUTABLE] pad15: Source -> "4500000.ticsi2rx context 14":0 [ENABLED,IMMUTABLE] pad16: Source -> "4500000.ticsi2rx context 15":0 [ENABLED,IMMUTABLE] - entity 19: cdns_csi2rx.4504000.csi-bridge (5 pads, 2 links, 2 routes) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev4 routes: 0/0 -> 1/0 [ACTIVE] 0/1 -> 1/1 [ACTIVE] pad0: Sink [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none] [stream:1 fmt:SBGGR12_1X12/1920x1280 field:none] <- "ds90ub960 5-003d":4 [ENABLED,IMMUTABLE] pad1: Source [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none] [stream:1 fmt:SBGGR12_1X12/1920x1280 field:none] -> "4500000.ticsi2rx":0 [ENABLED,IMMUTABLE] pad2: Source pad3: Source pad4: Source - entity 25: ds90ub960 5-003d (6 pads, 3 links, 2 routes) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev5 routes: 0/0 -> 4/0 [ACTIVE] 1/0 -> 4/1 [ACTIVE] pad0: Sink [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none] <- "ds90ub953 5-0044":1 [ENABLED,IMMUTABLE] pad1: Sink [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none] <- "ds90ub953 5-0045":1 [ENABLED,IMMUTABLE] pad2: Sink pad3: Sink pad4: Source [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none] [stream:1 fmt:SBGGR12_1X12/1920x1280 field:none] -> "cdns_csi2rx.4504000.csi-bridge":0 [ENABLED,IMMUTABLE] pad5: Source - entity 34: ds90ub953 5-0045 (2 pads, 2 links, 1 route) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev6 routes: 0/0 -> 1/0 [ACTIVE] pad0: Sink [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none] <- "ox03c10 8-0036":0 [ENABLED,IMMUTABLE] pad1: Source [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none] -> "ds90ub960 5-003d":1 [ENABLED,IMMUTABLE] - entity 39: ds90ub953 5-0044 (2 pads, 2 links, 1 route) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev7 routes: 0/0 -> 1/0 [ACTIVE] pad0: Sink [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none] <- "ox03c10 7-0036":0 [ENABLED,IMMUTABLE] pad1: Source [stream:0 fmt:SBGGR12_1X12/1920x1280 field:none] -> "ds90ub960 5-003d":0 [ENABLED,IMMUTABLE] - entity 44: ox03c10 7-0036 (1 pad, 1 link, 2 routes) type V4L2 subdev subtype Sensor flags 0 device node name /dev/v4l-subdev8 routes: 0/0 -> 0/0 [ACTIVE] 0/0 -> 0/1 [INACTIVE] pad0: Source [stream:0 fmt:SBGGR12_1X12/1920x1280@1/60 field:none colorspace:smpte170m] -> "ds90ub953 5-0044":0 [ENABLED,IMMUTABLE] - entity 48: ox03c10 8-0036 (1 pad, 1 link, 2 routes) type V4L2 subdev subtype Sensor flags 0 device node name /dev/v4l-subdev9 routes: 0/0 -> 0/0 [ACTIVE] 0/0 -> 0/1 [INACTIVE] pad0: Source [stream:0 fmt:SBGGR12_1X12/1920x1280@1/60 field:none colorspace:smpte170m] -> "ds90ub953 5-0045":0 [ENABLED,IMMUTABLE] - entity 54: 4500000.ticsi2rx context 0 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video18 pad0: Sink <- "4500000.ticsi2rx":1 [ENABLED,IMMUTABLE] - entity 60: 4500000.ticsi2rx context 1 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video19 pad0: Sink <- "4500000.ticsi2rx":2 [ENABLED,IMMUTABLE] - entity 66: 4500000.ticsi2rx context 2 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video20 pad0: Sink <- "4500000.ticsi2rx":3 [ENABLED,IMMUTABLE] - entity 72: 4500000.ticsi2rx context 3 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video21 pad0: Sink <- "4500000.ticsi2rx":4 [ENABLED,IMMUTABLE] - entity 78: 4500000.ticsi2rx context 4 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video22 pad0: Sink <- "4500000.ticsi2rx":5 [ENABLED,IMMUTABLE] - entity 84: 4500000.ticsi2rx context 5 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video23 pad0: Sink <- "4500000.ticsi2rx":6 [ENABLED,IMMUTABLE] - entity 90: 4500000.ticsi2rx context 6 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video24 pad0: Sink <- "4500000.ticsi2rx":7 [ENABLED,IMMUTABLE] - entity 96: 4500000.ticsi2rx context 7 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video25 pad0: Sink <- "4500000.ticsi2rx":8 [ENABLED,IMMUTABLE] - entity 102: 4500000.ticsi2rx context 8 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video26 pad0: Sink <- "4500000.ticsi2rx":9 [ENABLED,IMMUTABLE] - entity 108: 4500000.ticsi2rx context 9 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video27 pad0: Sink <- "4500000.ticsi2rx":10 [ENABLED,IMMUTABLE] - entity 114: 4500000.ticsi2rx context 10 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video28 pad0: Sink <- "4500000.ticsi2rx":11 [ENABLED,IMMUTABLE] - entity 120: 4500000.ticsi2rx context 11 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video29 pad0: Sink <- "4500000.ticsi2rx":12 [ENABLED,IMMUTABLE] - entity 126: 4500000.ticsi2rx context 12 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video30 pad0: Sink <- "4500000.ticsi2rx":13 [ENABLED,IMMUTABLE] - entity 132: 4500000.ticsi2rx context 13 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video31 pad0: Sink <- "4500000.ticsi2rx":14 [ENABLED,IMMUTABLE] - entity 138: 4500000.ticsi2rx context 14 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video32 pad0: Sink <- "4500000.ticsi2rx":15 [ENABLED,IMMUTABLE] - entity 144: 4500000.ticsi2rx context 15 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video33 pad0: Sink <- "4500000.ticsi2rx":16 [ENABLED,IMMUTABLE]
GST_DEBUG=3 gst-launch-1.0 \ v4l2src device=/dev/video19 ! video/x-bayer, width=1920, height=1280, format=bggr12 ! queue leaky=2 ! tiovxisp sink_0::device=/dev/v4l-ox03c10-subdev0 sensor-name=SENSOR_SONY_OX03C10_UB953_D3 dcc-isp-file=/opt/imaging/ox03c10/wdr/dcc_viss_wdr.bin sink_0::dcc-2a-file=/opt/imaging/ox03c10/wdr/dcc_2a_wdr.bin format-msb=11 ! video/x-raw, format=NV12, width=1920, height=1280 ! queue ! mosaic.sink_0 \ v4l2src device=/dev/video20 ! video/x-bayer, width=1920, height=1280, format=bggr12 ! queue leaky=2 ! tiovxisp sink_0::device=/dev/v4l-ox03c10-subdev1 sensor-name=SENSOR_SONY_OX03C10_UB953_D3 dcc-isp-file=/opt/imaging/ox03c10/wdr/dcc_viss_wdr.bin sink_0::dcc-2a-file=/opt/imaging/ox03c10/wdr/dcc_2a_wdr.bin format-msb=11 ! video/x-raw, format=NV12, width=1920, height=1280 ! queue ! mosaic.sink_1 \ tiovxmosaic name=mosaic \ sink_0::startx="<0>" sink_0::starty="<0>" sink_0::widths="<960>" sink_0::heights="<640>" \ sink_1::startx="<0>" sink_1::starty="<640>" sink_1::widths="<960>" sink_1::heights="<640>" \ queue ! video/x-raw, width=1920, height=1280 ! queue ! kmssink driver-name=tidss sync=false force-modesetting=true
APP: Init ... !!! MEM: Init ... !!! MEM: Initialized DMA HEAP (fd=6) !!! MEM: Init ... Done !!! IPC: Init ... !!! IPC: Init ... Done !!! REMOTE_SERVICE: Init ... !!! REMOTE_SERVICE: Init ... Done !!! 2268.389000 s: GTC Frequency = 200 MHz APP: Init ... Done !!! 2268.389075 s: VX_ZONE_INIT:Enabled 2268.389083 s: VX_ZONE_ERROR:Enabled 2268.389089 s: VX_ZONE_WARNING:Enabled 2268.389630 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-0 2268.389729 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-1 2268.389807 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-2 2268.389884 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-3 2268.389894 s: VX_ZONE_INIT:[tivxInitLocal:136] Initialization Done !!! 2268.390767 s: VX_ZONE_INIT:[tivxHostInitLocal:101] Initialization Done for HOST !!! Setting pipeline to PAUSED ... 0:00:00.245727795 1988 0x24e98de0 WARN v4l2src gstv4l2src.c:814:gst_v4l2src_query:<v4l2src0> Can't give latency since framerate isn't fixated ! 0:00:00.245793950 1988 0x24e98de0 WARN aggregator gstaggregator.c:2104:gst_aggregator_query_latency_unlocked:<tiovxisp0> Latency query failed 0:00:00.246294875 1988 0x24e98de0 WARN v4l2src gstv4l2src.c:814:gst_v4l2src_query:<v4l2src1> Can't give latency since framerate isn't fixated ! . . . . . Error: failed to open i2c bus at /dev/i2c-9 Warning: Fail[ 2263.107140] ox03c10_set_ctrl: Exposure, value: 51 id:9963793, fps:60 [ 2263.107666] DGAIN reg value:00 00 04/write will not work !!! NETWORK: Opened at IP Addr = 0.0.0.0, socket port=5000!!! 0:0[ 2263.128456] EXPOSURE reg value:00 33 0:01.425920735 1988 0x24e986a0 WARN 2263.137149] AGAIN reg value:01 00 0m v4l2bufferpool gstv4l2bufferpool.c:1397:gst_v4l2_b[ 2263.146369] DGAIN reg value:00 00 04 uffer_pool_dqbuf:<v4l2src1:pool0:src> Driver should never set v4l2_buffer.field to ANY 0:00:01.461749345 1988 0x24e98760 FIXME aggregator gstaggregator.c:1412:gst_aggregator_aggregate_func:<tiovxisp0> Subclass should call gst_aggregator_selected_samples() from its aggregate implementation. mosaic_pad->width[0]:960, GST_VIDEO_INFO_WIDTH(&video_info):1920, width:0 0:00:01.486513710 1988 0x24e98d20 FIXME aggregator gstaggregator.c:1412:gst_aggregator_aggregate_func:<tiovxisp1> Subclass should call gst_aggregator_selected_samples() from its aggregate implementation. mosaic_pad->width[1]:-1, GST_VIDEO_INFO_WIDTH(&video_info):1920, width:960 ----------------720 ffffffff 1920 0:00:01.486575520 1988 0x24e98de0 WARN tiovxmosaic gsttiovxmosaic.c:721:gst_tiovx_mosaic_check_dimension:<mosaic> Pad width: -1 is larger than input width: 1920, setting input width ----------------720 ffffffff 1280 0:00:01.486602340 1988 0x24e98de0 WARN tiovxmosaic gsttiovxmosaic.c:721:gst_tiovx_mosaic_check_dimension:<mosaic> Pad height: -1 is larger than input height: 1280, setting input height mosaic_pad->width[2]:-1, GST_VIDEO_INFO_WIDTH(&video_info):1920, width:1920 ----------------720 ffffffff 1920 0:00:01.486629585 1988 0x24e98de0 WARN tiovxmosaic gsttiovxmosaic.c:721:gst_tiovx_mosaic_check_dimension:<mosaic> Pad width: -1 is larger than input width: 1920, setting input width ----------------720 ffffffff 1280 0:00:01.486655475 1988 0x24e98de0 WARN tiovxmosaic gsttiovxmosaic.c:721:gst_tiovx_mosaic_check_dimension:<mosaic> Pad height: -1 is larger than input height: 1280, setting input height mosaic_pad->width[3]:-1, GST_VIDEO_INFO_WIDTH(&video_info):1920, width:1920 ----------------720 ffffffff 1920
I hope to receive your reply as soon as possible. Thank you very much.