INNER CODE UNIT · TypeScript
aspectRatio
vargHQ/sdk · src/ai-sdk/providers/editly/index.ts:749
const aspectRatio = width / height;
width = multipleOf2(Math.round(320 * Math.sqrt(aspectRatio)));
height = multipleOf2(Math.round(320 * Math.sqrt(1 / aspectRatio)));
}
if (verbose) {
console.log(`Output: ${width}x${height} @ ${fps}fps`);
}
const clips = await processClips(clipsIn, defaults, backend);
const continuousVideoOverlays = collectContinuousVideoOverlays(clips);
const imageOverlays = collectImageOverlays(clips);
const overlayInputs: string[] = [];
const videoOverlayInputMap = new Map<string, number>();
const imageOverlayInputMap = new Map<string, number>();
for (const [key, { layer }] of continuousVideoOverlays) {