From 2bae08600aea09d212e7ecd95a90708583dbb204 Mon Sep 17 00:00:00 2001 From: Ilias Haddad <42832768+IliasHad@users.noreply.github.com> Date: Thu, 6 Feb 2020 20:09:09 +0100 Subject: [PATCH] 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 --- docs/api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api.md b/docs/api.md index 945ae40..1ca0faa 100644 --- a/docs/api.md +++ b/docs/api.md @@ -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"); })(); ```