remotion-captions

Работа с субтитрами в Remotion

npx skills add https://github.com/remotion-dev/skills --skill remotion-captions

All captions must be processed in JSON. The captions must use the Caption type which is the following:

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

This is the definition:

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

Generating captions

To transcribe video and audio files to generate captions, load the transcribe-captions.md file for more instructions.

Displaying captions

To display captions in your video, load the display-captions.md file for more instructions.

Importing captions

To import captions from a .srt file, load the import-srt-captions.md file for more instructions.

Post-creation

After you're done, load this skill: Remotion Best Practices (remotion-best-practices skill)

If not already done, open the Remotion Studio, unless instructed otherwise.

Больше skills от remotion-dev

3d
remotion-dev
3D-контент в Remotion с использованием Three.js и React Three Fiber.
accept-element
remotion-dev
Принять внешний вклад Remotion Element, проверив его зафиксированные превью, загрузив их в R2, удалив временные ресурсы и подготовив…
add-bug
remotion-dev
Добавить новую запись о баге Remotion в packages/bugs/api/[v].ts. Используйте, когда пользователь описывает баг и затронутые версии Remotion, которые должны быть отображены через…
add-cli-option
remotion-dev
Добавить новую опцию Remotion CLI или конфигурации, создав AnyRemotionOption, зарегистрировав парсинг CLI, подключив сеттеры конфигурации и обновив документацию. Используйте, когда…
add-effect
remotion-dev
Добавить новый эффект в @remotion/effects, включая реализацию, экспорт пакета, документацию, демо, превью-изображения, обновления навыка Remotion, тесты, форматирование и…
add-expert
remotion-dev
Добавить нового эксперта на страницу экспертов Remotion
add-new-package
remotion-dev
Добавить новый пакет в монорепозиторий Remotion, включая создание структуры пакета, регистрацию в монорепозитории, документацию, скрипты сборки, тесты и чек-лист релиза…
add-sfx
remotion-dev
Добавить новый звуковой эффект в @remotion/sfx