2019-10-20 22:37:37 +08:00
2019-10-20 22:37:37 +08:00
2019-10-20 22:37:37 +08:00
2019-10-20 22:37:37 +08:00
2019-10-20 22:37:37 +08:00
2019-10-20 22:37:37 +08:00
2019-10-20 22:37:37 +08:00
2019-10-20 22:37:37 +08:00
2019-10-20 22:37:37 +08:00

FFmpeg.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);
})();
Description
Polyfill for WebCodecs, powered by ffmpeg.wasm
Readme 16 MiB
Languages
C 83.9%
TypeScript 7.9%
JavaScript 2.4%
HTML 2.2%
Shell 1.5%
Other 2.1%