webm-to-mp4
v1.0.0
Published
Convert a webm video to mp4.
Downloads
2,495
Maintainers
Readme
webm-to-mp4
Convert a webm video to mp4.
Useful for handling MediaRecorder output.
Install
npm install webm-to-mp4
Usage
const { promises: fs } = require("fs");
const webmToMp4 = require("webm-to-mp4");
await fs.writeFile("file.mp4", Buffer.from(webmToMp4(await fs.readFile("file.webm"))));
API
webmToMp4(webmData)
input
Type: Iterable
(includes Buffers, ArrayBuffers and Uint8Arrays)
The webm data to convert.