INNER CODE UNIT · TypeScript

multipleOf2

vargHQ/sdk · src/ai-sdk/providers/editly/index.ts:43

function multipleOf2(n: number): number {
  return Math.round(n / 2) * 2;
}

async function getVideoDuration(
  path: string,
  backend: FFmpegBackend,
): Promise<number> {
  const info = await backend.ffprobe(path);
  return info.duration;
}

async function getFirstVideoInfo(
  clips: Clip[],
  backend: FFmpegBackend,
): Promise<{
  width?: number;
  height?: number;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…