Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ffmpeg-captions-subtitles

БесплатноБез исполняемых скриптовНе проверен

Complete subtitle and caption system for FFmpeg 7.1 LTS and 8.0.1 (latest stable, released 2025-11-20). PROACTIVELY activate for: (1) Burning subtitles…

JosiahSiegelот JosiahSiegel★ 67 звёзд на GitHub

Об этом скилле

CRITICAL GUIDELINES

Windows File Path Requirements

MANDATORY: Always Use Backslashes on Windows for File Paths

When using Edit or Write tools on Windows, you MUST use backslashes (\) in file paths, NOT forward slashes (/).

Documentation Guidelines

NEVER create new documentation files unless explicitly requested by the user.


Quick Reference

Task Command
Burn SRT ffmpeg -i video.mp4 -vf "subtitles=subs.srt" output.mp4
Burn ASS ffmpeg -i video.mp4 -vf "ass=subs.ass" output.mp4
Add soft sub ffmpeg -i video.mp4 -i subs.srt -c copy -c:s mov_text output.mp4
Extract sub ffmpeg -i video.mkv -map 0:s:0 output.srt
Style subs -vf "subtitles=s.srt:force_style='FontSize=24,PrimaryColour=&HFFFFFF'"
Text overlay -vf "drawtext=text='Hello':x=10:y=10:fontsize=24:fontcolor=white"
Format Extension Best For
SRT .srt Simple, universal
ASS .ass Styled, animated, anime
VTT .vtt Web/HTML5 video

When to Use This Skill

Use for subtitle and caption operations:

  • Hardcoding (burning) subtitles into video
  • Adding soft subtitle tracks to containers
  • Extracting subtitles from MKV/MP4
  • Styling captions (font, color, position)
  • Dynamic text overlays

FFmpeg Captions and Subtitles (2025)

Complete guide to working with subtitles, closed captions, and text overlays using FFmpeg.

Subtitle Format Reference

Supported Formats

Format Extension Features Use Case
SubRip .srt Simple timing + text Universal, web
Advanced SubStation Alpha .ass/.ssa Rich styling, positioning, effects Anime, styled subs
WebVTT .vtt Web standard, cues, styling HTML5 video
TTML/DFXP .ttml/.dfxp Broadcast, accessibility Streaming services
MOV Text .mov (embedded) QuickTime native Apple ecosystem
DVB Subtitle (embedded) Bitmap-based European broadcast
PGS .sup Blu-ray bitmap subtitles Blu-ray
CEA-608/708 (embedded) Closed captions US broadcast, streaming

Format Characteristics

SRT (SubRip):
- Simple text-based format
- Supports basic HTML tags (<b>, <i>, <u>)
- Widely compatible
- No positioning or advanced styling

ASS/SSA:
- Advanced styling (fonts, colors, outlines)
- Precise positioning anywhere on screen
- Animation and effects support
- Karaoke timing

WebVTT:
- HTML5 standard format
- CSS-like styling
- Cue settings for positioning
- Speaker identification

Burning Subtitles (Hardcoding)

Basic Subtitle Burn-in

# Burn SRT subtitles
ffmpeg -i video.mp4 -vf "subtitles=subs.srt" output.mp4

# Burn ASS/SSA subtitles (preserves styling)
ffmpeg -i video.mp4 -vf "ass=subs.ass" output.mp4

# Burn subtitles from MKV container
ffmpeg -i video.mkv -vf "subtitles=video.mkv" output.mp4

# Burn specific subtitle track (index 0)
ffmpeg -i video.mkv -vf "subtitles=video.mkv:si=0" output.mp4

# Burn subtitles with stream index
ffmpeg -i video.mkv -vf "subtitles=video.mkv:stream_index=1" output.mp4

Styled Subtitle Burn-in

# Force style (overrides subtitle styling)
ffmpeg -i video.mp4 \
  -vf "subtitles=subs.srt:force_style='FontName=Arial,FontSize=24,PrimaryColour=&HFFFFFF,OutlineColour=&H000000,Outline=2,Shadow=1'" \
  output.mp4

# Yellow subtitles with black outline
ffmpeg -i video.mp4 \
  -vf "subtitles=subs.srt:force_style='FontSize=28,PrimaryColour=&H00FFFF,OutlineColour=&H000000,Outline=3'" \
  output.mp4

# Larger font for accessibility
ffmpeg -i video.mp4 \
  -vf "subtitles=subs.srt:force_style='FontSize=36,Bold=1'" \
  output.mp4

ASS Style Parameters

Parameter Description Example
FontName Font family FontName=Arial
FontSize Size in points FontSize=24
PrimaryColour Text color (AABBGGRR) PrimaryColour=&HFFFFFF
SecondaryColour Karaoke color SecondaryColour=&H00FFFF
OutlineColour Outline/border color OutlineColour=&H000000
BackColour Shadow/background color BackColour=&H80000000
Bold Bold text (0/1) Bold=1
Italic Italic text (0/1) Italic=1
Underline Underlined text (0/1) Underline=1
Outline Outline width Outline=2
Shadow Shadow depth Shadow=1
Alignment Position (numpad style) Alignment=2
MarginL/R/V Margins in pixels MarginV=50

Color Format (ASS)

ASS uses &HAABBGGRR format (Alpha, Blue, Green, Red):
- White: &HFFFFFF or &H00FFFFFF
- Black: &H000000 or &H00000000
- Yellow: &H00FFFF (00-Blue, FF-Green, FF-Red)
- Red: &H0000FF
- Blue: &HFF0000
- 50% transparent black: &H80000000

Adding Subtitle Tracks (Soft Subs)

Embed SRT as Track

# Add SRT to MP4 (MOV text)
ffmpeg -i video.mp4 -i subs.srt \
  -c copy -c:s mov_text \
  output.mp4

# Add SRT to MKV
ffmpeg -i video.mp4 -i subs.s
Полный SKILL.md на GitHub

Установить ffmpeg-captions-subtitles в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/drawtext-and-whisper.md

FAQ

Что делает скилл ffmpeg-captions-subtitles?

Complete subtitle and caption system for FFmpeg 7.1 LTS and 8.0.1 (latest stable, released 2025-11-20). PROACTIVELY activate for: (1) Burning subtitles (hardcoding SRT/ASS/VTT), (2) Adding soft subtitle tracks, (3) Extracting subtitles from video, (4) Subtitle format conversion, (5) Styled captions (font, color, outline, shadow), (6) Subtitle positioning and alignment, (7) CEA-608/708 closed captions, (8) Text overlays with drawtext, (9) Whisper AI automatic transcription (FFmpeg 8.0+ with VAD, multi-language, GPU), (10) Batch subtitle processing. Provides: Format reference tables, styling parameter guide, position alignment charts, Whisper model comparison, VAD configuration, dynamic text examples, accessibility best practices. Ensures: Professional captions with proper styling and accessibility compliance.

Как установить скилл ffmpeg-captions-subtitles?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ffmpeg-captions-subtitles запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ffmpeg-captions-subtitles с