added subprocess management for ffmpeg video and screencasting in flv format