Cli Anything Obs Studio

hkuds/cli-anything/skills/cli-anything-obs-studio

作者 hkuds34f519533bc1無授權條款51K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫2 週前更新

Command-line interface for Obs Studio - A stateful command-line interface for OBS Studio scene collection editing, following the same patter...

僅含說明Design & Creative
AI 產生的概覽

用於編輯以 JSON 儲存的 OBS Studio 場景集合的有狀態命令列介面,涵蓋場景、來源、濾鏡、音訊、轉場與輸出。

功能
提供命令列工具與互動式 REPL,用來建立和編輯保存在 JSON 專案檔中的 OBS Studio 場景集合。它管理專案、場景、來源、濾鏡、全域音訊、轉場以及串流或錄影輸出設定,並支援復原/重做歷史與儲存/載入持久化。命令預設輸出人類可讀內容,也可透過旗標輸出結構化 JSON 供程式使用。
適用情境
適合在不開啟 OBS Studio 的情況下建立或修改 OBS Studio 場景集合,包括以指令碼方式調整場景、來源、濾鏡、音訊與轉場。適合由代理驅動或自動化地編輯場景集合 JSON 檔。
執行需求
需要 Python 3.10+,並透過 pip 安裝 cli-anything-obs_studio 套件;文件也將 OBS Studio 列為先決條件,但說明編輯時不需要安裝 OBS。不附帶指令碼,僅為說明文件。

cli-anything-obs_studio

A stateful command-line interface for OBS Studio scene collection editing, following the same patterns as the Blender CLI harness. Uses a JSON scene collection format. No OBS installation required for editing.

Installation

This CLI is installed as part of the cli-anything-obs_studio package:

bash
pip install cli-anything-obs_studio

Prerequisites:

  • Python 3.10+
  • obs_studio must be installed on your system

Usage

Basic Commands

bash
# Show helpcli-anything-obs_studio --help
# Start interactive REPL modecli-anything-obs_studio
# Create a new projectcli-anything-obs_studio project new -o project.json
# Run with JSON output (for agent consumption)cli-anything-obs_studio --json project info -p project.json

REPL Mode

When invoked without a subcommand, the CLI enters an interactive REPL session:

bash
cli-anything-obs_studio# Enter commands interactively with tab-completion and history

Command Groups

Project

Project management commands.

CommandDescription
newCreate a new OBS scene collection
openOpen an existing project
saveSave the current project
infoShow project information
jsonPrint raw project JSON

Scene Group

Scene management commands.

CommandDescription
addAdd a new scene
removeRemove a scene by index
duplicateDuplicate a scene
set-activeSet the active scene
listList all scenes

Source Group

Source management commands.

CommandDescription
addAdd a source to a scene
removeRemove a source by index
duplicateDuplicate a source
setSet a source property (name, visible, locked, opacity, rotation)
transformTransform a source (position, size, crop, rotation)
listList all sources in a scene

Filter Group

Filter management commands.

CommandDescription
addAdd a filter to a source
removeRemove a filter from a source
setSet a filter parameter
listList all filters on a source
list-availableList all available filter types

Audio Group

Audio management commands.

CommandDescription
addAdd a global audio source
removeRemove a global audio source
volumeSet volume for an audio source (0.0-3.0)
muteMute an audio source
unmuteUnmute an audio source
monitorSet audio monitoring type
listList all audio sources

Transition Group

Transition management commands.

CommandDescription
addAdd a transition
removeRemove a transition
set-activeSet the active transition
durationSet transition duration in milliseconds
listList all transitions

Output Group

Output/streaming/recording configuration.

CommandDescription
streamingConfigure streaming settings
recordingConfigure recording settings
settingsConfigure output settings
infoShow current output configuration
presetsList available encoding presets

Session

Session management commands.

CommandDescription
statusShow session status
undoUndo the last operation
redoRedo the last undone operation
historyShow undo history

Examples

Create a New Project

Create a new obs_studio project file.

bash
cli-anything-obs_studio project new -o myproject.json# Or with JSON output for programmatic usecli-anything-obs_studio --json project new -o myproject.json

Interactive REPL Session

Start an interactive session with undo/redo support.

bash
cli-anything-obs_studio# Enter commands interactively# Use 'help' to see available commands# Use 'undo' and 'redo' for history navigation

State Management

The CLI maintains session state with:

  • Undo/Redo: Up to 50 levels of history
  • Project persistence: Save/load project state as JSON
  • Session tracking: Track modifications and changes

Output Formats

All commands support dual output modes:

  • Human-readable (default): Tables, colors, formatted text
  • Machine-readable (--json flag): Structured JSON for agent consumption
bash
# Human outputcli-anything-obs_studio project info -p project.json
# JSON output for agentscli-anything-obs_studio --json project info -p project.json

For AI Agents

When using this CLI programmatically:

  1. Always use --json flag for parseable output
  2. Check return codes - 0 for success, non-zero for errors
  3. Parse stderr for error messages on failure
  4. Use absolute paths for all file operations
  5. Verify outputs exist after export operations

More Information

  • Full documentation: See README.md in the package
  • Test coverage: See TEST.md in the package
  • Methodology: See HARNESS.md in the cli-anything-plugin

Version

1.0.0

來源與署名

來源:hkuds/cli-anything位於skills/cli-anything-obs-studio提交34f5195

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架