# 使用 Homebrew, Nix, scoop, winget 安装 mediamtx

查看 mediamtx 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:mediamtx
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mediamtx
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mediamtx
```

  证据: nixpkgs package indexes: pkgs/by-name/me/mediamtx/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/mediamtx
```

  证据: Scoop official bucket manifest trees: bucket/mediamtx.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id bluenviron.mediamtx -e
```

  证据: Windows Package Manager source index: bluenviron.mediamtx from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:mediamtx
- **软件包管理器:** Homebrew
- **版本:** 1.19.3
- **来源摘要:** Zero-dependency real-time media server and media proxy
- **主页:** <https://mediamtx.org>
- **仓库:** <https://github.com/bluenviron/mediamtx>
- **最后更新:** 2026-07-29T17:04:52+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mediamtx (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.19.3
## 项目历史与用法

MediaMTX is a zero-dependency live media server and proxy for publishing, reading, proxying, recording, and playing back real-time audio and video streams. The official README describes it as a media router focused on efficiency and portability.

### 项目历史

The official GitHub repository was created in December 2019 and its earliest GitHub releases are v0.1.x from December 2019. The project evolved from RTSP-focused roots into a broader real-time media router covering RTSP, RTMP, HLS, WebRTC, SRT, RTP, MPEG-TS, and Media-over-QUIC.

The project is intentionally operational rather than framework-heavy: the README emphasizes a single executable with no external dependencies on Linux, Windows, and macOS, while the documentation exposes configuration, authentication, recording, metrics, hooks, control API, proxying, and protocol-specific behavior.

### 采用历史

MediaMTX became popular with self-hosters, camera users, home automation stacks, streaming experiments, and infrastructure teams that need a small relay between cameras, browsers, FFmpeg, GStreamer, OBS, VLC, and custom clients. Its official repository shows substantial public adoption, and the package input lists Homebrew, Nix, Scoop, and Winget packages.

The project's adoption is helped by protocol bridging: streams can be published with one protocol and read with another. That makes it useful as glue in environments where cameras, browsers, media tools, and monitoring systems do not all speak the same media protocol.

### 使用方式

Users typically run the `mediamtx` binary with a `mediamtx.yml` file, edit configuration directly, override parameters with `MTX_` environment variables, or use the control API. The official configuration documentation says the release bundle includes the configuration file and that changes can be hot-reloaded when possible.

### 为什么软件包爱好者会关心

For package nerds, MediaMTX is a compact alternative to assembling a larger streaming stack. A single packaged binary gives users RTSP, RTMP, WebRTC, SRT, HLS, recording, metrics, authentication, and proxying without installing a pile of media daemons.

### 时间线

- 2019: Repository created and v0.1.0 released.
- 2021: The project is widely used under the earlier rtsp-simple-server name in Docker and streaming workflows.
- 2023: Executable and configuration migration to MediaMTX-era names is reflected in maintainer support discussions and user issues.
- 2026: Active releases continue, with the repository showing thousands of commits and broad protocol support.

### Related projects

- MediaMTX integrates with FFmpeg, GStreamer, OBS Studio, VLC, WebRTC clients, SRT clients, RTSP cameras, RTMP clients, HLS readers, and Prometheus-compatible monitoring.

### 来源

- <https://api.github.com/repos/bluenviron/mediamtx>
- <https://api.github.com/repos/bluenviron/mediamtx/releases>
- <https://github.com/bluenviron/mediamtx>
- <https://mediamtx.org/docs/features/configuration>


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: mediamtx.yml
## 其他软件包管理器记录

- Nix - mediamtx: normalized package name match | nixpkgs package indexes: pkgs/by-name/me/mediamtx/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - main/mediamtx: normalized package name match | Scoop official bucket manifest trees: bucket/mediamtx.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - bluenviron.mediamtx: normalized package name match | Windows Package Manager source index: bluenviron.mediamtx from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/mediamtx.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mediamtx.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
