🎥 Make videos programmatically with React
Merge branch 'main' into pr/100
Jonny Burger0c50f91fc16c
diff --cc packages/cli/src/render.tsxindex fccb27c2c5,59438e54ef..028e0c18b4--- a/packages/cli/src/render.tsx+++ b/packages/cli/src/render.tsx@@@ -181,23 -123,21 +181,28 @@@ export const render = async () =>fps: config.fps,outputLocation: absoluteOutputFile,force: overwrite,- imageFormat: getFrameFormat(renderMode),+ imageFormat,pixelFormat: Internals.getPixelFormat(),+ codec,+ crf,+ onProgress: (frame) => {+ stitchingProgress.update(frame);+ },});+ stitchingProgress.stop();+console.log('Cleaning up...');- await fs.promises.rmdir(outputDir, {- recursive: true,- });+ await Promise.all([+ fs.promises.rmdir(outputDir, {+ recursive: true,+ }),+ fs.promises.rmdir(bundled, {+ recursive: true,+ }),+ ]);console.log('\n▶️ Your video is ready - hit play!');} else {- console.log('\n▶️ Your PNG sequence is ready!');+ console.log('\n▶️ Your image sequence is ready!');}console.log(absoluteOutputFile);};