ai-agent-video-editor

作者 pifferologo已验证

ai agent video editor use with ElevenLabs Scribe, pack phrase-level transcripts, reason over an EDL, render with ffmpeg, video editor ai agent

140
Stars
1,060
Forks
TypeScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/pifferologo/ai-agent-video-editor

快速入门

使用 ai-agent-video-editor 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

video-use

Conversation-driven video editing for AI agents. Transcribe raw footage with ElevenLabs Scribe, pack phrase-level transcripts, reason over an EDL, render with ffmpeg, and self-evaluate cut boundaries — all through a typed Node.js CLI.

Overview

video-use gives an LLM structured text (word-level transcripts) plus on-demand visual composites instead of dumping video frames. An agent reads takes_packed.md, proposes a cut strategy, writes edl.json, and renders final.mp4 into <videos_dir>/edit/.

flowchart LR
  subgraph inputs [Inputs]
    RAW[Raw takes]
    ENV[.env + ffmpeg]
  end

  subgraph pipeline [Pipeline]
    T[transcribe]
    P[pack]
    E[EDL reasoning]
    R[render]
    V[self-eval timeline]
  end

  subgraph outputs [Outputs]
    MD[takes_packed.md]
    MP4[final.mp4]
  end

  RAW --> T --> P --> MD
  MD --> E --> R --> MP4
  R --> V --> MP4
  ENV --> T
  ENV --> R

Features

  • Word-level Scribe transcription with speaker diarization, audio events, and per-file caching
  • Phrase packing — silence-aware markdown optimized for LLM token efficiency
  • EDL render pipeline — per-segment grade, 30 ms audio fades, HDR tone-map, overlay compositing, subtitle burn-in last
  • Timeline composites — filmstrip + waveform PNGs for cut-point drill-down
  • Optional Redis cache — cross-session transcript persistence when enabled
  • Strict TypeScript — shared libraries, Vitest tests, ESLint flat config

Installation

Prerequisites

RequirementNotes
Node.js 18+Required for the CLI
ffmpeg / ffprobeHard requirement for all media operations
ElevenLabs API keyScribe transcription (get a key)
Redis 6+Optional; enable with REDIS_ENABLED=true

Setup

git clone https://github.com/browser-use/video-use ~/Developer/video-use
cd ~/Developer/video-use
npm install
npm run build
cp .env.example .env
# Edit .env — set ELEVENLABS_API_KEY

Register the skill with your agent (symlink the repo into your skills directory). See install.md for agent-specific steps.

Agent setup prompt

Set up https://github.com/browser-use/video-use for me.
Read install.md first, then SKILL.md for daily usage.
Use npx video-use for all editing commands.

Configuration

Copy .env.example to .env:

VariableDefaultDescription
ELEVENLABS_API_KEYRequired for transcription
LOG_LEVELinfodebug, info, warn, or error
REDIS_ENABLEDfalseEnable Redis transcript cache
REDIS_URLredis://127.0.0.1:6379Redis connection URL
REDIS_KEY_PREFIXvideo-use:Key namespace prefix
REDIS_DEFAULT_TTL_SECONDS86400Cache TTL (24 h)

Verify Redis connectivity:

npx video-use redis ping

CLI reference

npx video-use transcribe <video> [--edit-dir <dir>] [--num-speakers N]
npx video-use transcribe-batch <videos_dir> [--workers 4]
npx video-use pack --edit-dir <dir> [--silence-threshold 0.5]
npx video-use timeline <video> <start> <end> [-o out.png]
npx video-use render <edl.json> -o final.mp4 [--preview] [--build-subtitles]
npx video-use grade <input> -o output [--preset warm_cinematic]
npx video-use redis ping

Run npx video-use --help for full option lists.

Project structure

video-use/
├── src/
│   ├── cli/           # Commander entry point
│   ├── config/        # env + logger
│   ├── lib/           # ffmpeg, scribe, pack, grade, render, timeline
│   ├── redis/         # connection manager + cache
│   └── types/         # shared TypeScript interfaces
├── tests/             # Vitest unit tests
├── docs/AUDIT.md      # internal architecture audit
├── SKILL.md           # agent editing instructions
├── install.md         # first-time setup guide
└── skills/manim-video/  # vendored animation skill
flowchart TB
  CLI[src/cli/index.ts]
  CFG[src/config]
  LIB[src/lib]
  REDIS[src/redis]
  TYPES[src/types]

  CLI --> CFG
  CLI --> LIB
  LIB --> CFG
  LIB --> TYPES
  LIB --> REDIS
  REDIS --> CFG

Development

npm install
npm run dev -- --help          # run CLI via tsx without building
npm run typecheck              # tsc --noEmit (strict)
npm run lint                   # ESLint
npm run test                   # Vitest
npm run build                  # emit dist/
npm run validate               # all of the above

Render pipeline order

sequenceDiagram
  participant EDL as edl.json
  participant X as extract segments
  participant C as concat base
  participant O as overlays
  participant S as subtitles
  participant L as loudnorm

  EDL->>X: per-range grade + fades
  X->>C: lossless -c copy
  C->>O: PTS-shifted overlays
  O->>S: burn captions LAST
  S->>L: -14 LUFS normalize
  L->>EDL: final.mp4

Testing

npm run test

Tests cover phrase packing logic and Redis manager lifecycle (disabled-mode paths). Integration tests against ffmpeg and Scribe are intentionally manual — they require external services and burn API credits.

Troubleshooting

ELEVENLABS_API_KEY not found

Ensure .env exists at the repo root with a non-empty key, or export the variable in your shell.

ffmpeg failed with exit code

Confirm ffmpeg and ffprobe are on PATH and support libx264. Run ffprobe -version.

Redis ping fails

Set REDIS_ENABLED=true and confirm Redis is running locally (redis-cli pingPONG).

Subtitles hidden behind overlays

Subtitles must be applied last in the filter chain (Hard Rule 1 in SKILL.md). Use npx video-use render — it enforces this order.

HDR footage looks oversaturated after render

The render pipeline detects PQ/HLG sources and applies tone-mapping automatically. If issues persist, probe with ffprobe -show_entries stream=color_transfer.

FAQ

Does the LLM watch the video? No. It reads packed transcripts (~12 KB per hour of takes) and requests timeline PNGs only at decision points.

Where do session outputs go? Always <videos_dir>/edit/ — never inside the video-use repo.

Can I skip Redis? Yes. Redis is off by default. Filesystem caching in edit/transcripts/ is always used.

What animation engines are supported? HyperFrames, Remotion, Manim, and PIL sequences — see SKILL.md. Each renders inside edit/animations/slot_<id>/.

How do I update the skill? git pull in the clone; re-run npm install && npm run build if dependencies changed.

Contributing

  1. Fork and clone the repository
  2. Create a feature branch
  3. Run npm run validate before opening a PR
  4. Follow existing TypeScript conventions (strict mode, ESM imports with .js extensions)

See SKILL.md for production editing rules and docs/AUDIT.md for architecture notes.

License

MIT — see LICENSE.

常见问题

What is ai-agent-video-editor?

ai-agent-video-editor is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by pifferologo. ai agent video editor use with ElevenLabs Scribe, pack phrase-level transcripts, reason over an EDL, render with ffmpeg, video editor ai agent. It has 140 GitHub stars.

Is ai-agent-video-editor safe to use?

ai-agent-video-editor failed SkillsLLM's automated security scan, which flagged one or more high-severity issues. Review the Security Report section carefully before using it.

How do I install ai-agent-video-editor?

Clone the repository with "git clone https://github.com/pifferologo/ai-agent-video-editor" and add it to your Claude Code skills directory (see the Installation section above). ai-agent-video-editor ships a SKILL.md manifest, so compatible agents can discover and load it automatically.

What programming language is ai-agent-video-editor written in?

ai-agent-video-editor is primarily written in TypeScript. It is open-source under pifferologo on GitHub, so you can review or fork the full source.

Are there alternatives to ai-agent-video-editor?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh ai-agent-video-editor against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情