µStreamer serves MJPEG video from V4L2 capture devices over HTTP. Browsers and common players can view the stream; it is used in PiKVM for HDMI and VGA capture.
Overview
µStreamer is a compact server that reads video from any V4L2 device and publishes it as MJPEG over the network. Major browsers and players such as mplayer and VLC can play the format natively.
It is built for PiKVM, which streams VGA and HDMI screencast hardware at high resolution and frame rate. Compared with mjpg-streamer, it offers multithreaded JPEG encoding, hardware encoding on Raspberry Pi, graceful handling when a device disconnects, optional frame dropping for static HDMI scenes, UNIX domain socket streaming, systemd socket activation, and a built-in HTTP file server.
You can run it from packages or a built binary, tune device and listen options on the command line, and put it behind Nginx with buffering disabled to cut latency. Docker examples cover Raspberry Pi HDMI capture. Optional Janus integration adds H.264 and WebRTC streaming.
For live webcam control over HTTP, the source notes that mjpg-streamer may be preferable; for high image quality and frame rate, µStreamer is aimed at capture workloads like KVM video.
Key features
- MJPEG streaming from V4L2 devices
- Multithreaded JPEG encoding
- Raspberry Pi hardware encoding
- Drop duplicate frames to save bandwidth
- UNIX domain socket streaming
- Built-in HTTP server for files
- Systemd socket activation
- mjpg-streamer API compatibility
Use cases
- PiKVM HDMI and VGA capture streaming
- Raspberry Pi camera MJPEG feeds
- Remote viewing of capture cards in a browser
- Low-latency video behind Nginx
- WebRTC via Janus integration