Simple, high-performance real-time video server: RTMP, WebRTC, HLS, HTTP-FLV, SRT
open sourceMITself-hostablefree
SRS (Simple Realtime Server) is an open source real-time media server for live streaming. It takes streams in and serves them out over RTMP, WebRTC, HLS, HTTP-FLV, HTTP-TS, SRT, MPEG-DASH and GB28181, converts between them (RTMP to WebRTC and back), and handles H.264, H.265, AV1, VP9, AAC, Opus and G.711. It's written in C++ on coroutines, runs on Linux and macOS across x86_64, ARM, Apple silicon, RISC-V, LoongArch and MIPS and natively on Windows x64, and is cloud native with a Docker image and Kubernetes deployment. An HTTP API and HTTP callbacks let other systems manage and react to streams. Its makers also publish Oryx, an all-in-one video solution built on it. MIT.
Problems it solves
- run my own live streaming server that OBS can push RTMP to
- convert an RTMP stream to WebRTC for low-latency playback in the browser
- serve a live stream as HLS to viewers on phones and browsers
- ingest SRT streams from field encoders and redistribute them
- self-host live video for an app without paying a streaming service per minute
- receive video from GB28181 security cameras in my own media server
Features
- RTMP, WebRTC, HLS, HTTP-FLV, HTTP-TS, SRT, MPEG-DASH and GB28181
- converts RTMP to WebRTC and WebRTC to RTMP
- H.264, H.265, AV1, VP9, AAC, Opus and G.711
- Linux and macOS on x86_64, ARMv7, AArch64, Apple M1, RISC-V, LoongArch and MIPS; Windows x64
- Docker image and Kubernetes deployment
- HTTP API and HTTP callbacks
- HTML5 srs-player for HTTP-FLV and HLS
Capabilities
| Has an API | plan not known |
|---|---|
| Sends webhooks | plan not known |
Alternatives
The same job
These do what SRS does.
- Owncast Open source software for running your own live stream
- MediaMTX Ready-to-use, open source, live media router
- Restreamer Self-hosted live streaming server with a web UI and FFmpeg API
- OvenMediaEngine Self-hosted sub-second latency live streaming server
- go2rtc Ultimate camera streaming application with support for dozens formats and protocols