mpv-webm
mpv-webm copied to clipboard
cancel/stop an encoding task
How do I cancel/stop an ongoing encoding task?
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.