Footage captured on a train's camera shows the moment a man jumped onto a railway to rescue a woman as she falls into the path of a train.