Using with Raspberry Pi

Raspberry Pi CM4 compute module

Quick guide how to use camera module with Raspberry Pi compute module and IO board. Raspberry Pi software is in active development thus changes fairly quickly. We will touch preparation procedure very briefly.

Only compute modules support cameras without crypto chip.

Prepare board


Install OS
Prepare camera
sudo wget -O /boot/dt-blob.bin
sudo reboot
vcgencmd get_camera
Recipe #1 - show video in console as ASCII text
raspivid -t 0 -o - | gst-launch-1.0 fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! decodebin ! videoconvert ! aasink
Recipe #2 - stream video over network
raspivid -o - -t 9999999 |cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264
set PATH=C:\gstreamer\1.0_1.18.3\bin\;C:\gstreamer\1.0_1.18.3\lib\gstreamer-1.0\;C:\gstreamer\1.0_1.18.4\libexec\gstreamer-1.0\
gst-launch-1.0 rtspsrc location=rtsp:// latency=10 ! decodebin ! timeoverlay ! videoscale ! videoscale ! video/x-raw,width=1280,height=720 ! autovideosink
Demo video with 40x motorized zoom lens

For more details check blog post


Revision #4
Created 3 May 2022 05:33:40 by Saulius
Updated 3 May 2022 06:18:41 by Saulius