# MediaMTX

> Ready-to-use, open source, live media router

Source: https://talira.ai/catalog/mediamtx-9ygbr0gr
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Infrastructure
- Categories: [media / video / live streaming / servers](https://talira.ai/categories/media/video/live-streaming/servers), [communication / realtime / webrtc](https://talira.ai/categories/communication/realtime/webrtc), [self hosted](https://talira.ai/categories/self-hosted)
- Platforms: linux, windows, macos, docker[^10][^12]
- Licence: MIT[^8][^9]
- Pricing: Free and open source[^8][^9]
- Free tier: yes[^8][^9]
- Self-hostable: yes[^10]
- API: yes[^11]
- Backed by: [bluenviron](https://talira.ai/orgs/bluenviron.md)
- Creator: aler9 (Alessandro Ros)

MediaMTX is a zero-dependency live media server and media proxy, a single Go binary that publishes, reads, proxies, forwards, records and plays back real-time video and audio streams. A stream published with one protocol (Media-over-QUIC, SRT, WebRTC with WHIP and WHEP, RTSP, RTMP, HLS, MPEG-TS or RTP) can be read with any other, converted automatically without re-encoding, from sources such as IP cameras, Raspberry Pi cameras, [OBS Studio](https://talira.ai/catalog/obs-studio-rhajtxmy.md), [FFmpeg](https://talira.ai/catalog/ffmpeg-66tj4hkq.md), GStreamer and web browsers, and played in [VLC](https://talira.ai/catalog/vlc-media-player-t172c462.md) or a browser. It records to fMP4 or MPEG-TS and serves recordings back over HTTP, keeps always-available streams running when the publisher drops, authenticates readers and publishers with users in its config file, an HTTP endpoint or JWTs (for example from [Keycloak](https://talira.ai/catalog/keycloak-jw9hhr96.md)), runs hooks when clients connect, publish or read, and has a Control API and [Prometheus](https://talira.ai/catalog/prometheus-198e2rss.md) metrics. It was called rtsp-simple-server before, is MIT licensed, and ships as binaries for Linux, Windows and [macOS](https://talira.ai/catalog/macos-8swyggxb.md) and as [Docker](https://talira.ai/catalog/docker-engine-9442r3nw.md) images with optional FFmpeg and Raspberry Pi camera support.

## Links

- Website: https://mediamtx.org/
- GitHub: https://github.com/bluenviron/mediamtx
- Docs: https://mediamtx.org/docs/kickoff/introduction

## Ways to install

### On your own server

- [Unraid Community Applications](https://talira.ai/catalog/unraid-community-applications-9jw5an1a.md): <https://ca.unraid.net/apps/mediamtx-16t1f2x0c7crwt>[^1]
- [YunoHost](https://talira.ai/catalog/yunohost-f9asga4s.md): <https://apps.yunohost.org/app/mediamtx>[^2]
- [Proxmox VE Helper-Scripts](https://talira.ai/catalog/proxmox-ve-helper-scripts-3h36wtyj.md): <https://community-scripts.org/scripts/mediamtx>[^3]

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/mediamtx>[^4]

## Problems it solves

- restream my IP camera's RTSP feed so people can watch it in a web browser without a plugin
- turn an RTSP camera stream into WebRTC so viewers get sub-second latency in the browser
- a self-hosted RTMP server so I can stream from OBS to my own machine instead of Twitch
- receive SRT streams from remote encoders and serve them to our website as HLS
- convert an RTMP live stream into HLS so it plays on iPhones
- my camera allows only a couple of RTSP connections, so I need a proxy that lets many clients watch it
- record our camera streams to disk and play back a chosen time range later over HTTP
- publish a Raspberry Pi camera as a low-latency stream on my local network
- keep a placeholder video playing when the live source drops so viewers don't get disconnected
- send video from a browser tab to my own server with WHIP and play it back with WHEP
- forward a live stream from my own server to YouTube and Twitch
- a lightweight media server in a single binary with no dependencies for a small embedded device
- control who can publish or watch each live stream using JWTs from our identity server
- run a script whenever a camera starts publishing or a viewer connects to a stream
- export live stream viewer and publisher counts to Prometheus
- spread live stream viewers across several servers behind a load balancer
- a free self-hosted alternative to Wowza for routing live video between protocols
- pull MPEG-TS or RTP from a broadcast encoder and make it watchable in a browser
- read a live camera stream into Python and OpenCV from a local streaming server
- start an FFmpeg stream only when someone actually requests that stream
- try Media over QUIC live streaming with a real server

## Features

- publish streams with Media-over-QUIC, SRT, WebRTC (WHIP), RTSP, RTMP, HLS, MPEG-TS and RTP
- read streams with Media-over-QUIC, SRT, WebRTC (WHEP), RTSP, RTMP and HLS (including Low-Latency HLS)
- automatic conversion between protocols without re-encoding
- several streams at once on separate paths
- hot reloading of the configuration without disconnecting clients
- always-available streams that keep playing when the publisher is offline
- recording to disk in fMP4 or MPEG-TS, and playback of recordings over HTTP
- authentication with users in the config file, an external HTTP server or JWTs with a JWKS endpoint
- per-path permissions for publish, read, playback, API, metrics and pprof, with IP restrictions
- forwarding streams to other servers, including YouTube and Twitch
- proxying requests to other servers, and read replicas for horizontal scaling
- hooks that run external commands when clients connect, disconnect, publish or read
- on-demand publishing that starts a command only when a client requests the path
- Control API to manage paths and see connections
- Prometheus-compatible metrics and pprof performance monitoring
- Raspberry Pi camera and generic webcam ingest
- single executable for Linux (amd64, arm64, armv7, armv6), Windows and macOS with no dependencies
- Docker images with or without FFmpeg and Raspberry Pi camera support
- release binaries with SHA256 checksums attested on Sigstore through GitHub Attestations

## Limitations

- Doesn't transcode or re-encode streams itself: changing a stream's codec, format or bitrate needs FFmpeg or GStreamer run alongside it[^5][^6]
- No user database or sign-up of its own: users and permissions are written in the configuration file, or checked by an external HTTP or JWT auth server[^7]

## Capabilities

- Has an API: plan not known

## Trust

Overall: 0.40 out of 1.
Signals: backing 0.50, extensibility 0.20.

- backed by bluenviron
- created by aler9 (Alessandro Ros)

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Owncast](https://talira.ai/catalog/owncast-3gq13pc7.md): Open source software for running your own live stream
- [OvenMediaEngine](https://talira.ai/catalog/ovenmediaengine-tz77xa9y.md): Self-hosted sub-second latency live streaming server
- [Restreamer](https://talira.ai/catalog/restreamer-8tc1wa3y.md): Self-hosted live streaming server with a web UI and FFmpeg API
- [Janus WebRTC Server](https://talira.ai/catalog/janus-webrtc-server-0sc0g708.md): The general purpose WebRTC server
- [go2rtc](https://talira.ai/catalog/go2rtc-9zbjs72c.md): Ultimate camera streaming application with support for dozens formats and protocols
- [SRS](https://talira.ai/catalog/srs-caf7wf33.md): Simple, high-performance real-time video server: RTMP, WebRTC, HLS, HTTP-FLV, SRT

## Sources

[^1]: https://ca.unraid.net/api/apps/mediamtx-16t1f2x0c7crwt (checked 20 Nov 2026)
[^2]: https://app.yunohost.org/default/v3/apps.json (checked 21 Nov 2026)
[^3]: https://github.com/community-scripts/ProxmoxVE/blob/main/ct/mediamtx.sh (checked 21 Nov 2026)
[^4]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^5]: https://mediamtx.org/docs/features/remuxing-reencoding-compression (checked 20 Nov 2026)
[^6]: https://mediamtx.org/docs/features/scalability (checked 20 Nov 2026)
[^7]: https://mediamtx.org/docs/features/authentication (checked 20 Nov 2026)
[^8]: https://github.com/bluenviron/mediamtx/blob/main/LICENSE (checked 20 Nov 2026)
[^9]: https://mediamtx.org/docs/misc/license (checked 20 Nov 2026)
[^10]: https://mediamtx.org/docs/kickoff/install (checked 20 Nov 2026)
[^11]: https://mediamtx.org/docs/features/control-api (checked 20 Nov 2026)
[^12]: https://mediamtx.org/docs/kickoff/introduction (checked 20 Nov 2026)
