storing video in file