Communitygithub.com

ComeOnOliver/skillshub

字幕生成与烧录。火山引擎转录→词典纠错→审核→烧录。触发词:加字幕、生成字幕、字幕

skillshub とは?

このスキルは、動画ファイルに高品質な字幕を生成し、焼き付けるためのエージェントスキルです。主なワークフローは、ffmpegによる音声抽出、uguu.seへのアップロード、火山引擎(Volcengine)の音声認識(ホットワード対応)による文字起こし、Agentによる自動校正(誤認識・脱落文字の修正)、ユーザーによる手動確認、そして最終的なffmpegを用いた字幕焼き付け(黄色太字・黒縁取りスタイル)の5ステップで構成されます。編集完了後に呼び出す後置スキルであり、対応プラットフォームはClaude Code等のAIエージェント環境を想定しています。校正では、発音類似による誤認識や「第」「特」「可以」などの脱落文字を手動で確認・修正するプロセスが重要視されており、エージェントが自動で行うのではなく、人間の確認を挟むことで品質を担保します。ホットワード辞書により専門用語の認識精度を高められます。

対応✓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校正 → 手動確認 → 焼き付け

コアフロー(合計約8~15分、手動確認含む)

1. 音声抽出 + アップロード          ⏱ ~1分
    ↓
2. 火山引擎文字起こし(ホットワード)    ⏱ ~2分
    ↓
3. Agent自動校正        ⏱ ~3~5分
    ↓
4. 手動確認              ⏱ ユーザー次第
    ↓
5. 字幕焼き付け          ⏱ ~1~2分

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"

辞書形式(1行1語):

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は字幕を1行ずつすべて読み、以下の問題を手動で校正する必要があります。

よくある誤認識のルール表

誤認識正解タイプ
成风成峰同音異字
正特/整特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. 1行ずつ手動で比較し、違いがあれば修正する
  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: 字幕焼き付け

デフォルトスタイル:22pt 金色太字、黒縁取り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

字幕仕様

ルール説明
1画面1行改行なし、重ねなし
文末に句読点なし你好 であって 你好。 ではない
文中に句読点あり先点这里,再点那里 のように

フィードバック記録

2026-01-31

  • 火山引擎でホットワードをサポート、文字起こしスクリプトに統合済み
  • Agentは文字起こし後に自動校正を行い、直接ユーザーに渡さないこと
  • 字幕スタイル:金色太字 #ffde00、縁取り2px
  • ITはよくAgentとして誤認識されるため、誤認識ルールに追加
  • 重要:Agent校正は、各字幕を手動で1行ずつ読み、スクリプトによる自動マッチングは使用しないこと
  • よくある誤認識ルールを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

関連スキル