diff --git a/README.md b/README.md index 0727a1d..9f64681 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,3 @@ -# Please visit [Kagami/ffmpeg.js](https://github.com/Kagami/ffmpeg.js/) if you are looking for ffmpeg.js - -
@@ -45,11 +42,9 @@ Use FFmpeg directly in your browser without any backend services!!
| ---- | ------- | ----------- |
| Webcam |
@@ -18,7 +15,7 @@
[](https://www.npmjs.com/package/@ffmpeg/ffmpeg)
[](https://www.npmjs.com/package/@ffmpeg/ffmpeg)
-Use FFmpeg directly in your browser without any backend services!!
+ffmpeg.wasm is a pure Webassembly / Javascript port of FFmpeg. It enables video & audio record, convert and stream right inside browsers.
**Transcode**
| [Link](https://github.com/ffmpegwasm/ffmpeg.wasm/blob/master/examples/browser/webcam.html) |
-## Supported Formats
+## Supported External Libraries
-- mp4 (x264)
-- webm (vp8/vp9) (^0.8.0)
-- mp3 (^0.8.0)
+Check [HERE](https://github.com/ffmpegwasm/ffmpeg.wasm-core#configuration)
---
@@ -57,15 +52,15 @@ ffmpeg.wasm provides simple to use APIs, to transcode a video you only need few
```javascript
const fs = require('fs');
-const { createFFmpeg } = require('@ffmpeg/ffmpeg');
+const { createFFmpeg, fetchFile } = require('@ffmpeg/ffmpeg');
const ffmpeg = createFFmpeg({ log: true });
(async () => {
await ffmpeg.load();
- await ffmpeg.write('test.avi', './test.avi');
+ ffmpeg.FS('writeFile', 'test.avi', await fetchFile('./test.avi'));
await ffmpeg.transcode('test.avi', 'test.mp4');
- fs.writeFileSync('./test.mp4', ffmpeg.read('test.mp4'));
+ fs.writeFileSync('./test.mp4', ffmpeg.FS('readFile', 'test.mp4'));
process.exit(0);
})();
```
@@ -73,7 +68,7 @@ const ffmpeg = createFFmpeg({ log: true });
## Installation
```
-$ npm install @ffmpeg/ffmpeg
+$ npm install @ffmpeg/ffmpeg @ffmpeg/core
```
> As we are using the latest experimental features, you need to add few flags to run in Node.js
@@ -92,17 +87,17 @@ Or, using a script tag in the browser (only works in Chrome):
```
-## Multi-thread
+## Multi-threading
-Starting from v0.8.0, multithreading is enabled and you can use this feature by passing `-threads