Communitygithub.com

Hownameee/short-videos

转录、显示和动画化字幕

short-videos 是什么?

该技能专注于在视频处理流程中处理字幕,支持字幕的转录、显示、动画化以及从外部文件导入。所有字幕数据必须以 JSON 格式处理,并符合 `@remotion/captions` 包中定义的 `Caption` 类型,该类型包含 `text`、`startMs`、`endMs`、`timestampMs`、`confidence` 和可选的 `pageBreakAfter` 字段。通过加载相应的子技能文件,您可以实现视频/音频的语音转文字转录、在 Remotion 视频中显示字幕,以及从 .srt 文件导入字幕。完成字幕处理后,建议加载“Remotion Best Practices”技能以优化工作流程,并打开 Remotion Studio 进行进一步编辑。该技能适用于使用 Remotion 进行视频制作的开发者,支持自定义字幕样式和动画效果。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Hownameee/short-videos/tree/HEAD/.agent/skills/remotion-captions

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

所有字幕必须以 JSON 格式处理。字幕必须使用 Caption 类型,其定义如下:

import type { Caption } from "@remotion/captions";

定义如下:

type Caption = {
  text: string;
  startMs: number;
  endMs: number;
  timestampMs: number | null;
  confidence: number | null;
  pageBreakAfter?: boolean;
};

生成字幕

要转录视频和音频文件以生成字幕,请加载 transcribe-captions.md 文件获取更多说明。

显示字幕

要在视频中显示字幕,请加载 display-captions.md 文件获取更多说明。

导入字幕

要从 .srt 文件导入字幕,请加载 import-srt-captions.md 文件获取更多说明。

后期处理

完成后,请加载此技能:Remotion Best Practices

如果尚未完成,请打开 Remotion Studio,除非另有指示。

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

Hownameee/short-videos

Generate, revise or troubleshoot local Kokoro narration, pronunciation and scene word timing. Reuse verified unchanged clips; inspect the Python environment before setup changes. Exclude research, visuals, music composition and publishing.

Hownameee/short-videos

Router for all Remotion skills

Hownameee/short-videos

Structure Remotion markup for interactivity

Hownameee/short-videos

Remotion Map animation knowledge

Hownameee/short-videos

Content, animation and effects best practices

Hownameee/short-videos

Upgrade Remotion, and related packages

Hownameee/short-videos

>- Run Phase 1 of the shared short-video workflow: turn a raw topic or prompt into a sourced research pack and 2–4 distinct video directions, each with a defensible tension hook, promise, payoff, beats, visual approach, duration range, and risks. Use whenever the user asks for video ideas, angles, research, facts, hooks, topic analysis, or choices before scriptwriting. Stop for the user's direction choice and do not silently continue into script or production.

Hownameee/short-videos

Produce an approved short video or correct an existing video's background sound, emotion, captions, mix or export. Generate only changed narration, render and review a current preview, run technical and editorial QC, then export. Exclude script-only and general audio-advice requests.

Hownameee/short-videos

>- Run Phase 2 of the shared short-video workflow: convert an explicitly selected direction and its research into a reviewable beat sheet, narration, flexible scene timing, on-screen text, visual plan, captions, music and SFX cues, pronunciation notes, payoff, takeaway, and contextual CTA. Use whenever a user asks to write, revise, preview, or approve a short-video script. Stop for script approval and do not generate TTS or render video yet.

Hownameee/short-videos

>- Design and review a coherent visual system for short-form video before and during Remotion implementation. Use for video art direction, scene UI, typography, layout, color, diagrams, captions, motion, transitions, platform safe areas, or visual-quality review. Use Remotion skills separately for API, timeline, media, Studio, and rendering behavior; do not use this skill for narration-only or research-only work.

Hownameee/short-videos

Coordinate prompt-to-short-video discovery, scripting and production. Resume existing projects and route soundtrack or mix corrections directly to production. Preserve direction choice and script approval; exclude general audio advice.

相关技能