added subprocess management for audio ffmpeg recordings