MediaMTX

MediaMTX

Docker app from grtgbln's Repository

Overview

MediaMTX is a ready-to-use and zero-dependency real-time media server and media proxy that allows to publish, read, proxy, record and playback video and audio streams. It has been conceived as a "media router" that routes media streams from one end to the other.

MediaMTX

Website Test Lint CodeCov Release Docker Hub


MediaMTX is a ready-to-use and zero-dependency live media server and media proxy that allows to publish, read, proxy, record and playback real-time video and audio streams. It has been conceived as a "media router" that routes media streams from one end to the other, with a focus on efficiency and portability.

Features

  • Publish streams to the server with Media-over-QUIC, SRT, WebRTC, RTSP, RTMP, HLS, MPEG-TS, RTP, using FFmpeg, GStreamer, OBS Studio, Python , Golang, Unity, Web browsers, Raspberry Pi Cameras and more.
  • Read streams from the server with Media-over-QUIC, SRT, WebRTC, RTSP, RTMP, HLS, using FFmpeg, GStreamer, VLC, OBS Studio, Python , Golang, Unity, Web browsers and more.
  • Streams are automatically converted from a protocol to another
  • Serve several streams at once in separate paths
  • Reload the configuration without disconnecting existing clients (hot reloading)
  • Serve always-available streams even when the publisher is offline
  • Record streams to disk in fMP4 or MPEG-TS format
  • Playback recorded streams from disk
  • Authenticate users with internal, HTTP or JWT authentication
  • Forward streams to other servers
  • Proxy requests to other servers
  • Control the server through the Control API
  • Extract metrics from the server in a Prometheus-compatible format
  • Monitor performance to investigate CPU and RAM consumption
  • Run hooks (external commands) when clients connect, disconnect, read or publish streams
  • Compatible with Linux, Windows and macOS, does not require any dependency or interpreter, it's a single executable
  • ...and many others.

Download Statistics

4,588,629
Total Downloads
605,437
This Month
499,715
Avg / Month

Total Downloads Over Time

Loading chart...

Details

Repository
bluenviron/mediamtx:latest
Last Updated2026-09-05
First Seen2025-04-25

Runtime arguments

Network
bridge
Privileged
false

Template configuration

RTP PortPorttcp

Container Port: 8000

Target
8000
Default
8000
Value
8000
RTCP PortPorttcp

Container Port: 8001

Target
8001
Default
8001
Value
8001
Multicast RTP PortPorttcp

Container Port: 8002

Target
8002
Default
8002
Value
8002
Multicast RTCP PortPorttcp

Container Port: 8003

Target
8003
Default
8003
Value
8003
RTSP PortPorttcp

Container Port: 8554

Target
8554
Default
8554
Value
8554
RTSPS PortPorttcp

Container Port: 8322

Target
8322
Default
8322
Value
8322
RTMP PortPorttcp

Container Port: 1935

Target
1935
Default
1935
Value
1935
RTMPS PortPorttcp

Container Port: 1936

Target
1936
Default
1936
Value
1936
HLS PortPorttcp

Container Port: 8888

Target
8888
Default
8888
Value
8888
WebRTC PortPorttcp

Container Port: 8889

Target
8889
Default
8889
Value
8889
WebRTC Local UDP PortPortudp

Container Port: 8189

Target
8189
Value
8189
SRT PortPortudp

Container Port: 8890

Target
8890
Default
8890
Value
8890
Playback PortPorttcp

Container Port: 9996

Target
9996
Default
9996
Value
9996
API PortPorttcp

Container Port: 9997

Target
9997
Default
9997
Value
9997
Metrics PortPorttcp

Container Port: 9998

Target
9998
Default
9998
Value
9998
PPROF PortPorttcp

Container Port: 9999

Target
9999
Default
9999
Value
9999
HostsVariable

Add your server's IP address here.

Target
MTX_WEBRTCADDITIONALHOSTS
Default
SERVER_IP_ADDRESS
Value
SERVER_IP_ADDRESS
RTSP Transport ProtocolVariable

Transport protocol for RTSP. Not recommended to change.

Target
MTX_RTSPTRANSPORTS
Default
tcp
Value
tcp