Communitygithub.com

cli-anything-kdenlive

一種有狀態的命令列介面,用於影片編輯,遵循與 Blender CLI 工具相同的模式。使用 JSON 專案格式,並生成 MLT XML 以用於 Kdenlive/melt。

cli-anything-kdenlive 是什麼?

這個 CLI 工具「cli-anything-kdenlive」提供了一個全面的有狀態命令列介面,專為 Kdenlive 影片編輯器設計。它與 Blender CLI 工具的設計模式保持一致,允許使用者透過終端機管理影片專案、媒體素材箱、時間軸、濾鏡、轉場、標記和匯出。該工具支援互動式 REPL 模式,具有選項卡補全和歷史記錄功能,以及用於程式化 AI 代理消費的結構化 JSON 輸出。主要功能包括使用 MLT XML 生成的新舊專案管理、具有拖放操作的媒體素材箱、具有剪輯分割和修剪功能的完整時間軸編輯、以及完整的濾鏡和轉場管理。該工具維護具有 50 層歷史記錄的會話狀態,支援復原/重做,並可跨多個平台使用,包括 Linux、macOS 和 Windows,前提是系統已安裝 Kdenlive。它旨在簡化影片編輯工作流程,特別是對於需要一種可程式化、可編寫腳本的方式來與 Kdenlive 專案互動的 AI 代理和高級使用者。

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

在你喜歡的 AI 中提問

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

說明文件

cli-anything-kdenlive 是做什麼的?

一種有狀態的命令列介面,用於影片編輯,遵循與 Blender CLI 工具相同的模式。使用 JSON 專案格式,並生成 MLT XML 以用於 Kdenlive/melt。

安裝

此 CLI 是作為 cli-anything-kdenlive 套件的一部分安裝的:

pip install cli-anything-kdenlive

先決條件:

  • Python 3.10+
  • 系統必須已安裝 kdenlive

使用方式

基本指令

# 顯示說明
cli-anything-kdenlive --help

# 啟動互動式 REPL 模式
cli-anything-kdenlive

# 建立新專案
cli-anything-kdenlive project new -o project.json

# 以 JSON 輸出執行(供代理消費)
cli-anything-kdenlive --json project info -p project.json

REPL 模式

當不帶子指令呼叫時,CLI 會進入互動式 REPL 會話:

cli-anything-kdenlive
# 以選項卡補全和歷史記錄功能互動式輸入指令

指令群組

專案

專案管理指令。

指令描述
new建立新專案
open開啟現有專案
save儲存目前專案
info顯示專案資訊
profiles列出可用的影片設定檔
json列印原始專案 JSON

素材箱群組

媒體素材箱管理指令。

指令描述
import將剪輯匯入媒體素材箱
remove從素材箱移除剪輯
list列出素材箱中的所有剪輯
get取得詳細的剪輯資訊

時間軸

時間軸管理指令。

指令描述
add-track在時間軸上新增軌道
remove-track移除軌道
add-clip將剪輯新增至軌道
remove-clip從軌道移除剪輯
trim修剪剪輯的 In/Out 點
split在時間偏移處分割剪輯
move將剪輯移至新位置
list列出所有軌道

濾鏡群組

濾鏡/效果管理指令。

指令描述
add為剪輯新增濾鏡
remove從剪輯移除濾鏡
set設定濾鏡參數
list列出剪輯上的濾鏡
available列出所有可用的濾鏡

轉場

轉場管理指令。

指令描述
add在軌道之間新增轉場
remove移除轉場
set設定轉場參數
list列出所有轉場

標記

標記/標記管理指令。

指令描述
add在位置(秒)新增標記
remove移除標記
list列出所有標記

匯出

匯出和渲染指令。

指令描述
xml生成 Kdenlive/MLT XML
presets列出可用的渲染預設集

會話

會話管理指令。

指令描述
status顯示會話狀態
undo復原上一次操作
redo重做上一次復原的操作
history顯示復原歷史記錄

範例

建立新專案

建立新的 kdenlive 專案檔案。

cli-anything-kdenlive project new -o myproject.json
# 或者使用 JSON 輸出供程式化使用
cli-anything-kdenlive --json project new -o myproject.json

互動式 REPL 會話

啟動一個支援復原/重做的互動式會話。

cli-anything-kdenlive
# 互動式輸入指令
# 使用 'help' 查看可用指令
# 使用 'undo' 和 'redo' 進行歷史記錄導航

匯出專案

將專案匯出為最終輸出格式。

cli-anything-kdenlive --project myproject.json export render output.pdf --overwrite

狀態管理

CLI 使用以下方式維護會話狀態:

  • 復原/重做:最多 50 層歷史記錄
  • 專案持久性:以 JSON 格式儲存/載入專案狀態
  • 會話追蹤:追蹤修改和變更

輸出格式

所有指令均支援雙輸出模式:

  • 人類可讀(預設):表格、顏色、格式化文字
  • 機器可讀(--json 標誌):結構化 JSON 供代理消費
# 人類輸出
cli-anything-kdenlive project info -p project.json

# 供代理使用的 JSON 輸出
cli-anything-kdenlive --json project info -p project.json

給 AI 代理的提示

以程式化方式使用此 CLI 時:

  1. 始終使用 --json 標誌 以獲得可解析的輸出
  2. 檢查回傳碼 - 0 表示成功,非零表示錯誤
  3. 解析 stderr 以獲取失敗時的錯誤訊息
  4. 對所有檔案操作使用絕對路徑
  5. 在匯出操作後確認輸出存在

更多資訊

  • 完整文件:請參閱套件中的 README.md
  • 測試覆蓋率:請參閱套件中的 TEST.md
  • 方法論:請參閱 cli-anything-plugin 中的 HARNESS.md

版本

1.0.0

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

>-

相關技能