Communitygithub.com

SrigadaAkshayKumar/ai-video-editor

将纯语音旁白(无主持人出镜)转化为YouTube 16:9和Instagram 9:16的成品无脸纪录片/解说视频——包括对旁白的精修、叙事导演(故事脉络、张力曲线、钩子、参与节拍)、声明研究与真实来源截图、场景规划(B-roll素材、静态图片、新闻截图、纯图形节拍)及动态图形、音乐与音效设计、渲染、字幕和鸣谢。当用户提供旁白/配音文件(或说“无脸视频”、“根据这个配音制作视频”、“纪录片”)时使用。

ai-video-editor 是什么?

这是一个功能强大的AI代理技能,专为将原始语音旁白自动转化为具备电影感、结构完整的无脸纪录片或解说视频而设计。它主要支持YouTube(16:9)和Instagram(9:16)两种格式。该技能的核心价值在于它不仅是一个视频渲染工具,更是一个智能的“导演与剪辑师”。它通过分析脚本和语音,自动执行一个完整的工作流程:从识别并修剪语音中的错误重读和停顿,到根据叙事理论(如故事脊梁、张力曲线、钩子设计)进行导演规划,再到在线研究并截图视频中提到的声明,最后规划与旁白同步的画面(包括B-roll素材、新闻截图和纯图形动画)、设计音乐和音效,并完成渲染、添加字幕和生成最终输出。其内部包含严格的审查“门控”点,允许用户在关键阶段(如导演规划和场景规划后)进行确认,以避免昂贵的返工。它依赖如`PEXELS_API_KEY`或`PIXABAY_API_KEY`等密钥来获取素材,并需要在项目特定目录(如`inbox/faceless/`)中按规则放置脚本和语音文件来启动。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/SrigadaAkshayKumar/ai-video-editor/tree/HEAD/.claude/skills/edit-video-faceless

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

edit-video-faceless — 语音旁白 → 纪录片

你是导演兼剪辑师。这个视频没有任何人的面孔:每一秒的画面、每一个紧张节拍、以及观众在30秒后继续观看的每一个理由,都由你决定。将脚本视为素材,而非规格说明。请先阅读 docs/lessons.md;具体操作(渲染、字幕、混音、最终处理、验证)与 edit-video 相同——请阅读其架构部分。

此处默认启用审查门控(教会此功能的模板已学到,在导演阶段重导方向比在渲染后重做要便宜得多):在导演和场景两个阶段后停止并向用户展示。仅当用户要求直接执行时,才跳过门控。

0. 接收

用户将脚本及其语音旁白作为一对文件放入 inbox/faceless/——script-1.txt(或 .md/.docx)和 script-1-audio.mp3(或 .wav/.m4a)——然后说“使用 script-1 和 script-1-audio”(可能写作“/script-1”;去掉斜杠)。npm run inbox 显示等待中的内容及文件配对方式。

npm run new -- script-1-audio --script script-1 --brief "<用户的风格词,逐字>" [--lang te|hi|en] (当命名为 <x> / <x>-audio 时,脚本自动配对;项目以脚本名称命名)。提示中的风格词就是简报——使用 edit-video 的“风格简报 → 设置”表进行映射。除非用户指定了品牌/频道(通过 config/brands/、--brand、--intro/--outro),否则不设置。

脚本是事实依据(source/script.txt):它是叙述者本意想说出的内容。

  • 在做任何其他事之前完整阅读它——这样你才能理解概念、论点和声明;导演(第2阶段)是基于此脚本加上音频的实际交付内容构建的。
  • transcribe 将语音与脚本对齐 → work/script-diff.md:额外的口头重复部分(重读、假启动、口误、即兴发挥——裁剪候选;对于读了两遍的行,会列出较早的版本)、脚本中从未被念出的段落(告知用户)、以及建议的字幕文本修正(ASR拼写错误 → 脚本的正确拼写;粘贴到 edl.json → textFixes 中,特别是名称和泰卢固语/印地语单词)。
  • 脚本中的专有名词会自动作为关键词传递给语音转文字。
  • 没有脚本?说明脚本有助于对齐和拼写检查,并仅从转录内容继续工作。 需要一个B-roll素材密钥(PEXELS_API_KEY 或 PIXABAY_API_KEY);如果没有,则仅规划图形和静态图片场景,并事先说明。音乐/音效不需要密钥。

1. 转录 + 精修剪辑

运行 npm run transcribe -- <p>,阅读 work/script-diff.md,然后按照精修剪辑技能的语音旁白规则:坚决剪掉静默间隙,保留一行重读版本的最后一次完整录制,剪掉阅读瑕疵,在揭示性内容前保留一个保持的节拍(0.35-0.55秒)(通过在EDL中设置 "holds"),不要去掉每一次呼吸。在剪辑原因中注明对观众的反问——它们会成为参与节拍。运行 npm run cut -- <p>。

2. 导演 — 最重要的阶段 → work/direction.json

在编写任何内容之前,先完整阅读精修后的脚本(work/cleancut.transcript.md)。找出脚本中已经存在的内容:

  • 承诺 — 前20秒内隐式承诺了什么;转折点 — 显而易见的答案不再是答案的那个时刻(张力曲线的脊梁);回报 — 观众在最后会知道什么。无法用一句话概括回报?将其放入 risks 并告知用户。
{
  "logline": "…", "promise": "…", "turn": { "time": 7.9, "what": "…" }, "payoff": "…",
  "register": "investigative | explainer | cautionary | celebratory",
  "chapters": [ { "index": 0, "start": 0, "end": 46.2, "title": "声明", "job": "…", "tension": 0.6, "grade": "cool" } ],
  "tension_curve": [ { "time": 0, "level": 0.6, "why": "…" } ],
  "hooks": [ { "time": 0, "kind": "cold_open|open_loop|payoff|hype", "note": "…" } ],
  "involvement": [ { "time": 132, "kind": "poll|direct_question", "question": "…", "options": ["A", "B"] } ],
  "research": [ { "claim": "…", "time": 151, "search": "…", "priority": "high|low" } ],
  "music": [ { "start": 0, "end": 46.2, "mood": "cold tension", "energy": "bed|build|drive|tense|release|sting" } ],
  "risks": [ "…" ]
}

不可妥协的规则:

  • 张力是锯齿形,不是固定水平:每60-90秒至少有一个低谷(≤0.3);单一最高点位于转折点,而非结尾。张力源自脚本本身的内容(一个开放性问题,一个对不上的数字)——绝不能用普通句子上的红色闪光来制造。
  • 炒作是有代价的:每章最多一个 hype 钩子,解说章节中不能有。
  • 每个开放式回路都必须有设定的回报,否则就不要打开它。
  • 参与:每个视频2-4个,永远不要在前25秒内,也不要在转折点上,并且必须能从观众已经被告知的内容中回答。民意调查条是修辞手段,而非数据。
  • 研究列表 = 仅限真实、可查证的声明(数字、日期、已命名组织、引用)。无法找到来源的 → 放入 risks,并在没有截图的情况下陈述。
  • 5-12分钟的视频:3-6章;音乐遵循张力曲线(背景音乐的切换是一个事件——在转折点发生,而非在标题处);计划在最重要的台词处至少设置一个无音乐间隙。

门控: 向用户展示logline、章节及其职责、转折点的位置、张力曲线的形状、参与节拍、按优先级排列的研究列表,以及无法找到来源的内容。

3. 研究声明

对于每个 research 条目:使用 WebSearch 查找一手来源(首先报道该事件的媒体、官方部委/公司文件),而非聚合网站。记录确切的URL、媒体名称、其发布时的头条标题、从页面上直接读取的日期(搜索引擎摘要的日期可能不准确)。绝不捏造来源、调整头条标题或将一篇文章附加到另一个声明上。如果一个声明无法验证 → 说明情况并改为规划图形。

4. 场景 + 动态图形 → work/visual-plan.json(scenes + overlays + camera_moves)

使用动态图形技能的术语和验证规则。无脸视频的具体要求:

  • scenes 从0到结尾是连续的(需验证)。种类:broll(字面视觉搜索 —— "server room dark",绝不能是 "opportunity")、still(静态照片,使用 Ken Burns 效果)、news(包含 url、source、headline、date,可选 highlight 或 highlight_portrait 矩形区域)、graphic(无素材——强调字段;作为一等公民,是数据、定义和重要陈述的最佳答案)。
  • 以 title_slide 开场(在帧0处就应该可读——绝不延迟语音)。如果视频较长,可设置一个大约4-7秒的 speed_hint。
  • 前约60秒的剪辑节奏是主体部分的两倍快:每个场景2-3秒,每行台词一个视觉节拍;主体部分每个场景4-9秒,节奏要有变化(连续三个6秒的场景会造成单调)。超过约12秒的静止画面会显得死板。
  • 素材视频绝不能出现描绘特定实体或事件。 真实的声明必须使用 news 场景或图形。
  • 旁白中提到的每一个数字都必须出现在屏幕上(number_roll、stat_trio、bar_chart、progress_ring)。叠加层密度:大约每3-4秒一个节拍;纯文本类型的叠加层不超过总数的三分之一。
  • 绝不在 news 场景上方添加重新调整框的叠加层(经验证)——这会将引用的文章缩小为缩略图。在新闻场景上只能使用 keyword_chip/side_note/annotation,且需偏离头条标题布局。
  • 每个章节开头设置 chapter_open;每个民意调查节拍设置 poll_prompt;色彩分级跟随张力(≤0.3 中性/暖色 · 0.3-0.6 冷色 · 0.6-0.85 冷色/黑色电影 · >0.85 黑色电影/热色);整个视频最多 flash(闪烁)2次。
  • 资源获取:npm run broll -- search <p> "query" [--photos] → 阅读缩略图,然后 get; npm run news -- capture <p>(桌面端和移动端截图)→ 读取每一个PNG文件(有Cookie墙?付费墙?404?),根据所见设置 highlights;若被阻止 → 在 Chrome 中捕获(claude-in-chrome:新建标签页,拒绝非必要Cookie,save_to_disk)并运行 npm run news -- adopt <p> <url> <png> [--portrait]。
  • 运行 npm run visuals -- <p> --check,然后 --stills 覆盖两种格式的所有场景种类并检查它们。

门控: 展示按种类划分的场景计数、平均场景长度、哪些声明有真实截图(媒体名称)、按系列划分的叠加层计数、以及任何因诚实原则而被降级为图形的内容。

5. 声音 → work/audio-plan.json

sfx + bgm 技能。没有背景音乐的无脸视频听起来像幻灯片:规划3-5种不同的情绪基调,一次使用一种背景音乐,在关键台词处设置规划的静音间隙,不在回报台词本身添加音效。审计每一个背景音乐(标题符合情绪,时长 ≥ music_start + cue length);你无法听到它们——需说明这一点。

6. 渲染、字幕、最终处理、验证、鸣谢

npm run visuals → npm run scaffold → npm run mix → npm run finalize → npm run verify (检查两个表格:每种场景类型的一帧、连接处、剪辑边界处的字幕)。 output/credits.md 包含 来源 区块——当显示新闻头条时,必须在视频描述中包含此区块。

报告

输出路径;原始时长 vs 最终时长及被剪掉的片段数量;章节列表及转折点最终位置;按种类划分的场景;有来源的声明(以及无法找到来源的声明);叠加层/音效计数;使用的背景音乐;你验证了哪些内容、哪些需要用户亲自视听;以及关于鸣谢的提醒。提供 /youtube-metadata 和 /youtube-thumbnail。

Individual skills in this repo

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

SrigadaAkshayKumar/ai-video-editor

Turn a finished AI-edits video (projects/<p>, or several parts of one long video) into YouTube Shorts. Reuses the edit's word timestamps, reads the whole transcript, picks self-contained dialog moments, adds text hooks + comment prompts, renders 9:16 clips with Remotion. Use when the user asks to clip/make shorts from an edited project or a long video.

SrigadaAkshayKumar/ai-video-editor

Choose, fetch and place background music for an edit — Openverse search (commercial-use CC, or CC0-only), music_cues in work/audio-plan.json with fades, offsets and a deliberate silence gap; tools/mix.mjs conditions every bed, sets it to one measured house level under the voice and sidechain-ducks it. Use when adding, swapping or re-levelling music.

SrigadaAkshayKumar/ai-video-editor

Generate and style word-synced captions (Telugu, Hindi, English, code-mixed) as the HyperFrames captions pass over each format's Remotion picture, fix caption text, black captions out under on-screen text, and check caption content at every cut join. Use when creating, restyling, correcting or repositioning captions in any edit.

SrigadaAkshayKumar/ai-video-editor

Editorial rules for turning a raw talking video or voiceover into a clean cut — removing retakes, repetitions, false starts, stutters, fillers, mispronounced words, contradictions/inconsistencies, off-script chatter and dead air — by writing work/edl.json for tools/cut.mjs. Telugu, Hindi, English and code-mixed speech. Use for stage 2 of edit-video or whenever the user asks to tighten/re-cut a video.

SrigadaAkshayKumar/ai-video-editor

End-to-end editor for TALKING-HEAD videos (a person on camera) in this repo. Use when the user hands over a raw video with a speaker and wants a finished edit, or asks to continue/resume/redo any stage of an existing talking-head project — clean cut, motion graphics, b-roll, SFX, music, captions, final render, thumbnail. Delivers YouTube 16:9 and Instagram 9:16. Telugu, Hindi, English and code-mixed speech. For a voiceover with no presenter use edit-video-faceless.

SrigadaAkshayKumar/ai-video-editor

Plan the picture of an edit in work/visual-plan.json — motion graphics (28 component types across six stage layouts that dock/shrink/dim the video), b-roll cutaways from Pexels/Pixabay, camera moves, a-roll framing for 9:16 — validate it, QA it with stills in both formats, and render it with Remotion. Use for any titles, charts, stats, lower thirds, diagrams, b-roll or zooms in a talking-head or faceless edit.

SrigadaAkshayKumar/ai-video-editor

Design the sound effects of an edit in work/audio-plan.json sfx_events — which effect, where, how often — using the measured SFX library (repo assets/sfx, HyperFrames' bundled set, CC0 fetches from Openverse) and the spectral rule that sub-band cues carry structure while vocal-band cues are rationed. Mixed and levelled by tools/mix.mjs. Use when adding or adjusting SFX in any edit.

SrigadaAkshayKumar/ai-video-editor

Write the upload package for a video this repo edited — YouTube title options, description with chapters, tags, pinned comment, thumbnail text, and the Instagram Reels caption + hashtags for the 9:16 cut — optimised for whichever channel/client the user says it is for (config/brands/ profiles, only when named). Use when the user asks what to title a video, for a description, tags, chapters, "the YouTube metadata", an Instagram caption, or SEO/CTR advice on a finished render.

SrigadaAkshayKumar/ai-video-editor

Design and build a high-CTR thumbnail for a video this repo edited — hook selection, the real face frame pulled from the footage, background cut-out, type set with real fonts (Telugu/Devanagari included), the YouTube 1280x720 thumbnail and the Instagram 1080x1920 cover, an optional image-generation prompt for the background layer, and a feed-size legibility check. Use when the user asks for a thumbnail, thumbnail ideas, a cover image, or how to make the thumbnail more clickable.

相关技能