Communitygithub.com

ComeOnOliver/skillshub

字幕生成与燒錄。火山引擎轉錄→詞典糾錯→審核→燒錄。觸發詞:加字幕、產生字幕、字幕

skillshub 是什麼?

此技能專為影片剪輯後製流程設計,自動化實現從語音轉錄、校對、人工審核到最終字幕燒錄的完整工作流程。支援火山引擎語音辨識服務並整合自訂熱詞詞典以提升專業術語(如「Agent」、「Claude Code」)的辨識準確度。轉錄完成後,AI Agent 會根據預先定義的常見誤辨識規則(如同音字、漏字等)手動逐條校對字幕,再啟動本機 Web 伺服器供使用者進行人工審核與編輯。最終透過 FFmpeg 將字幕以自訂樣式(22 號金黃粗體、黑色描邊)燒錄至影片。此技能在 Claude Code 等支援自訂技能的 AI 開發工具中執行,需搭配 FFmpeg、Node.js 及火山引擎 API 使用。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/Ceeon/videocut-skills/%E5%AD%97%E5%B9%95

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

字幕

轉錄 → Agent校對 → 人工審核 → 燒錄

核心流程(總計約 8-15 分鐘,含人工審核)

1. 提取音訊 + 上傳          ⏱ ~1min
    ↓
2. 火山引擎轉錄(帶熱詞)    ⏱ ~2min
    ↓
3. Agent 自動校對            ⏱ ~3-5min
    ↓
4. 人工審核確認              ⏱ 取決於使用者
    ↓
5. 燒錄字幕                  ⏱ ~1-2min

Step 1: 提取音訊並上傳

# 提取音訊
ffmpeg -i "video.mp4" -vn -acodec libmp3lame -y audio.mp3

# 上傳到 uguu.se(暫存檔案托管)
curl -s -F "files[][email protected]" https://uguu.se/upload
# 回傳 URL 如: https://o.uguu.se/xxxxx.mp3

Step 2: 火山引擎轉錄(帶熱詞)

轉錄腳本會自動讀取詞典作為熱詞,提高辨識準確率:

# 詞典位置: /Users/chengfeng/Desktop/AIos/剪輯Agent/.claude/skills/字幕/詞典.txt
# 腳本會自動載入

bash ../剪口播/scripts/volcengine_transcribe.sh "https://o.uguu.se/xxxxx.mp3"

詞典格式(每行一個詞):

skills
Claude
Agent
成峰
剪輯skills
claude code

Step 3: Agent 自動校對

3.1 產生帶時間戳的字幕

const result = JSON.parse(fs.readFileSync('volcengine_result.json'));
const subtitles = result.utterances.map((u, i) => ({
  id: i + 1,
  text: u.text,
  start: u.start_time / 1000,
  end: u.end_time / 1000
}));
fs.writeFileSync('subtitles_with_time.json', JSON.stringify(subtitles, null, 2));

3.2 Agent 手動校對(不用腳本)

轉錄後,Agent 必須逐條閱讀全部字幕,手動校對以下問題:

常見誤辨識規則表

誤辨識正確類型
成風成峰同音字
正特/整特Agent誤辨識
IT就Agent就發音相似
edge的叉100Agentx100誤辨識
cloud codeClaude Code發音相似
Schill/skillskills發音相似
剪口撥/剪口波剪口播同音字
自淨化/資金化自進化同音字
減口播剪口播同音字
錄剪漏剪同音字
作為這個做這個同音字
斜槓V1/斜槓v/v口語描述
斜槓v點口撥/v.口播口語+同音
a p i t/APIKAPI Key誤辨識
excuseskills誤辨識
移完了剪完了同音字

常見漏字問題

原文修正說明
步呢是配置第二步呢是配置漏"第二"
4步就是第4步就是漏"第"
別省時間特別省時間漏"特"
這個我們的這個是我們的漏"是"
在裡面看到可以在裡面看到漏"可以"
跟大家處理完跟大家講完用詞不當
剪輯了邏輯剪輯的邏輯語法錯誤

3.3 對照原稿校對(如有原稿)

如果有原稿/腳本,可以輔助校對,但不要用腳本自動匹配(文字差異會導致時間戳累積錯誤)。

Agent 應:

  1. 讀取原稿作為參考
  2. 手動逐條對比,發現差異時修正
  3. 不確定的地方標記,留給人工審核

Step 4: 啟動審核伺服器

cd 字幕目錄/
node /path/to/skills/字幕/scripts/subtitle_server.js 8898 "video.mp4"

訪問 http://localhost:8898

功能:

  • 左側影片播放,右側字幕列表
  • 播放時自動高亮當前字幕
  • 雙擊字幕文字編輯(時間戳不變)
  • 倍速播放(1x/1.5x/2x/3x)
  • 儲存字幕 / 匯出 SRT / 燒錄字幕
  • 底部顯示詞典快捷插入

Step 5: 燒錄字幕

預設樣式:22號金黃粗體、黑色描邊2px、底部居中

ffmpeg -i "video.mp4" \
  -vf "subtitles='video.srt':force_style='FontSize=22,FontName=PingFang SC,Bold=1,PrimaryColour=&H0000deff,OutlineColour=&H00000000,Outline=2,Alignment=2,MarginV=30'" \
  -c:a copy \
  -y "video_字幕.mp4"
參數值說明
FontSize22字體大小
FontNamePingFang SC蘋方字體
Bold1粗體
PrimaryColour&H0000deff金黃色 #ffde00
OutlineColour&H00000000黑色描邊
Outline2描邊寬度
Alignment2底部居中
MarginV30底部邊距

目錄結構

output/YYYY-MM-DD_影片名/字幕/
├── 1_轉錄/
│   ├── audio.mp3
│   └── volcengine_result.json
├── subtitles_with_time.json    # 核心檔案
└── 3_輸出/
    ├── video.srt
    └── video_字幕.mp4

字幕規範

規則說明
一屏一行不換行,不堆疊
句尾無標點你好 不是 你好。
句中保留標點先點這裡,再點那裡

反饋記錄

2026-01-31

  • 火山引擎支援熱詞,已整合到轉錄腳本
  • Agent 轉錄後需要自動校對,不能直接交給使用者
  • 字幕樣式:金黃粗體 #ffde00,描邊 2px
  • IT 常被誤辨識為 Agent,需加入糾錯規則
  • 重要:Agent 校對必須手動逐條閱讀,不能用腳本自動匹配
  • 新增 17 條常見誤辨識規則(詳見 3.2 節)
  • 漏字問題比誤辨識更難發現,需要特別注意

Individual skills in this repo

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

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

相關技能