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