mpv-webm icon indicating copy to clipboard operation
mpv-webm copied to clipboard

cancel/stop an encoding task

Open s4nket opened this issue 3 years ago • 1 comments

How do I cancel/stop an ongoing encoding task?

s4nket avatar Nov 05 '21 14:11 s4nket

This isn't possible currently, and it would require some improvements on mpv's side in order to be viable to implement. When encoding a video, we spawn a subprocess, and then either we:

  • block and wait for it to end, making the script unresponsive in the process
  • detach it and let it end on it's own, but we no longer have any references to it in order to "cancel" the subprocess

To make it viable, we would need a way to detach the subprocess, but still have a reference to it, so that we could stop the process.

ekisu avatar Nov 13 '21 17:11 ekisu