Hi,
First of all, thank you for your help regarding yesterday's session, After switching to a different de-serialiser I have a reading from i2c of the camera.
The next step I am trying to achieve is streaming the video to HDMI and save to SD card, but I am having trouble with Media control command.
and gst.
edit Update - I have managed to receive a video stream using the following gst line:
gst-launch-1.0 v4l2src device="/dev/video2" ! video/x-raw, width=1280, height=720, framerate=30/1 ! kmssink driver-name=tidss
but as you can tell this is not the full resolution and quality
the following message after running ./init_script.sh (notice the error)
root@tda4vm-sk:/opt/edge_ai_apps# ./init_script.sh Unable to setup formats: Invalid argument (22) CSI Camera 0 detected device = /dev/video2 name = ar0234 8-0044 format = subdev_id = 2 isp_required =
I am trying to run:
media-ctl -d /dev/media0 --set-v4l2 '"ar0234 8-0044":0[fmt:UYVY2X8/1280x720]'
and I get:
VY2X8/1280x720]'opt/edge_ai_apps# media-ctl -d /dev/media0 --set-v4l2 '"ar0234 8-0044":0[fmt:UYV [ 7732.377916] Skipping Previous mode set ...
I have double checked, the media port is 0, i2c address is right.
Also if I try to run gst command:
gst-launch-1.0 v4l2src num-buffers=-1 device=/dev/video2io- mode=5 ! “video/x-raw,width=1280,height=720,format=UYVY”!fpsdisplaysink video-sink=autovideosink text-overlay=falsesync=false -v
I receive:
sink text-overlay=falsesync=false -vght=720,format=UYVY�”!fpsdisplaysink video-sink=autovideosmo
-sh: !fpsdisplaysink: event not found
please check the following logs for debug:
:UYVY2X8/1280x720]'edia0 --set-v4l2 '"ar0234 8- 0044":0/0[fmt: Unable to setup formats: Invalid argument (22) root@tda4vm-sk:/opt/edge_ai_apps# :UYVY2X8/1280x720]'/edge_ai_apps# media-ctl -d /dev/media0 --set-v4l2 '"ar0234 8- 0044":0/0[fmt: Unable to setup formats: Invalid argument (22) VY2X8/1280x720]'opt/edge_ai_apps# media-ctl -d /dev/media0 --set-v4l2 '"ar0234 8-0044":0[fmt:UYV [ 6484.321631] Skipping Previous mode set ... VY2X8/1280x720]'opt/edge_ai_apps# media-ctl -d /dev/media0 --set-v4l2 '"ar0234 8-0044":0[fmt:UYV [ 7732.377916] Skipping Previous mode set ... sink text-overlay=falsesync=false -vght=720,format=UYVY�”!fpsdisplaysink video-sink=autovideosmo -sh: !fpsdisplaysink: event not found root@tda4vm-sk:/opt/edge_ai_apps# media-ctl -d /dev/media0 -p Media controller API version 5.10.120 Media device information ------------------------ driver j721e-csi2rx model TI-CSI2RX serial bus info platform:4500000.ticsi2rx hw revision 0x1 driver version 5.10.120 Device topology - entity 1: 4500000.ticsi2rx (17 pads, 17 links, 1 route) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev0 routes: 0/0 -> 1/0 [ACTIVE] pad0: Sink <- "cdns_csi2rx.4504000.csi-bridge":1 [ENABLED,IMMUTABLE] pad1: Source -> "4500000.ticsi2rx context 0":0 [ENABLED,IMMUTABLE] pad2: Source -> "4500000.ticsi2rx context 1":0 [ENABLED,IMMUTABLE] pad3: Source -> "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, 0 route) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev1 pad0: Sink <- "ar0234 8-0044":0 [ENABLED,IMMUTABLE] pad1: Source -> "4500000.ticsi2rx":0 [ENABLED,IMMUTABLE] pad2: Source pad3: Source pad4: Source - entity 25: ar0234 8-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:UYVY8_2X8/1280x720 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range] -> "cdns_csi2rx.4504000.csi-bridge":0 [ENABLED,IMMUTABLE] - entity 31: 4500000.ticsi2rx context 0 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video2 pad0: Sink <- "4500000.ticsi2rx":1 [ENABLED,IMMUTABLE] - entity 37: 4500000.ticsi2rx context 1 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video3 pad0: Sink <- "4500000.ticsi2rx":2 [ENABLED,IMMUTABLE] - entity 43: 4500000.ticsi2rx context 2 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video4 pad0: Sink <- "4500000.ticsi2rx":3 [ENABLED,IMMUTABLE] - entity 49: 4500000.ticsi2rx context 3 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video5 pad0: Sink <- "4500000.ticsi2rx":4 [ENABLED,IMMUTABLE] - entity 55: 4500000.ticsi2rx context 4 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video6 pad0: Sink <- "4500000.ticsi2rx":5 [ENABLED,IMMUTABLE] - entity 61: 4500000.ticsi2rx context 5 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video7 pad0: Sink <- "4500000.ticsi2rx":6 [ENABLED,IMMUTABLE] - entity 67: 4500000.ticsi2rx context 6 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video8 pad0: Sink <- "4500000.ticsi2rx":7 [ENABLED,IMMUTABLE] - entity 73: 4500000.ticsi2rx context 7 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video9 pad0: Sink <- "4500000.ticsi2rx":8 [ENABLED,IMMUTABLE] - entity 79: 4500000.ticsi2rx context 8 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video10 pad0: Sink <- "4500000.ticsi2rx":9 [ENABLED,IMMUTABLE] - entity 85: 4500000.ticsi2rx context 9 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video11 pad0: Sink <- "4500000.ticsi2rx":10 [ENABLED,IMMUTABLE] - entity 91: 4500000.ticsi2rx context 10 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video12 pad0: Sink <- "4500000.ticsi2rx":11 [ENABLED,IMMUTABLE] - entity 97: 4500000.ticsi2rx context 11 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video13 pad0: Sink <- "4500000.ticsi2rx":12 [ENABLED,IMMUTABLE] - entity 103: 4500000.ticsi2rx context 12 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video14 pad0: Sink <- "4500000.ticsi2rx":13 [ENABLED,IMMUTABLE] - entity 109: 4500000.ticsi2rx context 13 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video15 pad0: Sink <- "4500000.ticsi2rx":14 [ENABLED,IMMUTABLE] - entity 115: 4500000.ticsi2rx context 14 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video16 pad0: Sink <- "4500000.ticsi2rx":15 [ENABLED,IMMUTABLE] - entity 121: 4500000.ticsi2rx context 15 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video17 pad0: Sink <- "4500000.ticsi2rx":16 [ENABLED,IMMUTABLE]
root@tda4vm-sk:/opt/edge_ai_apps# v4l2-ctl -d /dev/v4l-subdev2 --list-ctrls User Controls brightness 0x00980900 (int) : min=-15 max=15 step=1 default=0 value=0 flags=slider contrast 0x00980901 (int) : min=0 max=30 step=1 default=8 value=8 flags=slider saturation 0x00980902 (int) : min=0 max=60 step=1 default=18 value=18 flags=slider white_balance_automatic 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=40 max=500 step=1 default=220 value=220 flags=slider gain 0x00980913 (int) : min=1 max=40 step=1 default=1 value=1 horizontal_flip 0x00980914 (bool) : default=0 value=0 vertical_flip 0x00980915 (bool) : default=0 value=0 white_balance_temperature 0x0098091a (int) : min=10 max=10000 step=10 default=4600 value=4600 sharpness 0x0098091b (int) : min=0 max=127 step=1 default=16 value=16 flags=slider Camera Controls exposure_auto 0x009a0901 (menu) : min=0 max=2 default=0 value=0 (Full FOV Auto Mode) exposure_time_absolute 0x009a0902 (int) : min=1 max=10000 step=1 default=312 value=312 roi_window_size 0x009a0924 (int) : min=8 max=64 step=8 default=8 value=8 flags=slider roi_exposure 0x009a0926 (int) : min=0 max=65535 step=1 default=32896 value=32896 flags=slider frame_sync 0x009a092a (menu) : min=0 max=2 default=0 value=0 (Disable Frame Sync) denoise 0x009a092d (int) : min=0 max=15 step=1 default=8 value=8 flags=slider exposure_compensation 0x009a0931 (int) : min=8000 max=1000000 step=1 default=16000 value=16000 flags=slider Image Processing Controls pixel_rate 0x009f0902 (int64) : min=0 max=2147483647 step=1 default=182400000 value=182400000 flags=read-only