ローカル動画に字幕を焼き込む
Burn Local Subtitles into Video
手元の動画とSRT・ASS字幕から、字幕付きの新しいMP4を作ります。文字サイズ・余白・縁取りを調整でき、元動画は変更しません。
できること
ローカルの動画に、用意済みのSRTまたはASS字幕をFFmpeg/libassで焼き込みます。文字サイズ、左右と下側の余白、縁取り、フォントファミリーを指定できます。字幕は映像の一部になるため、再生側の字幕対応は不要です。
使い方
動画・字幕・保存先を指定して、まず --dry-run で計画を確認します。保存先は新しいMP4にしてください。確認後に同じコマンドから --dry-run を外すと出力します。必要なら --fonts-dir で使用権限のあるフォントを指定できます。
必要な環境
Python 3.10以降と、別途インストールしたFFmpeg・ffprobeが必要です。Pythonの追加パッケージは不要です。字幕焼き込みではlibass対応のFFmpegと必要な文字を表示できるフォントも用意してください。外部サービスへの送信や動画URLの取得は行いません。任意のYouTube URLから動画をダウンロードする機能はありません。
注意点
文字起こし・翻訳・字幕の校正は行いません。UTF-8の字幕を推奨します。フォントやASS内の配置指定によって見え方が変わるため、出力を目視確認してください。映像と音声を再エンコードし、最初の映像と任意の最初の音声のみを出力します。元ファイルと既存の出力は上書きしません。
English description
Render local SRT or ASS subtitles into a new MP4 with font, margin and outline controls. Includes a read-only dry run.
What it does
Burn existing local SRT or ASS text into the first video stream using FFmpeg/libass. Adjust font size, family, margins and outline. Optional font files are staged locally. Source paths containing a Windows drive colon, apostrophes, spaces or Unicode are never interpolated into the filtergraph.
How to use
Run the dry-run example below, review the plan and then remove --dry-run to render. Use a new MP4 path. Optional --fonts-dir accepts an existing directory of licensed TTF, OTF or TTC files; --font-name chooses the internal family name.
Requirements
Python 3.10 or newer and separately installed FFmpeg/ffprobe. No Python packages or binaries are bundled. FFmpeg must include libass/subtitles, libx264 and AAC; provide fonts with needed glyphs.
Caveats
No transcription, translation or subtitle proofreading. UTF-8 subtitles are recommended. Rendering reencodes video to H.264 and the optional first audio stream to AAC. Other streams are omitted. ASS inline styles and positioning may override style defaults. Inspect the result visually; fonts and glyph coverage differ by operating system. It does not download arbitrary YouTube URLs.
インストール方法
- ダウンロードしたZIPを展開します(中に
video-subtitle-burn-in/フォルダとSKILL.mdがあります)。 - フォルダごと、使うエージェントのスキル置き場にコピーします。
- Claude:
~/.claude/skills/(プロジェクト単位なら.claude/skills/) - Hermes Agent:
~/.hermes/skills/ - Codex:
~/.agents/skills//Cursor:~/.cursor/skills/ - Claude アプリ(claude.ai):「カスタマイズ → スキル」からZIPをアップロード
- Claude:
- エージェントを再起動し、スキル一覧に表示されることを確認します。
出品者
動画編集の準備から仕上がりの確認まで、毎日の作業を支援するスキルを制作しています。切り出し・字幕づくり・音声調整・文字起こしを、元の素材を残しながら進められるようにします。
出品スキル 10 件