I want to program a application, when I push the start button, it runs a ffmpeg command to record a online stream, when I push the stop button, I want to send a "q" key to stop the recording. how...