p1-capture-gstreamer-rtsp-6.ino
Launches a Gstreamer pipeline to capture and encode the OV5640 camera video stream in real-time.
Uses the Gstreamer 1.10 media pipeline integrated into the Vecoo OS. Configures direct v4l2 device access for the OV5640 camera. Ensure the camera module is mounted and access permissions to the /dev/video0 port are valid.
p1-capture-gstreamer-rtsp-6.ino
#!/bin/bash
# Script de lancement d'un flux RTSP depuis la caméra OV5640 sur AIWorld P1
# Nécessite Gstreamer 1.10 installé sur l'OS Vecoo
export GST_DEBUG=2
gst-launch-1.0 v4l2src device=/dev/video0 ! \
video/x-raw,format=I420,width=1280,height=720,framerate=30/1 ! \
jpegenc quality=50 ! \
rtph264pay ! \
rtsp-mount src=/stream
# Note: En production, utiliser un serveur rtsp-server complet.
# Ce pipeline est simplifié pour la démonstration de capture 720p.