Skip to content

Commit 9984988

Browse files
committed
Add node version limitation
1 parent c92ee88 commit 9984988

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
# ffmpeg.js
88

9+
[![Node Version](https://img.shields.io/node/v/@ffmpeg/ffmpeg.svg)](https://img.shields.io/node/v/@ffmpeg/ffmpeg.svg)
910
[![Actions Status](https://github.com/ffmpegjs/ffmpeg.js/workflows/CI/badge.svg)](https://github.com/ffmpegjs/ffmpeg.js/actions)
1011
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/ffmpegjs/ffmpeg.js/graphs/commit-activity)
1112
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
@@ -60,6 +61,8 @@ const worker = createWorker();
6061
$ npm install @ffmpeg/ffmpeg
6162
```
6263

64+
> As we use `worker_threads` which was introduced in Node.js v10.5.0, please remember to add `--experimental-worker` if you are using Node.js v10, and you don't have to add anything if you are using Node.js v12
65+
6366
## Documentation
6467

6568
- [API](https://github.com/ffmpegjs/ffmpeg.js/blob/master/docs/api.md)

docs/api.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,14 @@ Worker.concatDemuxer() concatenates multiple videos using concatDemuxer. This me
204204
})();
205205
```
206206

207+
If the input video files are the same as the output video file, you can pass an extra option to speed up the process
208+
209+
```javascript
210+
(async () => {
211+
await worker.concatDemuxer(["flame-1.mp4", "flame-2.mp4"], "output.mp4", "-c copy");
212+
})();
213+
```
214+
207215
<a name="worker-run"></a>
208216

209217
### Worker.run(args, jobId): Promise

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
"bugs": {
3737
"url": "https://github.com/ffmpegjs/ffmpeg.js/issues"
3838
},
39+
"engines": {
40+
"node": ">=10.5.0"
41+
},
3942
"homepage": "https://github.com/ffmpegjs/ffmpeg.js#readme",
4043
"dependencies": {
4144
"@ffmpeg/core": "^0.6.0",

0 commit comments

Comments
 (0)