Self-host SRS
v6.0-r3Realtime media server for RTMP, WebRTC, HLS, SRT and DASH
docker run --rm -it -p 1935:1935 -p 1985:1985 -p 8080:8080 ossrs/srs:5- Stars
- 29 433
- Ports
- 1935 (RTMP live streaming server), 1985 (HTTP API server (also WebRTC APIs)), 8080 (HTTP live streaming server: HTTP-FLV, HLS, players), 8000 (WebRTC media (UDP)), 8088 (Optional HTTPS live streaming server)
ossrs/srsWhat is SRS?
SRS is an MIT-licensed C++ realtime media server for building live-video and WebRTC services. It accepts streams over RTMP, SRT, WebRTC (WHIP/WHEP) and MPEG-TS over UDP, then re-delivers the same stream over RTMP, HTTP-FLV, HLS, MPEG-DASH, WebRTC and SRT, and can act as a GB28181 camera gateway. Streams can be transcoded and recorded to disk (DVR), an HTTP API exposes server and stream state, and HTTP callbacks let your own backend authorize or reject every publish and play request. Capacity grows with origin/edge clusters, and the project also ships Helm and Kubernetes deployment paths. Self-hosting is normally one container with the streaming ports published, or a ./configure plus make build from source on Linux and macOS; HTTPS can be served natively or through Nginx or Caddy. Version 6.0 is the stable branch, while 7.0 and 8.0 are labelled unstable, and the Windows port still has unresolved issues.
SRS alternatives
waterbus-rsWaterbus is a self-hosted, open-source WebRTC SFU media server in Rust for low-latency real-time video, audio, and data streaming with simulcast and egress.Comparewaterbus-rs with SRS
MistServerMistServer is a self-hosted, open-source streaming media server for OTT with multi-protocol support including RTMP, SRT, RIST, WebRTC, RTSP, and HTTP.CompareMistServer with SRS
livegoSelf-hosted, open-source live video streaming server written in pure Go that accepts RTMP pushes and replays them over HLS, HTTP-FLV and RTMP.Comparelivego with SRS
TorrServerTorrent stream serverCompareTorrServer with SRS
avideoSelf-hosted, open-source video platform for on-demand libraries and live broadcasts, with HLS delivery, an encoder, plugins, and paid monetization options.Compareavideo with SRS
GanymedeSelf-hosted platform for saving Twitch VODs and live streams with synchronized chat, OIDC login, and Docker Compose deployment.CompareGanymede with SRS
mirotalkbroMiroTalk BRO is a self-hosted, open-source WebRTC platform for one-to-many live streaming with P2P and SFU modes, built for webinars and events.Comparemirotalkbro with SRS
µStreamerOpen-source, self-hosted MJPEG-HTTP streamer that broadcasts video from any V4L2 webcam or HDMI capture device with multithreaded and Raspberry Pi hardware JPEG encoding.CompareµStreamer with SRS
Should you self-host SRS?
SRS scores 79/100 on selfhost.directory (how scoring works) and ranks #2 of 119 in Media Server. It has 29 433 GitHub stars, +119 in the last 30 days.
It shipped 15 stable releases in the past year. The latest, v7.0-a4, came out on 31 October 2026. New versions land roughly every 2 days.
Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is MIT-licensed and written mostly in C++.
Its closest alternative on selfhost.directory is Jellyfin (88/100, 59 105 stars). It scores higher overall, so compare the two before you pick. See SRS vs Jellyfin side by side.
Features
- DVR recordingDynamic DVR rules are not supported; on_publish/on_hls hooks are used instead.
- Edge/origin cluster scalingEdge only supports live protocols such as RTMP and FLV; HLS/DVR/RTC belong on the origin.
- GB28181 camera accessGB work was moved to the separate srs-gb28181 repository; SRS does not aim at full GB coverage.
- HLS and DASH packaging
- HTTP API
- HTTP callbacks for auth and hooks
- Kubernetes deployment
- Low Latency Streaming
- Multi-codec support
- Multi-protocol live streaming gateway
- RTMP to WebRTC conversion
- SRT ingest and playback
- TranscodingAudio transcoding is not enabled by default.
- WebRTC video chat and low-latency playback
- WHIP/WHEP endpoints
SRS README
SRS/8.0 (Free) is a simple, high-performance, AI-driven real-time media server. It supports RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181 on Linux and macOS across x86_64, ARMv7, AArch64, Apple M1, RISC-V, LoongArch, and MIPS architectures, and natively on Windows x64. Supported codecs include H.264, H.265, AV1, VP9, AAC, Opus, and G.711. See the complete list of features.
FAQ
GB28181: What about GB28181 status and roadmap?
The GB work was moved out to its own repository, srs-gb28181, and SRS only treats GB as an access protocol rather than a full implementation.
HTTP2: How to do HTTP2-FLV or HTTP2 HLS, etc.?
It does not - HTTP/2 and HTTP/3 are intentionally left out in favour of reverse proxies that convert protocols, and SRS implements a simple HTTP 1.0 protocol for its API and callbacks.
HTTPS: How to use HTTPS services, API, Callback, Streaming, WebRTC, etc.?
SRS offers HTTPS for the API, for callbacks and for live streaming, and you can alternatively front it with an Nginx or Caddy HTTPS reverse proxy.
Secure HTTP API: How to do API authentication, API security, etc.?
The recommended approach is to put a Nginx proxy in front of the API, or to enforce authentication through HTTP callbacks that call your business system when a stream is published or played.
CORS: How to setup cross-domain access for HTTP APIs or streams?
It is built into SRS since 3.0 and enabled by default, so no extra HTTP proxy is needed for cross-domain API or stream access.
Edge HLS/DVR/RTC: Does Edge Cluster support for HLS/DVR/RTC, etc.?
No - the Edge cluster is meant for live streaming protocols like RTMP and FLV, while HLS, DVR and RTC belong on the origin server.
CPU and OS: What's the CPU architecture and OS operating system supported by SRS?
Common CPU architectures are covered (x86_64/amd64, armv7/aarch64/Apple M1, MIPS, RISC-V, Loongson loongarch) and the usual operating systems: Linux such as CentOS and Ubuntu, macOS, and Windows.
More in Media Server
StashSelf-hosted, open-source media organizer in Go that indexes, tags and streams your video and image collection, with scraper metadata, plugins and DLNA.
streamkitStreamKit is a self-hosted, open-source real-time media engine for building composable audio/video pipelines via web UI or YAML.
stremio-dockerA single-container Docker package for running Stremio media streaming on your own hardware, with built-in web player, ffmpeg transcoding, and automatic HTTPS.
stremio-jellyfin-bridgeSelf-hosted, open-source Stremio addon bridging Jellyfin library and serving custom subtitles by IMDb ID on your LAN with zero-config HTTPS.
StumpStump is a free, open-source, self-hosted comics, manga and ebook server with OPDS v1.2/v2.0, readers for EPUB, PDF, CBZ and CBR, and multi-user access control.
subaticSelf-hosted video hosting platform with HLS streaming, S3-compatible storage, and transcoding pipeline. Open-source alternative to commercial video platforms.
SUB/WAVESelf-hosted internet radio with AI DJ picking tracks from your library. One shared Icecast stream where every listener hears the same audio simultaneously.
SuperstreamerSelf-hosted, open-source video streaming platform that handles transcoding, packaging, ad insertion, and playback with HLS. Built for developers who need video tooling.
Suwayomi-ServerManga reader server running Tachiyomi/Mihon extensions with library management, automated updates, OPDS support, tracking via MyAnimeList, AniList, MangaUpdates
Swing Music Swing Music is a beautiful, self-hosted music player for your local audio files. Like a cooler Spotify ... but bring your own music.
SwingMusicSelf-hosted, open-source music streaming server for your local audio files, with daily mixes, metadata normalization, multi-user support and an Android client.
syncloungeSyncLounge is a self-hosted, open-source tool that synchronizes Plex playback across multiple clients in different locations for shared viewing.
0 comments