---
title: "Stream Live Video"
method: GET
path: "/api/v1/camera/stream"
tags: ["v1", "camera"]
---

# Stream Live Video

`GET /api/v1/camera/stream`

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.

## Response `200`

MJPEG video stream

## Other responses

- `404` — No USB cameras available
- `500` — Camera initialization or operation failed

---

[API](https://skmtc.net/reach-systems-tech/apis/reelapi-v1.md) · [All operations](https://skmtc.net/reach-systems-tech/apis/reelapi-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/reach-systems-tech/reelapi-v1/versions/1dd366a9c6a3/schema)
