本文へスキップ
Skillpedia
動画編集14k · #11257

krillinai-subtitle

できること

このスキルは、動画の字幕ファイルを別の言語に翻訳して作ります。2言語を組み合わせた版も含められます。別の言語の動画に字幕を付けたいクリエイター向けです。

使う場面

  • ✓YouTubeやほかのオンライン動画があり、別の言語の字幕が欲しいとき。
  • ✓字幕が必要なローカルの動画ファイルがあるとき。
  • ✓完全版に加えて、短い縦向きの字幕版も必要なとき。

スキルのリンク

https://github.com/krillinai/OpenCreator/blob/master/skills/krillinai-subtitle/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/krillinai/OpenCreator/blob/master/skills/krillinai-subtitle/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“このYouTubeのリンクの英語の字幕と中国語の翻訳を作り、後の工程のために元の動画は残しておいてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、字幕があればプラットフォームの字幕を使い、なければ音声を文字起こしし、その後テキストを翻訳して字幕ファイルを書きます。後の工程で使えるよう、元の動画は残します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

KrillinAI Subtitle

Use this skill for the subtitle stage. Read skills/krillinai-cli/references/cli-contract.md first for binary location, execution working directory, configuration, and JSON behavior.

Command

(cd "$KRILLINAI_CWD" && "$KRILLINAI_CLI" subtitle "<input>" \
  --origin-lang en \
  --target-lang zh_cn \
  --workdir "$WORKDIR" \
  --caption-source any \
  --prepare-video)

Inputs

  • YouTube URL: prefer --caption-source any; platform captions are used first, then Whisper fallback.
  • Local file: use local:/abs/path/video.mp4 or a path accepted by the CLI.
  • Bilibili or other yt-dlp supported links: use when media download works; platform caption behavior may differ, so expect transcription fallback.

Important Flags

Flag Use
--origin-lang Source language, such as en, zh, ja
--target-lang Target language, such as zh_cn
--workdir Dedicated task directory
--caption-source any Prefer platform captions, fallback to transcription
--caption-source whisper Force transcription
--prepare-video Require the original video for later render stages
--bilingual-top=true Put target language on top in bilingual SRT
--subtitle-style-file Merge a JSON subtitle-style override
--dry-run Validate without downloads or AI calls

Outputs

After a real run, read paths from krillinai_manifest.json. Main files:

  • origin_language_srt.srt
  • target_language_srt.srt
  • bilingual_srt.srt
  • short_origin_mixed_srt.srt
  • origin_video.mp4 when media preparation produced or required video
  • origin_audio.mp3 when transcription preparation produced audio

subtitle --dry-run validates command shape but does not write a manifest or output files.

Verification

  • Require terminal JSON with "ok": true.
  • Confirm krillinai_manifest.json exists under --workdir.
  • Spot-check bilingual_srt.srt ordering and short_origin_mixed_srt.srt readability.
  • When --prepare-video was requested, require a non-empty origin_video output.
  • For Agent integration details, read skills/krillinai-cli/references/cli-contract.md.
よくある質問

動画に字幕がない場合は?

予備として、このスキルが音声を自動で文字起こしします。

Bilibiliやローカルの動画でも使えますか?

はい。ローカルのファイルや対応する他のサイトを使えますが、字幕の結果は異なることがあります。

翻訳を上に置けますか?

はい。バイリンガルのファイルで、翻訳先の言語を上に配置できます。

詳細

作者による元の説明

Use when generating subtitles with KrillinAI CLI from a YouTube link, Bilibili/local video, or existing media, including platform caption download, Whisper fallback, translation, bilingual SRT, and short vertical subtitle output.

repo: krillinai/OpenCreator

人気

GitHubのスター
14k
ランキング
#11257
ライセンス
Apache-2.0
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル