Video Edit 标志

Video Edit

社区
hoodini
video-edit

将任意视频剪辑成带字幕的精彩作品——先转录(支持任何语言,默认使用 large-v3),再提供 transcript_review.txt,让用户在渲染前修正听错的内容,随后构建 HyperFrames 合成效果:加入液态玻璃字幕胶囊、液态 blob 背景、液态变形擦除转场,可选通过背景移除实现文字置于主体后方,最后渲染视频。用户提供视频文件并要求剪辑、添加字幕、修正现有字幕、制作短视频/宣传片/带字幕教程,或要求按之前带字幕视频的方式处理时,均可使用。支持英语、希伯来语及 Whisper 支持的所有语言。**可从同一段 16:9 原片同时渲染 16:9(YouTube/横屏)和 9:16(TikTok/Instagram Reels/YouTube Shorts)版本**——竖屏模式采用居中的视频条,搭配模糊背景、液态 blob 和针对竖屏优化的字幕胶囊,无需重新拍摄。最终渲染前,整个流程会暂停并等待用户批准转录文本,这是确保字幕准确无误(尤其是希伯来语字幕)的机制。可与 hyperframes、hyperframes-cli、hyperframes-registry 和 yuv-design-system 技能配合使用。

Add to TypingMind

概览

发布者hoodini
代码仓库ai-agents-skills
技能名称video-edit
星标数
280
复刻数
62
附带文件
32
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 32 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 hoodini 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Video Edit AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/hoodini/ai-agents-skills/tree/master/skills/video-edit
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hoodini/ai-agents-skills.git /tmp/ai-agents-skills
mkdir -p .claude/skills
cp -r /tmp/ai-agents-skills/skills/video-edit .claude/skills/video-edit
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Video Edit,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Video Edit。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Video Edit 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Video Edit — Captioned Showcase Pipeline

End-to-end captioned video editor on top of HyperFrames. The user gives you a video; you orchestrate transcribe → review → render and ALWAYS pause for transcript approval before the long render.

Where this skill sits in the YUV.AI pyramid

video-edit is in the middle tier of the YUV.AI skills pyramid alongside yuv-design-system, yuv-decks, yuv-viral-video, parallax-landing-page, and video-to-landing-page. The top-tier orchestrator yuv-pilot routes here whenever the user wants a captioned showcase, tutorial, or talking-head edit with subtitles.

This is the more general video sibling to yuv-viral-video. The split:

  • yuv-viral-video — opinionated YUV.AI viral-short pipeline (MrBeast pacing, signature editorial style)
  • video-edit — general captioned editor with transcript-review-before-render (Hebrew + English + any Whisper language)

For YUV.AI-branded captioned video, pair this skill with yuv-design-system (Neon mode for type/palette decisions). For generic / third-party captioned video, this skill works standalone.

When to invoke

  • A path to a video file (mp4/mov/mkv) + a request to "edit", "caption", "add subtitles", "make a reel/promo", "do the same"
  • "Fix the captions / Hebrew misspells" — re-enter at the review step on an existing project
  • Any captioned tutorial / talking-head / promo build

Save location

Default: ~/Documents/yuv-projects/videos/<slug>/ — always save captioned video projects here so renders are findable. The <slug> is short, derived from the topic or source filename.

bash
mkdir -p ~/Documents/yuv-projects/videos
cd ~/Documents/yuv-projects/videos
# Initialize the project here.

Final render lands at ~/Documents/yuv-projects/videos/<slug>/renders/<name>_FINAL.mp4. Tell the user where the video lives at the end of the render.


Workflow (12 steps)

  1. Probe the source — ffprobe for dimensions, fps, duration, audio.

  2. Scaffold — cd ~/Documents/yuv-projects/videos && npx hyperframes init <slug> --video <path> --non-interactive. Rename the copied video to source.mp4.

  3. Extract audio — ffmpeg -i source.mp4 -vn -ac 1 -ar 16000 audio.wav.

  4. Transcribe — copy references/transcribe.py into the project. Default model large-v3 (best Hebrew). CUDA usually fails on Windows (missing cuDNN); the script falls back to CPU int8. Force language="he" for Hebrew, language="en" for English; otherwise auto-detect.

  5. Apply known corrections — copy references/corrections-hebrew.md content into a corrections.json at the project root (keys = wrong token, values = correct token).

  6. 🛑 STOP — start the review server and let the user approve in a webapp. First apply known corrections: copy references/make_review.py into the project and run python make_review.py. It applies corrections.json to transcript.json.

    Then spawn the review server as a background task (it blocks until the user clicks "Approve & Render" in the browser):

    bash
    python "$HOME/.claude/skills/video-edit/references/serve_review.py" .
    # On Windows: python "C:\Users\<you>\.claude\skills\video-edit\references\serve_review.py" .

    The server prints a line like REVIEW_URL=http://localhost:PORT/. Grab that URL from the background-task output (or read stdout) and send the user:

    👉 Review your transcript here: http://localhost:PORT/ When you click Approve & Render, I'll continue automatically.

    The agent does not need a "continue" message — when the user clicks the button, the server writes transcript_review.txt to the project dir AND exits with code 0. The agent's background-task notification fires, and the pipeline resumes from step 8.

    Fallback if no browser / no server: open the editor as a static file (start "" "$HOME/.claude/skills/video-edit/transcript-editor/index.html"), ask the user to pick the project folder, edit, save transcript_review.txt back into the project, and reply "continue". The editor supports both modes.

  7. (Optional) Background removal — see step 7 below; can run in parallel with the user's review.

  8. After approval, run python references/apply_review.py. It re-tokenises edited lines and redistributes word timings back into transcript.json so caption sync still works.

  9. (Optional) Background removal — if any talking-head segment needs behind-subject text, extract the segment as outro.mp4 (or intro.mp4) and run npx hyperframes remove-background <clip>.mp4 -o <name>_subject.webm --quality best. CPU only on most setups (~3–8 min for a ~15s 1440p clip).

  10. Re-encode source with dense keyframes — multi-worker render seeks freeze on sparse keyframes. Always run:

    bash
    ffmpeg -y -i source.mp4 -c:v libx264 -preset medium -crf 18 -r 30 -g 30 -keyint_min 30 -sc_threshold 0 -pix_fmt yuv420p -movflags +faststart -c:a copy footage.mp4
  11. Re-load the (edited) transcript and generate the body sub-composition via references/gen_body.py. The generator emits the full compositions/components/caption-body.html with editorial + matrix alternating in liquid-glass pills, anchored lower-left-of-centre (clears bottom-right webcam PiPs).

  12. Wire the host index.html from references/host-template.html. Layer order (z-index, NOT track-index):

    • z0: footage .cam-bg
    • z1: liquid blob background (compositions/liquid-blobs.html, mix-blend-mode: screen, full duration)
    • z2: parallax behind-subject caption (intro and/or outro, when bg-removal used)
    • z3: subject cut-out .cam-out / .cam-sub (with matching data-media-start)
    • z6: body captions
    • z46: progress bar + flash + liquid morph wipe
  13. Lint — npx hyperframes lint. Must be 0 errors. Common fixes: GSAP/CSS transform conflict on the wipe element (use xPercent/yPercent or remove the CSS transform); overlapping tweens on the same property (add overwrite: "auto").

  14. Render — npx hyperframes render --quality standard --fps 30 --output renders/<name>_FINAL.mp4. Standard is the right delivery target — high roughly doubles render time. Verify with 6–8 spot-check frames from across the timeline before reporting done.

Vertical (9:16) output for TikTok / Reels / Shorts

When the user asks for vertical / portrait / TikTok / Reels / 9:16 output (from a 16:9 source):

  1. Clone the project to a sibling folder: cp -r project/ project-vertical/.
  2. Replace its index.html with references/host-template-vertical.html (1080×1920 canvas, blurred-bg backdrop with liquid blobs, the 16:9 footage as a centered horizontal strip, captions below).
  3. Replace its gen_body.py with references/gen_body_vertical.py (centered pill, larger fonts, narrower max-width), then re-run it to emit compositions/components/caption-body.html.
  4. Drop the behind-subject cut-out + parallax sub-compositions (the cutout is aligned for 16:9; not worth re-aligning for v1). The vertical comp uses the blurred-source backdrop + blobs for atmosphere instead.
  5. Update data-duration to the actual video duration. Update the brand-chip text in index.html (YUV.AI by default).
  6. Lint + render — same commands. Output is 1080×1920. Drop straight onto TikTok / IG Reels / YT Shorts.

To deliver both 16:9 and 9:16 in one go, run two render commands (in parallel projects). The transcript_review.txt approval applies to both — same captions, two compositions.

Critical rules

  • Never render the final without explicit transcript approval. The review step is the whole point.
  • For Hebrew: large-v3 + language="he" + direction: rtl + Rubik (700 + 900 for editorial dual-weight emphasis).
  • Caption pills always need an opaque dark backing — bare light text vanishes on white app UI.
  • Centre caption pills horizontally but shift the centre x-coord left (e.g. left: 720px) when the footage has a bottom-right webcam PiP.
  • The behind-subject cut-out clip MUST carry data-media-start matching its data-start (or matching the offset from the source if the clip was extracted), or the cut-out plays from frame 0 and desyncs.
  • The remove-background webm keeps the original RGB and writes only the alpha mask — ffprobe reports yuv420p, which looks like "no alpha". Confirm via TAG:ALPHA_MODE=1 or composite over a solid colour.
  • Outro/end cards with burned-in text — do NOT caption over them; they collide.

File references

FilePurpose
transcript-editor/index.htmlInteractive browser editor — video preview, RTL editing, dictionary apply, optional WebLLM AI suggestions, saves transcript_review.txt
references/setup.mdPrerequisites + install commands for Node / Python / FFmpeg / faster-whisper
references/transcribe.pyfaster-whisper transcribe with CPU fallback + word timestamps
references/serve_review.pyLocal review server — auto-loads editor, blocks until user clicks Approve & Render, then writes transcript_review.txt and exits (signals the agent)
references/make_review.pyApply corrections + emit transcript_review.txt (file-mode fallback)
references/apply_review.pyParse edited review file, redistribute word timings, update transcript.json
references/gen_body.pyCaption-body generator (editorial + matrix in liquid-glass pills)
references/host-template.html16:9 host composition with liquid effects + transition wipe
references/host-template-vertical.html9:16 host (1080×1920) — TikTok / Reels / Shorts layout: blurred bg, centered 16:9 footage strip, captions below, brand chip top-right
references/gen_body_vertical.pyCaption-body generator tuned for vertical (centered pill, larger fonts, narrower max-width)
references/liquid-blobs.htmlFull-duration drifting blob layer
references/caption-parallax-outro.htmlBehind-subject caption template (English; clone for other languages)
references/corrections-hebrew.mdKnown Hebrew Whisper mishears
references/transcript-review-workflow.mdThe pause/approve step in detail

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Video Edit AI 技能有什么作用?

将任意视频剪辑成带字幕的精彩作品——先转录(支持任何语言,默认使用 large-v3),再提供 transcript_review.txt,让用户在渲染前修正听错的内容,随后构建 HyperFrames 合成效果:加入液态玻璃字幕胶囊、液态 blob 背景、液态变形擦除转场,可选通过背景移除实现文字置于主体后方,最后渲染视频。用户提供视频文件并要求剪辑、添加字幕、修正现有字幕、制作短视频/宣传片/带字幕教程,或要求按之前带字幕视频的方式处理时,均可使用。支持英语、希伯来语及 Whisper 支持的所有语言。**可从同一段 16:9 原片同时渲染 16:9(YouTube/横屏)和 9:16(TikTok/Instagram Reels/YouTube Shorts)版本**——竖屏模式采用居中的视频条,搭配模糊背景、液态 blob 和针对竖屏优化的字幕胶囊,无需重新拍摄。最终渲染前,整个流程会暂停并等待用户批准转录文本,这是确保字幕准确无误(尤其是希伯来语字幕)的机制。可与 hyperframes、hyperframes-cli、hyperframes-registry 和 yuv-design-system 技能配合使用。

为什么在 TypingMind 中使用 Video Edit?

因为您只需安装一次,就能搭配任何模型使用。Video Edit 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Video Edit?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/hoodini/ai-agents-skills/tree/master/skills/video-edit。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Video Edit?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Video Edit 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Video Edit 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Video Edit AI 技能免费吗?

hoodini 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇