Polyfill for WebCodecs, powered by ffmpeg.wasm
| .github | ||
| docs/images | ||
| examples | ||
| scripts | ||
| src | ||
| tests/assets | ||
| _config.yml | ||
| .eslintrc | ||
| .gitattributes | ||
| .gitignore | ||
| .npmignore | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
ffmpeg.js
Use FFmpeg directly in your browser without any backend services!!
Transcode Example
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: