How do I close a Node.js FFMPEG child process that is actively streaming from a live capture source?
问题 I'm new to Node.js and have figured out how to utilize child.spawn to launch an instance of FFMPEG that is being used to capture live video and send it over to Adobe Media Server via rtmp. Every example I've seen of FFMPEG being used in conjunction with Node.js has been with a time limited sample, so the child process closes once FFMPEG reaches the end of the file it is converting. In this case, there is no "end of file". If I instantiate: var ffmpeg = child.spawn('ffmpeg.exe', [args]); it