2019-10-30 21:24:29 +08:00
2019-10-23 21:34:56 +08:00
2019-10-30 19:55:59 +08:00
2019-10-30 20:52:58 +08:00
2019-10-24 07:47:11 +08:00
2019-10-30 21:23:51 +08:00
2019-10-25 19:22:25 +08:00
2019-10-30 20:01:04 +08:00
2019-10-20 22:37:37 +08:00
2019-10-23 21:52:04 +08:00
2019-10-30 20:21:33 +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-30 21:24:29 +08:00
2019-10-30 21:24:29 +08:00
2019-10-30 21:23:51 +08:00

ffmpeg.js

ffmpeg.js

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

Use FFmpeg directly in your browser without any backend services!!

Transcode

transcode-demo

codepen

Source Code


ffmpeg.js provides simple to use APIs, to transcode a video you only need few lines of code:

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);
})();

Installation

$ npm install @ffmpeg/ffmpeg

Documentation

WIP

Tutorials

Learn how to build ffmpeg.js from stories:

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%