Set up a self-hosted live streaming server for IP cameras, drones, or home lab without a complex media platform.
Convert a camera's RTSP stream to HLS for web browsers and WebRTC for low-latency viewing simultaneously.
Record live streams to disk in fMP4 or MPEG-TS format and play them back on demand.
Re-stream a local camera feed to YouTube or other platforms using RTMP output.
Requires Docker and FFmpeg/GStreamer dependencies; initial stream routing setup needs protocol endpoint configuration.
MediaMTX is a ready-to-use media server and media proxy for routing live video and audio streams. Think of it as a traffic router for video: you send a stream in using one protocol and other viewers can receive it using a completely different protocol. For example, a camera might publish an RTSP stream, and MediaMTX can simultaneously serve that same stream as HLS to a web browser, WebRTC for low-latency viewing, and RTMP to re-stream to YouTube, all at once without any additional configuration. It supports publishing and reading streams via SRT, WebRTC, RTSP, RTMP, HLS, MPEG-TS, and RTP. Sources can include FFmpeg, GStreamer, OBS Studio, Raspberry Pi cameras, web browsers, and custom code in Python or Go. It also records streams to disk in fMP4 or MPEG-TS format, plays back recorded content, proxies requests to other servers, supports user authentication via internal credentials, HTTP, or JWT tokens, and exposes metrics in Prometheus format for monitoring. You would use MediaMTX if you need to set up a self-hosted live streaming server, for IP cameras, drones, live events, or a home lab, without needing a complex media platform. It ships as a single binary with no external dependencies, runs on Linux, Windows, and macOS, and can be deployed as a Docker container. It is written in Go.
Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.