Communitygithub.com

视频语义搜索与时间线审核

将旁白或对话匹配到已索引的镜头,并使用本地免费工具审核视频时间线中与主题无关的镜头。适用于镜头搜索和画外音对齐;不要将文件名的相似性视为视觉证据。

视频语义搜索与时间线审核 是什么?

该技能提供了一套完整的AI辅助视频编辑工作流程,专注于通过语义理解将旁白与视频镜头精准匹配,并自动审核最终时间线的视觉一致性。它支持Claude Code等本地化AI代理,利用Python脚本和本地模型(如 faster-whisper)进行无网络、低成本的处理。核心方法是首先对原始素材进行索引和人工标注,生成包含详细观察描述的镜头索引;然后将脚本或转录稿划分为与视觉概念(如地点、动作、物体)对应的节奏节拍;接着通过语义搜索找到最匹配的候选镜头,并利用旁白音频的实际时间戳进行精确对齐。最后,系统会通过审核脚本检查每个镜头的视觉证据,识别缺失的关键要素(标记为“MISSING”)或辅助细节(标记为“PARTIAL”),并生成报告。该技能明确警告用户不要依赖于文件名或元数据的表面相似性,而是严格基于帧画面的实际内容进行判断。它特别适用于需要精确画外音同步的场景,如纪录片、教程或美食旅行视频的制作。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/prathameshp107/video-editing/tree/HEAD/.agents/skills/video-semantic-search

在你喜欢的 AI 中提问

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

文档

视频语义搜索

当编辑需要找到最能诠释一句台词的镜头,或检查最终时间线是否与旁白一致时使用。

  1. 运行 scripts/index_media.py --media-dir <源目录> --out <评审目录> 对本地视频进行抽样,生成联系表及 shot_index.json。仅当本地有缓存的 faster-whisper 模型时添加 --transcribe。针对每一帧画面,撰写简短的观察描述和标签,包含源文件和源文件时间点。将创作者声称的内容与文件中可见或可听到的内容区分开来。
  2. 将剧本或转录稿拆分为带时间标记的节拍。将每个节拍映射到视觉概念,包括地点、动作、对象和故事角色。若时间未知,则根据初稿配音估算,待音频生成后再修订。
  3. 使用 scripts/search_index.py --index <shot_index.json> --query <口述节拍> 搜索 shot_index.json。按照语义和故事位置排序,优先于匹配文件名。若某一句台词做出了不可见的声明,则选择相关的上下文镜头,并将该声明标记为纯旁白。
  4. 将实际旁白音频拆分为短的视觉节拍,尽可能利用 TTS 段落边界或单词时间戳。包含“柜台”和“鸡肉菜肴”的句子需要拆分为独立的节拍。使用已渲染音频的实际播放时间,而非仅基于计划的脚本时间窗口。
  5. 仅使用 scripts/match_timeline.py 进行快速候选镜头搜索。该脚本永远无法确认对齐,因为“食物”等宽泛类别可能会掩盖精确的失配。
  6. 对于候选镜头,检查渲染后的帧并记录确切可见的对象/动作,附带 human_verified 证据以及每帧的 SHA-256 哈希值。运行 scripts/audit_visual_beats.py --beats <beats.json> --evidence <visual_evidence.json> --out <report.json>。将缺失的关键证据标记为 MISSING,将缺失的支持性细节标记为 PARTIAL。明确标记纯旁白类的声明。
  7. 移动旁白节拍或选择不同的镜头,然后重新运行审核并在节拍边界处检查渲染视频。不更改原始素材。

使用针对每个项目特有的词汇的节拍/证据/关键需求方法。不要因为文件名、转录稿或编辑标签而假定镜头包含某个物体或动作。此仓库仅使用免费的本地处理。

面向开源用户的说明:./agents/skills/video-semantic-search/scripts/match_timeline.py 中的概念词汇表(CONCEPTS 字典)是针对原创作者项目的印度美食和旅行博客调整的。如果视频类型或语言不同,请编辑该字典以反映您镜头中出现的主题、动作和地点。审核逻辑和证据系统适用于任何词汇。

Individual skills in this repo

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

prathameshp107/video-editing

Inventory and classify footage, photos, audio, and factual evidence before a footage-based video edit; record required shots and source-backed labels in this repository.

prathameshp107/video-editing

Measure and finish the mixed audio of a Reel, Short, long video, or audio-only deliverable with local FFmpeg and an encoded-output check.

prathameshp107/video-editing

Prepare source-linked cutaway clips for any long or short video, with timecodes, rights, clear names, format-aware framing, and a contact sheet.

prathameshp107/video-editing

Compare multiple frames from videos or photos across cameras, lighting, and output formats, then review a deliberate color adjustment.

prathameshp107/video-editing

Audit the picture and audio at edit boundaries in a rendered video, catching clipped speech, sudden sound changes, black frames, awkward dissolves, and visible jump cuts.

prathameshp107/video-editing

Reframe a selected source range for wide YouTube, vertical Reels or Shorts, square, or portrait-feed delivery with fit or intentional crop.

prathameshp107/video-editing

Design and add short motion graphics inside an existing video, such as titles, maps, labels, lower thirds, photo moves, and transitions, using Remotion or HyperFrames where appropriate.

prathameshp107/video-editing

Prepare source-backed cover art, title or caption, credits, and optional long-form chapters for YouTube videos, Shorts, Instagram Reels, or other delivery formats.

prathameshp107/video-editing

Review a finished video export for story coverage, readable text, framing, motion graphics, audio, and technical integrity before delivery.

prathameshp107/video-editing

Build a coherent travel, food, visit, or topic-driven video from inventoried footage, choosing story beats, clip order, pacing, still-photo placement, and an edit decision list.

prathameshp107/video-editing

Turn explicit creator feedback on pacing, framing, titles, transitions, and audio into a reusable style note without overgeneralizing one-off corrections.

prathameshp107/video-editing

Plan and quality-check footage-based travel, food, or visit vlogs in this repository, including source inventory, story structure, required-shot coverage, portrait framing, photos, titles, audio, and export review.

prathameshp107/video-editing

Generate narration locally in a consented speaker's voice using the bundled Chatterbox TTS model. Works with any language supported by the installed checkpoint. Audio finishing and soundtrack mixing are separate steps.

相关技能