Communitygithub.com

3bkader-gpt/remotion-tiktok-gym-editor

转录、显示和动画化字幕

remotion-tiktok-gym-editor 是什么?

此技能专注于为 Remotion 视频项目处理字幕,支持从视频/音频文件转录生成字幕、显示字幕以及从 .srt 文件导入字幕。它要求所有字幕数据必须符合 Remotion 官方的 `Caption` 类型(包含 text、startMs、endMs 等字段),并存储在 JSON 格式中。该技能适用于 TikTok、健身视频等需要动态字幕动画的场景,主要运行在 Remotion 平台上。使用流程包括:先通过技能内的指南进行转录,然后根据需求选择显示或导入字幕,最后可加载 Remotion 最佳实践技能进行优化。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/3bkader-gpt/remotion-tiktok-gym-editor/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 2 individual skills — each has its own dedicated page.

相关技能