Communitygithub.com

quietshrink

在 Apple Silicon 上無 CPU 壓力地壓縮 macOS 螢幕錄影。

quietshrink 是什麼?

quietshrink 是一個專為 macOS Apple Silicon (M1/M2/M3/M4) 設計的命令列工具,用於壓縮螢幕錄影與影片檔案。它利用 Media Engine 的硬體 HEVC 編碼器,而非 CPU,因此編碼過程極快且靜音,不會對系統效能造成影響。此技能提供四種品質預設(tiny、balanced、transparent、pristine),可根據使用場景(聊天、文件分享或歸檔)調整壓縮率與視覺品質,典型壓縮率可達 84% 至 90%。支援 JSON 輸出,適合自動化處理;內建 `doctor` 指令可驗證環境,`probe` 指令可檢查檔案資訊。特別適合需要分享大型螢幕錄影(如 .mov/.mp4)但無法接受明顯畫質損失的情境。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-quietshrink

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

quietshrink — 代理技能

您可使用 cli-anything-quietshrink,這是一個專為 macOS Apple Silicon 設計的影片壓縮命令列工具。它利用 Media Engine(硬體 HEVC 編碼器),而非 CPU,因此編碼快速且靜音。

使用時機

  • 使用者想要壓縮螢幕錄影、螢幕截圖,或任何 .mov/.mp4 檔案
  • 檔案過大無法分享(聊天、電子郵件、GitHub)
  • 需要較小檔案,但無法容忍明顯的畫質損失
  • Apple Silicon Mac(M1/M2/M3/M4)— 效果最佳

請勿在非螢幕內容(攝影機錄影、Vlog)上使用此工具 — 因為沒有重複畫面可移除,節省空間效果會小很多。

指令

# 使用預設的透明品質壓縮
cli-anything-quietshrink compress <輸入檔案> [輸出檔案]

# 使用特定預設值壓縮
cli-anything-quietshrink compress -q tiny <輸入檔案>     # 最小
cli-anything-quietshrink compress -q transparent <輸入檔案>  # 預設,視覺無損
cli-anything-quietshrink compress -q pristine <輸入檔案>     # 接近原始品質

# 壓縮前檢查檔案資訊
cli-anything-quietshrink probe <輸入檔案>

# 列出品質預設
cli-anything-quietshrink presets

# 驗證環境
cli-anything-quietshrink doctor

所有指令均接受 --json 參數以輸出機器可讀的格式。

品質預設

預設值q 值典型縮減率SSIM使用情境
tiny50~90%~0.95聊天/電子郵件 — 可接受微小瑕疵
balanced55~88%~0.99文件/分享 — 高品質
transparent (預設)60~87%~0.99+任何重要內容 — 視覺無損
pristine70~84%~0.997歸檔 — 接近原始品質

JSON 輸出結構

compress 回傳:

{
  "input": "/path/to/input.mov",
  "output": "/path/to/output.mov",
  "input_size": 105952129,
  "output_size": 12345678,
  "saved_bytes": 93606451,
  "saved_percent": 88.3,
  "duration_seconds": 193.3,
  "elapsed_seconds": 87,
  "encoding_speed": "2.2x",
  "quality_preset": "transparent",
  "q_value": 60,
  "gop": 600
}

probe 回傳:

{
  "path": "...",
  "size_bytes": 105952129,
  "size_mb": 101.04,
  "codec": "h264",
  "width": 3024,
  "height": 1964,
  "framerate": "120/1",
  "duration_seconds": 193.31
}

代理決策流程

使用者想要分享錄影
  ├─ 是否在 Apple Silicon Mac 上? → 使用 quietshrink
  │  ├─ 聊天/電子郵件/快速分享 → -q tiny
  │  ├─ 文件/重要分享 → -q transparent (預設)
  │  └─ 歸檔/編輯用途 → -q pristine
  └─ 不在 Mac 上? → 回退到軟體編碼,效率較低

處理前,請先執行 doctor 驗證環境。 對於不熟悉的檔案,請執行 probe 以了解解析度/編碼格式/時長。

錯誤與復原

  • ffmpeg not found → brew install ffmpeg
  • hevc_videotoolbox not available → brew reinstall ffmpeg
  • compression_failed → 檢查輸入檔案是否損毀;嘗試 --verbose 模式以查看 ffmpeg 錯誤

來源

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

相關技能