ffmpeg.js icon indicating copy to clipboard operation
ffmpeg.js copied to clipboard

Cancel ffmpeg job

Open DmitriyKarpov opened this issue 5 years ago • 3 comments

Is there any way to stop ffmpeg process execution except terminating whole worker?

DmitriyKarpov avatar Apr 21 '19 12:04 DmitriyKarpov

Probably not, because once run has been called, it chews through the entire input synchronously.

JohnWeisz avatar Feb 06 '20 11:02 JohnWeisz

Thanks for reply. I was able to do this by sending "q" to stdin. But I didn't find any way to run the command again. There are memory allocation problems.

DmitriyKarpov avatar Feb 06 '20 11:02 DmitriyKarpov

I was able to do this by sending "q" to stdin.

Nice hack.

There are memory allocation problems.

Interesting, sounds like a bug. Would be nice to have a complete test-case.

For heavy jobs I would suggest to terminate the Worker. For light jobs it should be not a problem to wait till it ends. However I can see that finer control might be needed sometimes.

Kagami avatar Apr 17 '20 23:04 Kagami