040b989d5d57a0e71550d49169b69dff9216e287
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:
Description
Languages
C
83.9%
TypeScript
7.9%
JavaScript
2.4%
HTML
2.2%
Shell
1.5%
Other
2.1%