Merge pull request #104 from ad-m/patch-1
Use promises to writeFile in README
This commit is contained in:
commit
8e51e9099e
@ -66,7 +66,7 @@ const ffmpeg = createFFmpeg({ log: true });
|
||||
await ffmpeg.load();
|
||||
ffmpeg.FS('writeFile', 'test.avi', await fetchFile('./test.avi'));
|
||||
await ffmpeg.run('-i', 'test.avi', 'test.mp4');
|
||||
fs.writeFileSync('./test.mp4', ffmpeg.FS('readFile', 'test.mp4'));
|
||||
await fs.promises.writeFile('./test.mp4', ffmpeg.FS('readFile', 'test.mp4'));
|
||||
process.exit(0);
|
||||
})();
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user