zenstory-ai/video-recap-skills / skills/video-recap
video-recap
Verified把一段或多集视频做成带画框字幕的中文解说成片或纯原声高光短片。用户提供 .mp4 / .mov / .mkv / .webm,要求做影视解说、短剧二创、加旁白配音、跨集混剪或导出剪映草稿时使用;串联完成看片识台词、定主线与留原声、按台词停顿切镜头、写词检查、TTS 配音与混音加字幕。触发词:视频解说、影视解说、视频旁白、生成解说、视频 recap、video recap、voiceover、narration、recap。
scripts/render_preflight.py
View on GitHub"""Local ffmpeg capability preflight for subtitle burn-in."""
import shutil
from lib import CONFIG, ffmpeg_filters, log
LIBASS_MISSING = "ffmpeg_missing_libass"
def _ffmpeg_filters():
"""Return ffmpeg's compiled-in filter names, or empty set on probe failure."""
try:
return ffmpeg_filters()
except RuntimeError:
return set()
def _preflight_burn_subtitles():
"""Settle subtitle burn-in before the render when ffmpeg lacks the libass `subtitles`
filter. An explicit request (--burn-subtitles or BURN_SUBTITLES in the environment)
fails here. The implicit default degrades: burn turns off, the reason is recorded in
CONFIG["burn_subtitles_degraded"], and the run delivers the .srt sidecar instead."""
if not CONFIG["burn_subtitles"]:
return
if shutil.which("ffmpeg") is None:
return
if "subtitles" in _ffmpeg_filters():
return
if CONFIG["burn_subtitles_explicit"]:
raise SystemExit(
"已显式要求烧录字幕(--burn-subtitles 或 BURN_SUBTITLES),但当前 ffmpeg 不支持"
" subtitles/libass 滤镜,渲染会在最后一步失败。\n"
" 解决:安装带 libass 的 ffmpeg;或去掉显式烧录要求,默认运行会改为输出 .srt 外挂字幕;"
"或加 --no-burn-subtitles。"
)
CONFIG["burn_subtitles"] = False
CONFIG["burn_subtitles_degraded"] = LIBASS_MISSING
log(
"⚠️ 当前 ffmpeg 不支持 subtitles/libass 滤镜:本次不烧录字幕,改为输出 .srt 外挂字幕"
"(visual_qc.json / assembly_manifest.json 记录 subtitle_burn_degraded)。"
"要烧录字幕请安装带 libass 的 ffmpeg。"
)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |