remotion-captions

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
All captions must be processed in JSON. The captions must use the
Caption
type which is the following:
ts
import type { Caption } from "@remotion/captions";
This is the definition:
ts
type Caption = {
  text: string;
  startMs: number;
  endMs: number;
  timestampMs: number | null;
  confidence: number | null;
};
所有字幕必须以JSON格式处理。字幕必须使用
Caption
类型,定义如下:
ts
import type { Caption } from "@remotion/captions";
以下是该类型的定义:
ts
type Caption = {
  text: string;
  startMs: number;
  endMs: number;
  timestampMs: number | null;
  confidence: number | null;
};

Generating captions

生成字幕

To transcribe video and audio files to generate captions, load the transcribe-captions.md file for more instructions.
如需转录视频和音频文件以生成字幕,请查看transcribe-captions.md文件获取更多说明。

Displaying captions

显示字幕

To display captions in your video, load the display-captions.md file for more instructions.
如需在视频中显示字幕,请查看display-captions.md文件获取更多说明。

Importing captions

导入字幕

To import captions from a .srt file, load the import-srt-captions.md file for more instructions.
如需从.srt文件导入字幕,请查看import-srt-captions.md文件获取更多说明。