Communitygithub.com

Guilhermeslvg/video-portfolio

转录、显示和制作视频字幕动画

video-portfolio 是什么?

该技能专注于使用 JSON 格式的视频字幕处理。它要求字幕必须符合 Remotion 框架中 `@remotion/captions` 包定义的 `Caption` 类型。通过对音视频文件进行转录生成字幕、在视频中显示字幕、以及从 `.srt` 格式导入字幕,开发者可以灵活地集成字幕功能。该技能还提供了后续优化建议,例如加载 Remotion 最佳实践技能,并提醒开发者准备就绪后打开 Remotion Studio。整个过程高度结构化,便于开发者在组件化视频编辑环境中维护和调整字幕表现,实现专业的动画效果。支持平台包括所有使用 Remotion 的项目。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Guilhermeslvg/video-portfolio/tree/HEAD/.agents/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 最佳实践

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

Individual skills in this repo

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

相关技能