Commit 5a9fab1a authored by Martin Kepplinger's avatar Martin Kepplinger
Browse files

add cam stagingtest

parent bb0fb5e8
#!/bin/bash
DEV=$1
WIDTH=$2
HEIGHT=$3
SKIP=$4
media-ctl -d $DEV --set-v4l2 "'csi':0 [fmt:SGBRG10/${WIDTH}x${HEIGHT} colorspace:raw]"
media-ctl -d $DEV --set-v4l2 "'imx8mq-mipi-csi2.0':0 [fmt:SGBRG10/${WIDTH}x${HEIGHT} colorspace:raw]"
media-ctl -d $DEV --set-v4l2 "'hi846 2-0020':0 [fmt:SGBRG10/${WIDTH}x${HEIGHT} colorspace:raw]"
media-ctl -d $DEV -l "'hi846 2-0020':0 -> 'imx8mq-mipi-csi2.0':0 [1]"
v4l2-ctl -d "/dev/v4l/by-path/platform-30a90000.csi-video-index0" --set-fmt-video=width=${WIDTH},height=${HEIGHT},pixelformat=GB16 --stream-mmap --stream-to=$WIDTH.raw --stream-skip=$SKIP --stream-count=1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment