Communitygithub.com

cli-anything-quietshrink

Apple Silicon 搭載 Mac で画面収録を CPU に負荷をかけずに圧縮します。

cli-anything-quietshrink とは?

quietshrink は、macOS Apple Silicon (M1/M2/M3/M4) 搭載 Mac 向けに設計された、画面収録やスクリーンキャストなどの動画ファイルをハードウェア HEVC エンコーダー (Media Engine) を使用して高速かつ静かに圧縮する CLI ツールです。CPU ではなく専用ハードウェアでエンコードするため、エンコード中も CPU 負荷がほぼゼロで、冷却ファンが回らず静音です。主なユースケースは、チャットやメール、GitHub で共有するためにサイズが大きすぎる .mov / .mp4 ファイルを、目に見える品質劣化を許容しつつ大幅に削減することです。`compress`、`probe`、`presets`、`doctor` の4つのコマンドを提供し、品質プリセット (tiny / balanced / transparent / pristine) を選択可能。デフォルトの `transparent` は視覚的に可逆 (SSIM 0.99+) で、平均 87% の削減率を達成します。非画面収録コンテンツ (カメラ映像、vlog など) では重複フレームが少ないため削減率が小さくなる点に注意が必要です。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-quietshrink

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

quietshrink — エージェントスキル

あなたは cli-anything-quietshrink にアクセスできます。これは macOS Apple Silicon 上の動画ファイルを圧縮するための CLI です。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

>-

関連スキル