Communitygithub.com

zoih6/masafat-watan-video

转录、显示和动画化字幕

masafat-watan-video 是什么?

该技能专注于在Remotion视频项目中处理字幕,所有字幕必须以JSON格式处理,并遵循`@remotion/captions`库中的`Caption`类型定义。技能支持从视频或音频文件转录生成字幕,提供显示字幕的详细指令,并支持从.srt文件导入字幕。完成字幕处理后,建议加载“Remotion Best Practices”技能以优化项目。此外,如果尚未操作,应打开Remotion Studio。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/zoih6/masafat-watan-video/tree/HEAD/skills-docs/remotion-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 2 individual skills — each has its own dedicated page.

相关技能