MediaMTX ingests and delivers live audio and video over SRT, WebRTC, RTSP, RTMP, HLS, and related protocols. It can proxy, record, and convert streams between formats.
Overview
MediaMTX is a live media server and proxy described as a media router that moves real-time streams between publishers and viewers. The single-binary design targets portability across Linux, Windows, and macOS without extra runtime dependencies.
Publishers can send streams with Media-over-QUIC, SRT, WebRTC, RTSP, RTMP, HLS, MPEG-TS, or RTP using tools such as FFmpeg, GStreamer, OBS Studio, browsers, or camera integrations noted in the feature list. Viewers can consume the same paths through a similar range of protocols and clients.
The server can host multiple paths concurrently, convert between protocols automatically, keep streams available when publishers drop, reload configuration without disconnecting clients, and record to disk as fMP4 or MPEG-TS with later playback. Authentication options include internal accounts, HTTP, or JWT validation.
Operators can forward or proxy to upstream servers, manage the process through a control API, export Prometheus-compatible metrics, and run hooks when clients connect, disconnect, read, or publish.
Key features
- Multi-protocol publish and read paths
- Automatic cross-protocol conversion
- Hot configuration reload
- fMP4 and MPEG-TS recording
- Internal, HTTP, or JWT authentication
- Prometheus metrics export
- Control API for administration
- Publisher-offline stream fallback
Use cases
- Bridging OBS output to many protocols
- On-prem live stream relay and proxy
- Recording surveillance or event feeds
- WebRTC or SRT camera distribution