CSI IMX219 camera to work with BeagleY-AI

Ok, I have actually managed to make it work with these two commands:

media-ctl -V '"imx219 5-0010":0 [fmt:YU12/1920x1080 field:none]'

gst-launch-1.0 -v v4l2src num-buffers=5 device=/dev/video3 io-mode=dmabuf ! \
video/x-bayer, width=1920, height=1080, framerate=30/1, format=rggb ! \
multifilesink location="imx219-image-%d.raw"

The upper command setups the camera ( "imx219 5-0010":0 probably means IMX219 sensor at I2C address 0x10 on bus 5, its first output pad 0), the lower - produces some .raw images.

The format in media-ctl command should apparently be from the outputs of the v4l2-ctl --list-formats-ext. Solution sources: 1, 2.

Additionally, this command works and produces some .yuv video:

v4l2-ctl --device /dev/video3 \
		--set-fmt-video=width=320,height=240,pixelformat=RGGB \
		--stream-mmap \
		--stream-count=50 \
		--stream-to=out.yuv

@lorforlinux Not sure if I address the right person, but should perhaps the “Configuring CSI camera” tutorial be updated?

2 Likes