Add video writing to file.