Remove data from path file in run script

After the release of v0.60 the path in worker.run from /data/filename to filename 

https://github.com/ffmpegjs/ffmpeg.js/blob/master/src/createWorker.js#L72
This commit is contained in:
Ilias Haddad 2020-02-06 20:09:09 +01:00 committed by GitHub
parent 076b83b3a6
commit 2bae08600a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,13 +220,13 @@ Worker.run() is similar to FFmpeg cli tool, aims to provide maximum flexiblity f
**Arguments:**
- `args` a string to represent arguments, note: inputPath must start with `/data/` as worker.write write to this path by default.
- `args` a string to represent arguments
- `jobId` check Worker.load()
**Examples:**
```javascript
(async () => {
await worker.run("-i /data/flame.avi -s 1920x1080 output.mp4");
await worker.run("-i flame.avi -s 1920x1080 output.mp4");
})();
```