2019-10-23 21:34:56 +08:00
2019-10-23 20:46:03 +08:00
2019-10-24 07:47:11 +08:00
2019-10-20 22:37:37 +08:00
2019-10-25 19:18:23 +08:00
2019-10-20 22:37:37 +08:00
2019-10-23 21:52:04 +08:00
2019-10-23 20:46:03 +08:00
2019-10-23 14:21:41 +08:00
2019-10-23 14:22:11 +08:00
2019-10-23 14:20:17 +08:00
2019-10-25 19:18:23 +08:00
2019-10-25 19:07:48 +08:00

FFmpeg.js

Actions Status Maintenance License: MIT Code Style Downloads Total Downloads Month

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 { createWorker } = require('@ffmpeg/ffmpeg');

const worker = createWorker();

(async () => {
  await worker.load();
  const { data } = await worker.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%