# 使用 Homebrew 安装 media-control

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

## 安装

```sh
sudo av install brew:media-control
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install media-control
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:media-control
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/media-control>
- **版本:** 0.7.6
- **来源摘要:** Control and observe media playback from the command-line
- **主页:** <https://github.com/ungive/media-control>
- **仓库:** <https://github.com/ungive/media-control>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://github.com/ungive/media-control.git>
- **最后更新:** 2026-05-11T16:09:36Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- media-control (cli)
- media-control (别名)

## 构建依赖

- cmake

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.7.6
- 管理器更新时间: 2026-05-11
- 本地数据: OK
- 上游仓库: https://github.com/ungive/media-control
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

media-control is a macOS command-line utility for observing and controlling media playback. Its README describes one-shot now-playing queries, real-time streams, and playback actions such as toggling play and pause.

### 项目历史

The official repository is a compact CMake-based project with a `mediaremote-adapter` submodule. Public tags and releases show active versioned releases from at least v0.5.1 in July 2025 through v0.7.6 in May 2026.

The README states that the tool is available for all macOS versions, including macOS Tahoe, and centers the project around scriptable access to now-playing state, artwork, playback position, and transport controls.

### 采用历史

The README's primary installation path is Homebrew, using `brew install media-control`. It also includes advanced examples such as xbar menu-bar integration and shell pipelines for saving cover artwork, which is a strong signal that the project is meant for everyday automation rather than only library embedding.

### 使用方式

Common commands include `media-control get` for one-time now-playing information, `media-control get -h` for human-readable output, `media-control stream` for real-time updates, and `media-control toggle-play-pause` for playback control. Examples also cover extracting artwork data, watching song changes, tracking timeline position, and pausing when a track ends.

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

For package-manager users, media-control is a tidy macOS automation bridge: a single CLI wraps media playback state that would otherwise require private frameworks or app-specific scripting. That makes it useful in status bars, shell scripts, and lightweight desktop automation.

### 时间线

- 2025: v0.5.1 tag appears in the official repository.
- 2025: v0.7.0 tag starts the 0.7 release line.
- 2026: v0.7.6 is released with streamed artwork MIME type support.

### Related projects

- mediaremote-adapter, xbar, Spotify, jq, macOS MediaRemote.

### 来源

- <https://github.com/ungive/media-control#readme>
- <https://github.com/ungive/media-control/releases>
- <https://github.com/ungive/media-control/tags>


## 安全说明

没有找到 media-control 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** media-control
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Requirements:** macos
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://pkg.so/zh-hans/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [nowplaying-cli](https://pkg.so/zh-hans/brew/nowplaying-cli/) - Shares pkgdb curated category or tags: cli, macos, media.
- [imageoptim-cli](https://pkg.so/zh-hans/brew/imageoptim-cli/) - Shares pkgdb curated category or tags: automation, cli, macos, media.
- [aom](https://pkg.so/zh-hans/brew/aom/) - Shares pkgdb curated category or tags: cli, media.
- [yt-dlp](https://pkg.so/zh-hans/brew/yt-dlp/) - Shares pkgdb curated category or tags: cli, media.
- [svt-av1](https://pkg.so/zh-hans/brew/svt-av1/) - Shares pkgdb curated category or tags: cli, media.
- [handbrake](https://pkg.so/zh-hans/brew/handbrake/) - Shares pkgdb curated category or tags: cli, media.
- [gallery-dl](https://pkg.so/zh-hans/brew/gallery-dl/) - Shares pkgdb curated category or tags: cli, media.
- [media-info](https://pkg.so/zh-hans/brew/media-info/) - Shares pkgdb curated category or tags: cli, media.
- [flac123](https://pkg.so/zh-hans/brew/flac123/) - Local package facts share a topical domain. Shared terms: cli, command-line, line, media, playback.
- [litra](https://pkg.so/zh-hans/brew/litra/) - Local package facts share a topical domain. Shared terms: cli, command-line, control, line, media.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
