A high-performance streaming framework and MediaServer that supports many live and on-demand protocols with conversion between them.
Overview
ZLMediaKit is a streaming stack built in C++ that can act as a full media server or as an SDK through a C API. It targets live broadcast, surveillance, and on-demand playback scenarios where many clients and protocols must interoperate.
It supports RTSP, RTMP, HLS, HTTP-FLV, WebSocket-FLV, HTTP-TS, HTTP-fMP4, WebSocket-fMP4, MP4, WebRTC, GB28181, RTP, SRT, STUN, and TURN, including conversion among protocols. The server emphasizes low latency playback, concurrent connections, RESTful APIs, and web hooks for business logic.
Operators can deploy a standalone MediaServer without custom C++ work, embed the library in their own services, or extend behavior via the documented API and hooks. Features include cluster deployment, on-demand pull and push, recording, authentication, virtual hosts, and broad codec support across video and audio formats.
The project runs on Linux, macOS, Windows, iOS, and Android across several CPU architectures. Prebuilt binaries and Docker images are published for straightforward deployment, alongside optional companion projects for management UIs and players.
Key features
- Protocol conversion between major streaming formats
- WebRTC push and play with WHIP and WHEP
- GB28181 and RTP surveillance integration
- RESTful API and web hook events
- HLS and HTTP/WebSocket live playback
- Recording to FLV, HLS, and MP4
- On-demand streaming and cluster support
- Standard C API for embedding
Use cases
- Live streaming ingest and delivery
- Surveillance platform protocol bridging
- Low-latency WebRTC playback
- Embedded streaming in custom apps