Update node.js examples

This commit is contained in:
Jerome Wu
2020-11-05 09:39:25 +08:00
parent 8e51e9099e
commit 258646edd5
6 changed files with 7 additions and 9 deletions

View File

@@ -17,6 +17,6 @@ const ffmpeg = createFFmpeg({ log: true });
const num = `00${i}`.slice(-3);
await ffmpeg.FS('unlink', `tmp.${num}.png`);
}
fs.writeFileSync('out.mp4', ffmpeg.FS('readFile', 'out.mp4'));
await fs.promises.writeFile('out.mp4', ffmpeg.FS('readFile', 'out.mp4'));
process.exit(0);
})();