I run ffmpeg
from python
script and need to shutdown recording on demand.
In Linux I just send SIGTERM
. But in Windows as I understand SIGTERM
replaced by SIGKILL
so records needs to be remixed to play properly.
After googling I found that I should use CTRL_BREAK_EVENT
but this signal terminate my parent script too.
What should I use?