Back to services

MediaMTX

Ready-to-use Media-over-QUIC / SRT / WebRTC / RTSP / RTMP / LL-HLS / MPEG-TS / RTP live media server and media proxy that allows to read, publish, proxy, record and playback real-time video and audio streams.

View alternatives to MediaMTX
Suggest edit
Open source
Self-hostable
MIT
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Note: The official website content could not be retrieved this time. The following is compiled from known information about the project. For specific details, please refer to mediamtx.org and the GitHub repository (bluenviron/mediamtx).

Introduction

MediaMTX is an open-source real-time media server and media proxy written in Go and released under the MIT license. The project was originally called rtsp-simple-server and is now maintained by bluenviron. It has no dependencies and works out of the box. Users can publish streams to it and read streams from it, and the server automatically converts between different protocols.

Key Features

  • Multi-protocol support: Supports SRT, WebRTC, RTSP, RTMP, HLS, MPEG-TS, RTP and more. A stream published with one protocol can be watched with another.
  • Publishing and reading: Can receive streams from sources such as cameras, encoders, OBS, FFmpeg and GStreamer, and distribute them to multiple clients.
  • Proxy: Can pull streams from other servers or network cameras and forward them.
  • Recording and playback: Can record streams to disk and retrieve the recordings through a playback server.
  • Authentication: Usernames and passwords can be set in the configuration, or authentication can be delegated to an external HTTP service or JWT.
  • Management and monitoring: Provides a control API and Prometheus metrics, and supports running external commands (hooks) when events occur, such as a stream becoming ready or being read.
  • Configuration hot reload: Changes to the configuration file take effect without a restart.
  • Raspberry Pi camera: Can publish a Raspberry Pi camera directly as a video source.

Target Users and Use Cases

Suitable for developers, operations engineers and hobbyists who need to handle real-time audio and video, for example:

  • Watching the RTSP stream of an IP camera in a browser through WebRTC or HLS
  • Building a self-hosted live streaming and distribution service
  • Forwarding and recording streams for home surveillance or NVR systems
  • Relaying and bridging between different devices and protocols

Core Strengths

  • A single small binary with no external dependencies
  • Broad protocol coverage, with conversion done automatically
  • Cross-platform: supports Linux, Windows, macOS and ARM devices
  • Free and open source with an active community, and often integrated by projects such as Frigate

Installation and Deployment

  1. Standalone binary: Download the archive for your platform from GitHub Releases, extract it and run mediamtx directly. The configuration file is mediamtx.yml in the same directory.
  2. Docker:
docker run --rm -it --network=host bluenviron/mediamtx

After it starts, you can publish a stream to rtsp://localhost:8554/mystream with FFmpeg or OBS, then pull it and watch it with a player such as VLC or a browser.

Technical Requirements

  • Low resource usage; it can run on embedded devices such as the Raspberry Pi
  • When using WebRTC, access in complex network environments may require configuring ICE/STUN/TURN and the corresponding ports
  • The server itself does not handle transcoding. If you need transcoding, you can use it together with FFmpeg