v1

latestOpenAPI 3.1.0raw.githubusercontent.com2026-02-1354131442.5 KB
v1
camera

Stream Live Video

Stream live video from USB camera using MJPEG format.

This endpoint provides real-time video streaming with automatic camera selection using v4l2 detection, format optimization for best available video format, MJPEG streaming protocol via multipart HTTP response, and connection management with camera initialization and error recovery.

Streaming Protocol

The system uses Content-Type multipart/x-mixed-replace; boundary=frame to deliver Motion-JPEG compressed frames as a continuous stream with compatibility for standard web browsers and video players.

Client Integration

Web browsers can display streams using <img src="/api/camera/stream" alt="Live Camera Feed"> while video players like VLC can open network streams with the endpoint URL, ffmpeg can use it as input source for processing, and OpenCV can capture frames using VideoCapture.

get/api/v1/camera/stream

Response

MJPEG video stream