Communitygithub.com

wataee/ai-video-editing

자막을 텍스트로 변환, 표시 및 애니메이션 처리

ai-video-editing란 무엇인가요?

이 스킬은 AI 기반 비디오 편집에서 자막을 처리하는 방법을 제공합니다. 주로 Remotion 라이브러리를 사용하여 자막을 JSON 형식으로 처리하며, `Caption` 타입을 정의하여 각 자막의 텍스트, 시작 및 종료 시간, 정확도 등을 명시합니다. 비디오 및 오디오 파일에서 자막을 생성하려면 `transcribe-captions.md` 파일을 참조하고, 생성된 자막을 비디오에 표시하려면 `display-captions.md` 파일을 로드해야 합니다. 또한 `.srt` 파일에서 자막을 가져오는 방법은 `import-srt-captions.md` 파일을 통해 설명됩니다. 이 스킬은 Remotion Studio 환경에서 주로 사용되며, 작업 완료 후 'Remotion Best Practices' 스킬을 로드하여 모범 사례를 적용하는 것이 권장됩니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/wataee/ai-video-editing/tree/HEAD/references/remotion-skills-official/skills/remotion-captions

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

모든 자막은 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.

관련 스킬