Polyfill for WebCodecs, powered by ffmpeg.wasm
Go to file
2019-10-23 20:46:03 +08:00
.github/ISSUE_TEMPLATE Update issue templates 2019-10-23 14:20:58 +08:00
docs/images Add eslint & update README 2019-10-23 20:46:03 +08:00
examples Init commit 2019-10-20 22:37:37 +08:00
src Add eslint & update README 2019-10-23 20:46:03 +08:00
tests/assets Init commit 2019-10-20 22:37:37 +08:00
.eslintrc Add eslint & update README 2019-10-23 20:46:03 +08:00
.gitattributes Init commit 2019-10-20 22:37:37 +08:00
.gitignore Init commit 2019-10-20 22:37:37 +08:00
.npmignore Add eslint & update README 2019-10-23 20:46:03 +08:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2019-10-23 14:21:41 +08:00
CONTRIBUTING.md Create CONTRIBUTING.md 2019-10-23 14:22:11 +08:00
LICENSE Create LICENSE 2019-10-23 14:20:17 +08:00
package-lock.json Add eslint & update README 2019-10-23 20:46:03 +08:00
package.json Add eslint & update README 2019-10-23 20:46:03 +08:00
README.md Add eslint & update README 2019-10-23 20:46:03 +08:00

FFmpeg.js

Tesseract.js

A FFmpeg WebAssembly version built from scratch, you can learn how to do it from this series of stories: Build FFmpeg WebAssembly version (=ffmpeg.js).


Installation

$ npm install @ffmpeg/ffmpeg

Example

const fs = require('fs');
const ffmpeg = require('@ffmpeg/ffmpeg');

(async () => {
  await ffmpeg.load();
  const data = ffmpeg.transcode('./test.avi', 'mp4');
  fs.wrieFileSync('./test.mp4', data);
})();