Architecture

architecture

The main purpose of MediaMTX is to serve real-time media streams. Each stream is mapped to a unique Path, for instance there can be a stream on path /stream1 and a different one on /stream2.

Streams can be published and read by using a client that connects to MediaMTX and communicates through a protocol, or even by using MediaMTX as the client that connects to an existing server and pulls the stream (Static sources).

Streams ingested into MediaMTX can be passed to a recorder to record their content to disk.

Recordings produced by the recorded can be served back to users through the playback server.

Streams ingested into MediaMTX can be forwarded to other servers by using forward destinations.

Finally, MediaMTX provides some utilities that are meant to be used by administrators to monitor and control the software:

  • The Control API, that offers an API to query and change the configuration and the state of the server.
  • The Metrics server, that serves metrics in a standard format.
  • The Pprof server that allows to extract CPU and memory usage.