Adding FFMPEG Encoding for statistics