MediaMTX

A zero-dependency media server and proxy for publishing, reading, recording, and routing real-time audio and video.

MediaMTX is a self-hosted media server and proxy designed to publish, read, record, and route real-time audio and video streams. It functions as a media router that moves streams from one endpoint to another with a focus on portability and efficiency. The software is distributed as a single executable that runs on Linux, Windows, and macOS without requiring external dependencies or interpreters, making it easy to deploy across different operating systems.

Users deploy MediaMTX as a server to handle various streaming protocols for live broadcasting or internal routing. It supports publishing streams from a wide array of tools, including OBS Studio, FFmpeg, GStreamer, and Raspberry Pi Cameras, and allows clients to read those streams via web browsers or media players like VLC. The server can be managed through a dedicated Control API and supports hot reloading of configurations, which allows administrators to update settings without disconnecting existing clients.

Key features

  • Supports publishing via Media-over-QUIC, SRT, WebRTC, RTSP, RTMP, HLS, MPEG-TS, and RTP
  • Automatic protocol conversion between different streaming formats
  • Recording of streams to disk in fMP4 or MPEG-TS formats
  • User authentication via internal, HTTP, or JWT methods
  • Stream forwarding and request proxying to external servers
  • Prometheus-compatible metrics for monitoring CPU and RAM consumption
  • External command hooks triggered by client connection or stream events
  • Ability to serve always-available streams when publishers are offline

Built with the Go programming language, the application is designed for high performance and low overhead. It is intended for developers, system administrators, and network engineers who need to manage live media traffic or create custom streaming pipelines. The inclusion of a Control API and Prometheus metrics allows it to be integrated into larger monitoring and automation frameworks, while the support for multiple paths allows the server to handle several distinct streams simultaneously.

MediaMTX serves as a versatile infrastructure component for real-time multimedia routing and distribution across diverse network environments.

Last Modified
Software TypeWeb App / Server
Platform
Last Activity15 days ago
Repository Age6 years
LicenseMIT
Open Source Alternative to
Open Source Software.io

Join our newsletter to get shiny new open source software delivered to your inbox. Unsubscribe anytime.