root@am62xx-evm:~# media-ctl -p Media controller API version 6.1.33 Media device information ------------------------ driver j721e-csi2rx model TI-CSI2RX serial bus info platform:30102000.ticsi2rx hw revision 0x1 driver version 6.1.33 Device topology - entity 1: 30102000.ticsi2rx (5 pads, 5 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:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range] <- "cdns_csi2rx.30101000.csi-bridge":1 [ENABLED,IMMUTABLE] pad1: Source [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range] -> "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] - entity 7: cdns_csi2rx.30101000.csi-bridge (5 pads, 2 links, 1 route) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev1 routes: 0/0 -> 1/0 [ACTIVE] pad0: Sink [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range] <- "tp2855 1-0044":0 [ENABLED,IMMUTABLE] pad1: Source [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range] -> "30102000.ticsi2rx":0 [ENABLED,IMMUTABLE] pad2: Source pad3: Source pad4: Source - entity 13: tp2855 1-0044 (1 pad, 1 link, 0 route) type V4L2 subdev subtype Sensor flags 0 device node name /dev/v4l-subdev2 pad0: Source [stream:0 fmt:YUYV8_1X16/1280x720 field:none colorspace:srgb xfer:709 ycbcr:601 quantization:lim-range] -> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE] - entity 19: 30102000.ticsi2rx context 0 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video0 pad0: Sink <- "30102000.ticsi2rx":1 [ENABLED,IMMUTABLE] - entity 25: 30102000.ticsi2rx context 1 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video1 pad0: Sink <- "30102000.ticsi2rx":2 [ENABLED,IMMUTABLE] - entity 31: 30102000.ticsi2rx context 2 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video2 pad0: Sink <- "30102000.ticsi2rx":3 [ENABLED,IMMUTABLE] - entity 37: 30102000.ticsi2rx context 3 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video3 pad0: Sink <- "30102000.ticsi2rx":4 [ENABLED,IMMUTABLE] root@am62xx-evm:~# media-ctl -d /dev/media0 -V '"cdns_csi2rx.30101000.csi-bridge":0 [fmt:YUYV8_1X16/1280x720 field:none colorspace:srgb xfer:709 ycbcr:601 quantization:lim-range]' quantization:lim-range]' media-ctl -d /dev/media0 -V '"30102000.ticsi2rx":0 [fmt:YUYV8_1X16/1280x720 field:none colorspace:srgb xfer:709 ycbcr:601 quantization:lim-range]' media-ctl -d /dev/media0 -V '"30102000.ticsi2rx":1 [fmt:YUYV8_1X16/1280x720 field:none colorspace:srgb xfer:709 ycbcr:601 quantization:lim-range]' v4l2-ctl -d /dev/video0 --set-fmt-video=width=1280,height=720,pixelformat=YUYV --verbose media-ctl -proot@am62xx-evm:~# media-ctl -d /dev/media0 -V '"cdns_csi2rx.30101000.csi-bridge":1 [fmt:YUYV8_1X16/1280x720 field:none colorspace:srgb xfer:709 ycbcr:601 quantization:lim-range]' root@am62xx-evm:~# media-ctl -d /dev/media0 -V '"30102000.ticsi2rx":0 [fmt:YUYV8_1X16/1280x720 field:none colorspace:srgb xfer:709 ycbcr:601 quantization:lim-range]' root@am62xx-evm:~# media-ctl -d /dev/media0 -V '"30102000.ticsi2rx":1 [fmt:YUYV8_1X16/1280x720 field:none colorspace:srgb xfer:709 ycbcr:601 quantization:lim-range]' root@am62xx-evm:~# v4l2-ctl -d /dev/video0 --set-fmt-video=width=1280,height=720,pixelformat=YUYV --verbose VIDIOC_QUERYCAP: ok VIDIOC_G_FMT: ok VIDIOC_S_FMT: ok Format Video Capture: Width/Height : 1280/720 Pixel Format : 'YUYV' (YUYV 4:2:2) Field : None Bytes per Line : 2560 Size Image : 1843200 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Limited Range) Flags : root@am62xx-evm:~# media-ctl -p Media controller API version 6.1.33 Media device information ------------------------ driver j721e-csi2rx model TI-CSI2RX serial bus info platform:30102000.ticsi2rx hw revision 0x1 driver version 6.1.33 Device topology - entity 1: 30102000.ticsi2rx (5 pads, 5 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/1280x720 field:none colorspace:srgb xfer:709 ycbcr:601 quantization:lim-range] <- "cdns_csi2rx.30101000.csi-bridge":1 [ENABLED,IMMUTABLE] pad1: Source [stream:0 fmt:YUYV8_1X16/1280x720 field:none colorspace:srgb xfer:709 ycbcr:601 quantization:lim-range] -> "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] - entity 7: cdns_csi2rx.30101000.csi-bridge (5 pads, 2 links, 1 route) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev1 routes: 0/0 -> 1/0 [ACTIVE] pad0: Sink [stream:0 fmt:YUYV8_1X16/1280x720 field:none colorspace:srgb xfer:709 ycbcr:601 quantization:lim-range] <- "tp2855 1-0044":0 [ENABLED,IMMUTABLE] pad1: Source [stream:0 fmt:YUYV8_1X16/1280x720 field:none colorspace:srgb xfer:709 ycbcr:601 quantization:lim-range] -> "30102000.ticsi2rx":0 [ENABLED,IMMUTABLE] pad2: Source pad3: Source pad4: Source - entity 13: tp2855 1-0044 (1 pad, 1 link, 0 route) type V4L2 subdev subtype Sensor flags 0 device node name /dev/v4l-subdev2 pad0: Source [stream:0 fmt:YUYV8_1X16/1280x720 field:none colorspace:srgb xfer:709 ycbcr:601 quantization:lim-range] -> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE] - entity 19: 30102000.ticsi2rx context 0 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video0 pad0: Sink <- "30102000.ticsi2rx":1 [ENABLED,IMMUTABLE] - entity 25: 30102000.ticsi2rx context 1 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video1 pad0: Sink <- "30102000.ticsi2rx":2 [ENABLED,IMMUTABLE] - entity 31: 30102000.ticsi2rx context 2 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video2 pad0: Sink <- "30102000.ticsi2rx":3 [ENABLED,IMMUTABLE] - entity 37: 30102000.ticsi2rx context 3 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video3 pad0: Sink <- "30102000.ticsi2rx":4 [ENABLED,IMMUTABLE] root@am62xx-evm:~# gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 ! video/x-raw,format=YUYV,width=1280,height=720 ! videoconvert ! waylandsink sync=false WARNING: erroneous pipeline: could not link v4l2src0 to videoconvert0, neither element can handle caps video/x-raw, format=(string)YUYV, width=(int)1280, height=(int)720 root@am62xx-evm:~# root@am62xx-evm:~# gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=YUYV,width=1280,height=720 ! videoconvert ! waylandsink sync=false WARNING: erroneous pipeline: could not link v4l2src0 to videoconvert0, neither element can handle caps video/x-raw, format=(string)YUYV, width=(int)1280, height=(int)720 root@am62xx-evm:~# v4l2-ctl --device=/dev/video0 --list-formats-ext ioctl: VIDIOC_ENUM_FMT Type: Video Capture [0]: 'YUYV' (YUYV 4:2:2) Size: Stepwise 8x1 - 8192x16384 with step 8/1 [1]: 'UYVY' (UYVY 4:2:2) Size: Stepwise 8x1 - 8192x16384 with step 8/1 [2]: 'YVYU' (YVYU 4:2:2) Size: Stepwise 8x1 - 8192x16384 with step 8/1 [3]: 'VYUY' (VYUY 4:2:2) Size: Stepwise 8x1 - 8192x16384 with step 8/1 [4]: 'BA81' (8-bit Bayer BGBG/GRGR) Size: Stepwise 16x1 - 16384x16384 with step 16/1 [5]: 'GBRG' (8-bit Bayer GBGB/RGRG) Size: Stepwise 16x1 - 16384x16384 with step 16/1 [6]: 'GRBG' (8-bit Bayer GRGR/BGBG) Size: Stepwise 16x1 - 16384x16384 with step 16/1 [7]: 'RGGB' (8-bit Bayer RGRG/GBGB) Size: Stepwise 16x1 - 16384x16384 with step 16/1 [8]: 'BG10' (10-bit Bayer BGBG/GRGR) Size: Stepwise 8x1 - 8192x16384 with step 8/1 [9]: 'GB10' (10-bit Bayer GBGB/RGRG) Size: Stepwise 8x1 - 8192x16384 with step 8/1 [10]: 'BA10' (10-bit Bayer GRGR/BGBG) Size: Stepwise 8x1 - 8192x16384 with step 8/1 [11]: 'RG10' (10-bit Bayer RGRG/GBGB) Size: Stepwise 8x1 - 8192x16384 with step 8/1 [12]: 'BG12' (12-bit Bayer BGBG/GRGR) Size: Stepwise 8x1 - 8192x16384 with step 8/1 [13]: 'GB12' (12-bit Bayer GBGB/RGRG) Size: Stepwise 8x1 - 8192x16384 with step 8/1 [14]: 'BA12' (12-bit Bayer GRGR/BGBG) Size: Stepwise 8x1 - 8192x16384 with step 8/1 [15]: 'RG12' (12-bit Bayer RGRG/GBGB) Size: Stepwise 8x1 - 8192x16384 with step 8/1 [16]: 'RGI0' (10-bit Bayer RGBG/GIrGIr) Size: Stepwise 8x1 - 8192x16384 with step 8/1 [17]: 'GRI0' (10-bit Bayer GRGB/IrGIrG) Size: Stepwise 8x1 - 8192x16384 with step 8/1 [18]: 'BGI0' (10-bit Bayer BGRG/GIrGIr) Size: Stepwise 8x1 - 8192x16384 with step 8/1 [19]: 'GBI0' (10-bit Bayer GBGR/IrGIrG) Size: Stepwise 8x1 - 8192x16384 with step 8/1 [20]: 'GIR0' (10-bit Bayer GIrGIr/RGBG) Size: Stepwise 8x1 - 8192x16384 with step 8/1 [21]: 'IGR0' (10-bit Bayer IrGIrG/GRGB) Size: Stepwise 8x1 - 8192x16384 with step 8/1 [22]: 'GIB0' (10-bit Bayer GIrGIr/BGRG) Size: Stepwise 8x1 - 8192x16384 with step 8/1 [23]: 'IGB0' (10-bit Bayer IrGIrG/GBGR) Size: Stepwise 8x1 - 8192x16384 with step 8/1 root@am62xx-evm:~# root@am62xx-evm:~# v4l2-ctl \ > --device=/dev/video0 \ > --set-fmt-video=width=1280,height=720,pixelformat=YUYV \ --stream-mmap \ > --stream-mmap \ > --stream-to=/tmp/out.yuv <<<<<<<<<<<<<<<<<<<< 18.74 fps <<<<<<<<<<<<<<<<<< 18.36 fps <<<<<<<<<<<<<<<<<< 18.04 fps <<<<<<<<<<<<<<<<< 17.93 fps <<<<<<<<<<<<<<<<<< 17.83 fps <<<<<<<<<<<<<<<<<< 17.87 fps <<<<<<<<<<<<<<<<< 17.83 fps <<<<<<<<<<<<<<<<<< 17.77 fps <<<<<<<<<<<<<<<<< 17.75 fps <<<<<<<<<<<<<<<<<< 17.77 fps <<<<<<<<<<<<<<<<<< 17.75 fps <<<<<<<<<<<<<<<<< 17.73 fps <<<<<<<<<<<<<<<<<< 17.70 fps <<<<<<<<<<<<<<<<< 17.61 fps <<<<<<<<<<<<<<<<<< 17.60 fps ^C root@am62xx-evm:~#