ffmpeg.js
ffmpeg.js copied to clipboard
Cancel ffmpeg job
Is there any way to stop ffmpeg process execution except terminating whole worker?
Probably not, because once run
has been called, it chews through the entire input synchronously.
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.
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.