MediaMTX Docs
Context: $ARGUMENTS
Quick start
- Find a config key / API endpoint / feature: -> Step 2 (
search --query <term>) - Read a how-to in full: -> Step 4 (
fetch --page <publish/X or read/X>) - Read one section: -> Step 3 (
section --page <page> --id <anchor>) - Prime cache for offline: -> Step 5 (
index)
When to use
- User asks "how do I push RTSP to MediaMTX?" or "how do I configure JWT auth?" or "what control-api endpoints exist?"
- Need to verify a MediaMTX config key or CLI flag before recommending it.
- Need the canonical mediamtx.org URL to cite.
- Before wiring up a publisher/reader, confirm the protocol endpoint and default port (RTSP 8554, RTMP 1935, HLS 8888, WebRTC 8889, SRT 8890, API 9997, Metrics 9998, pprof 9999).
- For the running-server wrapper + API calls, see the
mediamtx-serverskill.
Step 1 — Know the page catalog
uv run ${CLAUDE_SKILL_DIR}/scripts/mtxdocs.py list-pages
Top-level families:
| Family | When to pick |
|---|---|
| kickoff/* | Install, upgrade, first-run. |
| features/* | Core concepts (publish, read, record, playback, auth, hooks, metrics). |
| features/<proto>-specific-features | Per-protocol options (rtsp-specific-features, rtmp-specific-features, webrtc-specific-features, srt-specific-features). |
| features/configuration + features/control-api + features/logging + features/metrics | Operational — the knobs you actually turn in production. |
| references/configuration-file | Authoritative list of every YAML option. Start here for config questions. |
| references/control-api | Authoritative list of every /v3/* endpoint. |
| publish/<client> | How to SEND a stream in via ffmpeg / gstreamer / OBS / Python / Go / Unity / etc. |
| read/<client> | How to PLAY a stream out via ffmpeg / gstreamer / VLC / OBS / browsers / etc. |
| github-readme, github-mediamtx.yml, github-apidocs | Raw upstream files — the ground truth when mediamtx.org is behind. |