All you have to do is pause and resume the ffmpeg child process itself.
The main problem: there is no SuspendProcess API function. And there is no documented or safe way to do this.
The only easy way to do this is SuspendThread / ResumeThread.
See this article on coder for how to do this.
source share