모든 캡션은 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를 여세요.