save file when 1st key frame is received