Skip to content

MediaMTX

Single-binary live media server that routes video streams between protocols

Permissive (OSI) · MIT
  • Self-hosted
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

81

Health

Thriving

Overview

Stars

20,760

Last commit

today

Nov 2026

Repository age

6 years

since Dec 2019

Latest version

v1.21.4

Nov 2026

Contributors

–

12 active in 90 days

Releases

22

last 12 months

Language

Go

MediaMTX is a live media server and proxy written in Go. It lets you publish, read, proxy, record and play back real-time video and audio streams. Think of it as a router that moves streams from one end to the other.

You can publish with Media-over-QUIC, SRT, WebRTC, RTSP, RTMP, HLS, MPEG-TS or RTP, using tools such as FFmpeg, GStreamer, OBS Studio or a Raspberry Pi camera. Readers can pull streams over several of the same protocols, and streams are converted automatically between them. Each stream gets its own path.

Other features include recording to fMP4 or MPEG-TS, playback of recordings, internal, HTTP or JWT authentication, a Control API, Prometheus-compatible metrics, hooks that run commands on client events, and hot configuration reload. It can keep a stream available while the publisher is offline.

It is a single executable with no dependencies for Linux, Windows and macOS, and is available as a Homebrew formula. It fits as a self-hosted alternative to commercial streaming servers and media gateways.

Who it's for

People running IP camera setups

It can turn RTSP camera feeds into WebRTC or HLS for browsers.

Skip if: You need a full video management system with motion detection and a UI.

Live streamers using OBS Studio

You can publish over RTMP, SRT or WebRTC and serve viewers in other protocols.

Skip if: You want a hosted platform with built-in audience features.

Developers building video apps

A Control API, hooks and metrics make it scriptable.

Skip if: You need transcoding, since it focuses on routing.

The problem it solves

Cameras, encoders and players often speak different streaming protocols. This server accepts a stream in one protocol and serves it in others, with recording, so you do not have to stitch tools together.

Strengths

  • Many protocols in and out, including RTSP, RTMP, SRT, WebRTC and HLS
  • Single executable with no dependencies
  • Hot reload keeps existing clients connected
  • Records to fMP4 or MPEG-TS and plays recordings back
  • Active project with 23 releases in the last year

Trade-offs

  • It routes streams and is not a full video management suite
  • Configuration is done through files and an API, with no bundled admin dashboard
  • Not every protocol pairing may suit every client

Self-host MediaMTX

Self-hostable
Yes

Frequently asked questions

Is MediaMTX free?

Yes. It is released under the MIT license.

Which platforms does it run on?

Linux, Windows and macOS, as a single executable.

Can it record streams?

Yes. It records to fMP4 or MPEG-TS and can play recordings back.

Does it support authentication?

Yes. It supports internal, HTTP and JWT authentication.

Similar tools in Media streaming servers

AzuraCast

Media streaming servers

Self-hosted web radio suite for running internet stations from a browser

4.1k 764 4 days ago Active AGPL-3.0

OvenMediaEngine

Media streaming servers

Sub-second latency live streaming server using WebRTC and LLHLS for broadcasters

3.3k 1.1k yesterday Active AGPL-3.0

Snapcast

Media streaming servers

Multiroom audio server and clients that play time-synced sound across many devices

8.1k 563 21 days ago Slowing GPL-3.0

peerflix-server

Media streaming servers

Node.js torrent streaming client with a web interface you run on your own machine or

1.3k 568 15 days ago Slowing MIT

Rapidbay

Media streaming servers

Self-hosted web app that streams torrent video to browsers, Chromecast, AppleTV and Kodi

913 56 yesterday Active MIT