https://www.raspberrypi.com/documentation/computers/camera_software.html
測試udp, tcp, GStreamer, rtp, Gstreamer的即時性最好
install gstreamer on ubuntu
apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
create GStreamer server:
rpicam-vid -t 0 -n --inline -o - | gst-launch-1.0 fdsrc fd=0 ! udpsink host=localhost port=8555
client:
gst-launch-1.0 udpsrc address=localhost port=8555 ! h264parse ! v4l2h264dec ! autovideosink
test record:
Learn More →