agentleFS
cacitycacity/VideoHub/.agents/skills/videohub-subtitles/SKILL.md

videohub-subtitles

Skill183 starsChanged 9 days agoMITView on GitHub

处理字幕生成后的烧录和合成流程。适用于把 ASS 字幕烧录进视频,或指导用户使用现有字幕工具。

The file

Files
SKILL.md

VideoHub Subtitles

当前字幕相关能力分两块:

  • 生成字幕、翻译字幕:F:/work/VideoHub/src/youtube_transcriber.py
  • 主流程字幕烧录函数:F:/work/VideoHub/src/youtube_transcriber.py 中的 embed_subtitles_to_video()
  • 独立字幕合成 GUI:F:/work/VideoHub/src/subtitle_merger.py

适用场景

  • 用户已经有视频和 ASS 字幕,想烧录
  • 用户在 YouTube/本地视频流程里勾选“将字幕嵌入到视频中”
  • 用户在配音流程里选择“压单语字幕”或“压双语字幕”
  • 用户想知道字幕样式和字体配置从哪里来
  • 用户需要区分“生成字幕”和“合成视频”两个阶段

当前实现边界

  • embed_subtitles_to_video(video_path, subtitle_path, output_dir=VIDEOS_WITH_SUBTITLES_DIR) 是主流程可复用函数。
  • subtitle_merger.py 是 PyQt GUI 工具,不是独立纯 CLI。
  • 主流程会优先使用同名 .ass 字幕;输出目录是 workspace/videos_with_subtitles/。
  • 如果只是生成字幕,应优先走 videohub-youtube
  • 如果是现有字幕文件与视频合成,优先走字幕合成工具

注意

  • 这个 skill 目前以引导和正确分流为主
  • 后续如果需要,可再把字幕合成补成 CLI 友好的入口

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.