Adding option to write out results to xvid