webm-to-mp4
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

webm-to-mp4 Travis CI Build Status

Convert a webm video to mp4.

Useful for handling MediaRecorder output.

NPM Badge

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.

Package Sidebar

Install

npm i webm-to-mp4

Weekly Downloads

257

Version

1.0.0

License

MIT

Unpacked Size

3.55 kB

Total Files

6

Last publish

Collaborators

  • richienb