Polyfill for WebCodecs, powered by ffmpeg.wasm
Go to file
2019-10-30 19:55:59 +08:00
.github Test node 10 only 2019-10-23 21:34:56 +08:00
docs/images Update README.md 2019-10-30 19:55:59 +08:00
examples Upgrade ffmpeg-core.js and update examples 2019-10-30 19:27:35 +08:00
scripts Refactor to worker version 2019-10-24 07:47:11 +08:00
src Remove debug log 2019-10-30 17:58:42 +08:00
tests/assets Upgrade ffmpeg-core.js and update examples 2019-10-30 19:27:35 +08:00
_config.yml Set theme jekyll-theme-cayman 2019-10-25 19:22:25 +08:00
.eslintrc Merge master 2019-10-25 19:18:23 +08:00
.gitattributes Init commit 2019-10-20 22:37:37 +08:00
.gitignore Add webpack 2019-10-23 21:52:04 +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 Upgrade ffmpeg-core.js and update examples 2019-10-30 19:27:35 +08:00
package.json Upgrade ffmpeg-core.js and update examples 2019-10-30 19:27:35 +08:00
README.md Update README.md 2019-10-30 19:55:59 +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 Example

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: