async function renderMosaicVideo(){ const fps = 30; const duration = Math.min(srcVideo.duration, 60*10); // limit if needed const totalFrames = Math.floor(duration * fps);