Skip to content

AI video skill for Claude Code & Codex — cinematic, editable product promos with Remotion: 124 shot recipe cards, 150 motion previews, beat sync, sound design, Motion Workbench & JianYing (CapCut CN) export.

542 B
Raw Blame
export const FPS = 30;

/** 帧 → "mm:ss.ff" */
export const fmtFrames = (frames: number, fps = FPS) => {
  const f = Math.max(0, Math.round(frames));
  const totalSec = Math.floor(f / fps);
  const mm = String(Math.floor(totalSec / 60)).padStart(2, "0");
  const ss = String(totalSec % 60).padStart(2, "0");
  const ff = String(f % fps).padStart(2, "0");
  return `${mm}:${ss}.${ff}`;
};

export const framesToSec = (frames: number, fps = FPS) => frames / fps;
export const secToFrames = (sec: number, fps = FPS) => Math.round(sec * fps);