🎥 Make videos programmatically with React
make old node versions throw an error message
Jonny Burgerc0d3f294dd59
diff --git a/packages/renderer/src/stitch-frames-to-video.ts b/packages/renderer/src/stitch-frames-to-video.tsindex b14f58369c..118bef78c2 100644--- a/packages/renderer/src/stitch-frames-to-video.ts+++ b/packages/renderer/src/stitch-frames-to-video.ts@@ -1,6 +1,5 @@import execa from 'execa';-import fs from 'fs';-import {readFile} from 'fs/promises';+import fs, {promises} from 'fs';import path from 'path';import type {TAsset} from 'remotion';import {Internals} from 'remotion';@@ -319,7 +318,8 @@ export const spawnFfmpeg = async (const file = await new Promise<Buffer | null>((resolve, reject) => {if (tempFile) {- readFile(tempFile)+ promises+ .readFile(tempFile).then((f) => {return resolve(f);})