update write_video