Refactor ffmpeg configure settings