FFmpeg-based camera streaming service that provides RTSP video feed accessible via OpenCV.
sudo ./install.sh
sudo systemctl start camera-streamerThe service uses FFmpeg to capture video from /dev/video0 and streams it as an RTSP server on port 8554. The stream is encoded with H.264 for low latency and efficiency.
RTSP URL: rtsp://localhost:8554/camera
With OpenCV:
import cv2
cap = cv2.VideoCapture('rtsp://localhost:8554/camera')
ret, frame = cap.read()Service Management:
- Status:
sudo systemctl status camera-streamer - Logs:
sudo journalctl -u camera-streamer -f - Stop:
sudo systemctl stop camera-streamer