微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🎥

终端音视频录制全能助手

record · vv0.2.0
效率 安全 A 级 作者 atacan 公开目录收录
678 下载 291 安装 1.6k 收藏 10.2k 浏览

简介

macOS 终端音视频录制工具封装,通过 Homebrew 官方渠道分发,支持 AI Agent 自动化采集屏幕、麦克风与摄像头内容,需用户明确授权。

原始描述

macOS CLI tool to record microphone audio, screen video or screenshot, and camera video or photo from the terminal with device listing and output control.

通过你的 Agent 添加

安装目录:record/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/record/
Codex CLI~/.codex/skills/record/
DeepSeek Harness~/.agents/skills/record/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

record 是一个面向 macOS 终端的音视频录制工具封装 Skill,支持三大核心功能:麦克风音频录制、屏幕视频/截图捕获、摄像头视频/拍照。设计上兼顾人类用户与 AI Agent 的自动化需求,所有子命令均支持 --json 结构化输出和 --duration 定时终止,便于脚本集成。

典型调用模式包括:获取输出文件路径(stdout 输出)、列举可用设备(--list-devices 等)、指定输出位置(--output)、屏幕录制叠加系统音频或麦克风音轨,以及针对特定窗口或显示器的精准捕获。

显著优点

  1. 管道友好设计:stdout 输出文件路径、stderr 输出状态信息,完美适配 Unix 管道和自动化脚本。
  2. AI Agent 原生支持:--json 结构化输出与 --duration 非交互模式,解决了 AI 在终端环境中无法处理交互式按键终止的痛点。
  3. 功能覆盖全面:单工具整合音频、屏幕、摄像头三大录制场景,减少多工具切换成本。
  4. 权限透明:文档明确列出 macOS 系统权限要求(麦克风、屏幕录制、摄像头),引导用户前置配置。

潜在缺点与局限性

  1. 平台锁定:仅支持 macOS,无法跨平台使用。
  2. 外部依赖:需通过 Homebrew 安装底层 record CLI 工具,Skill 本身仅为文档封装,无自包含能力。
  3. 权限门槛高:首次使用需用户手动在系统设置中授权,AI Agent 无法自动完成。
  4. 无实时预览:缺乏录制过程中的可视化反馈,依赖事后文件验证。

适合的目标群体

  • macOS 环境下的自动化测试工程师、DevOps 人员
  • 需要录制演示视频、Bug 复现素材的产品经理与客服团队
  • 构建 AI 工作流、需程序化捕获屏幕/音频的开发者
  • 终端重度用户与效率工具爱好者

使用风险

  1. 隐私泄露风险:麦克风、屏幕、摄像头均为高敏感度数据源,误操作可能导致敏感信息被录制。
  2. 权限阻塞:若终端应用未获系统授权,命令将静默失败或触发系统弹窗中断自动化流程。
  3. 存储管理:默认写入临时目录,长期高频使用需配合 --output 主动管理磁盘空间。
  4. 版本漂移:底层 CLI 工具更新可能引入行为变更,Skill 文档存在滞后风险。

技能正文


name: record description: macOS CLI tool for recording audio (microphone), screen (video/screenshot), and camera (video/photo) from the terminal. Use when the user or an AI agent needs to: (1) record microphone audio, (2) capture screen video or screenshot, (3) capture camera video or photo, (4) list available devices/displays/cameras, or any task involving audio/video/image capture on macOS via the command line. Trigger on keywords like: record, microphone, screen capture, screenshot, screen recording, camera, webcam, photo, audio capture.

record CLI

A macOS command-line tool for recording audio, screen, and camera output. Designed for both human users and AI agents operating in a terminal.

Output file paths are printed to stdout. Status messages go to stderr, making the tool pipeline-friendly.

IMPORTANT: User Consent Required

Always ask the user for explicit permission before running any recording command. Recording audio (microphone), screen, or camera captures sensitive data and may be unexpected. Before executing record audio, record screen, or record camera, confirm with the user that they intend to record, what will be captured, and the duration. Listing devices (--list-devices, --list-displays, --list-windows, --list-cameras) and taking screenshots (--screenshot) are less intrusive but should still be confirmed if not explicitly requested.

Installation

brew install atacan/tap/record

Quick Reference

# Audio
record audio --duration 10                    # Record 10s of audio
record audio --duration 5 --json              # JSON output with file path

# Screen
record screen --duration 5                    # Record screen for 5s
record screen --screenshot                    # Take a screenshot
record screen --screenshot --output /tmp/s.png

# Camera
record camera --duration 5                    # Record webcam for 5s
record camera --photo                         # Take a photo

Subcommands

Subcommand Purpose
record audio Record from microphone
record screen Record screen video or take a screenshot
record camera Record from webcam or take a photo

Each subcommand has its own --help flag with full option details.

Key Patterns for AI Agents

Get the output file path

The tool prints the output file path to stdout. Capture it:

FILE=$(record audio --duration 5)
echo "Recorded to: $FILE"

Use --json for structured output

All subcommands support --json to emit machine-readable JSON to stdout:

record audio --duration 5 --json

Use --duration for non-interactive recording

Without --duration, the tool waits for a keypress to stop (requires a real TTY). AI agents should always pass --duration <seconds> to ensure the command terminates.

List available devices

record audio --list-devices
record screen --list-displays
record screen --list-windows
record camera --list-cameras

Add --json for structured output.

Control output location

record audio --duration 5 --output /tmp/recording.m4a
record screen --screenshot --output /tmp/screen.png --overwrite

Without --output, files are saved to a temporary directory.

Screen recording with audio

record screen --duration 10 --audio system    # system audio only
record screen --duration 10 --audio mic       # microphone only
record screen --duration 10 --audio both      # system + mic

Capture a specific window or display

record screen --screenshot --window "Safari"
record screen --duration 5 --display primary

macOS Permissions

The terminal app (Terminal, iTerm2, etc.) must have the relevant permission enabled in System Settings > Privacy & Security:

  • Microphone - for record audio and record camera --audio
  • Screen Recording - for record screen
  • Camera - for record camera

Troubleshooting

If a command fails or behaves unexpectedly, run:

record <subcommand> --help

The --help output always reflects the installed version and is the authoritative reference.

Detailed Command References

For full option listings and advanced usage:

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

productivitycontent-mediaautomationmacosclidevelopment-engineering

同类 Skill