µStreamer
Lightweight and very quick server to stream MJPEG video from any V4L2 device to the net.
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Note: We couldn't fetch the official website this time, so the following is compiled from existing knowledge of the project. Some details may have changed, so please refer to the latest information in the GitHub repository.
Overview
µStreamer (ustreamer) is a lightweight, high-performance MJPEG video streaming server that pushes the picture from a V4L2 video device out over HTTP in real time. It was originally developed for PiKVM, an open-source IP-KVM solution based on the Raspberry Pi. The project focuses on keeping latency as low and frame rates as high as possible, making it easier to view and control a computer's screen remotely.
Key Features
- MJPEG over HTTP: Outputs a standard MJPEG stream that browsers and common players can open directly.
- Multithreaded JPEG encoding: Can encode in parallel across multiple CPU cores to increase the frame rate.
- Hardware encoding: On platforms such as the Raspberry Pi, it can use the hardware JPEG encoder to reduce CPU load.
- HDMI capture support: Supports DV-timings and works with HDMI-to-CSI bridge chips such as the TC358743, adapting automatically when the source resolution changes.
- Signal loss handling: When the video source is disconnected or there is no signal, it shows a notice screen instead of interrupting the service.
- mjpg-streamer compatibility: The HTTP interface is largely the same as mjpg-streamer's, so replacing an existing setup is low-cost.
- Flexible listening options: Can listen on a TCP port or a UNIX domain socket, and also supports systemd socket activation.
- Shared memory output: Can output frames to shared memory for use by other programs (for example, the components in PiKVM used for H.264/WebRTC).
Target Users and Use Cases
- Users building an IP-KVM or managing servers remotely
- Raspberry Pi and embedded Linux users who need low-latency viewing of a USB camera or HDMI capture feed
- Developers who want to replace mjpg-streamer and are after higher performance
- Scenarios such as 3D printer monitoring and lab equipment monitoring
Core Strengths
- Written in C with low resource usage, making it well suited to low-power devices such as the Raspberry Pi
- Lower latency and higher frame rates than mjpg-streamer, and more robust handling of edge cases such as capture card resolution changes
- Used in practice in the PiKVM project for a long time, so its reliability is reasonably well established
Installation and Deployment
Some Linux distributions already include a ustreamer package in their repositories, which you can install directly. You can also build it from source:
git clone --depth=1 https://github.com/pikvm/ustreamer
cd ustreamer
make
./ustreamer --help
Building requires development libraries such as libevent, libjpeg, and libbsd.
Example run (streams the picture from /dev/video0 on port 8080):
./ustreamer --device=/dev/video0 --host=0.0.0.0 --port=8080
Then open http://<device IP>:8080/ in a browser to view the picture.
Technical Requirements
- A Linux system, with a video device that supports V4L2
- A C build environment and the dependency libraries mentioned above
- To use hardware encoding, you need support from the corresponding platform (for example, the Raspberry Pi)
License
Released under the GPLv3 open-source license.
Discover more
Audiobookshelf
Audiobook and podcast server. It streams all audio formats, keeps and syncs progress across devices. Comes with open-source apps for Android and iOS.
LMS
Access your self-hosted music using a web interface.
Rygel
Rygel is a UPnP AV MediaServer that allows you to easily share audio, video, and pictures. Media player software may use Rygel to become a MediaRenderer that may be controlled remotely by a UPnP or DLNA Controller.
Snapcast
Synchronous multiroom audio server.
VideoLAN Client (VLC)
Cross-platform multimedia player client and server supporting most multimedia files as well as DVDs, Audio CDs, VCDs, and various streaming protocols.
cmyflix
cmyflix, a Netflix clone!