Footage shows light rail near-miss days before pedestrian strike