Enable log output and remove video file from wasm mem after transcode

This commit is contained in:
Jerome Wu
2019-10-30 16:21:21 +08:00
parent ff4ae62146
commit 1e558c3a36
4 changed files with 8 additions and 14 deletions

View File

@@ -10,4 +10,5 @@ const worker = createWorker();
await worker.load();
const { data } = await worker.transcode(inputPath, outputPath.split('.').pop());
fs.writeFileSync(outputPath, Buffer.from(data));
process.exit(0);
})();