Video: Biker narrowly dodges high-speed train

A dirt biker has been lucky to escape with his life, narrowly dodging a high-speed train bearing down on him near Melbourne.

The man had been pushing his bike across the tracks when the train approached. He was forced to leave it to be crushed by the train, as he leaped from the edge.

Train company V/Line says it's one of nearly 300 near-misses on its network in the last year.

"Trains approaching at high speed are quieter than expected - and it can take nearly a kilometre for a train to stop once the driver applies the brakes," CEO James Pinder says.

V/Line released footage of the near disaster from the driver's cab, showing the driver blasting their horn from some distance away.

Mr Pinder says accidents can not only disrupt the rail network, but is also traumatic for staff, members of the community, and those on board a train at the time.

"I'd encourage people to only cross railway lines at marked crossings, respect all warning signs and always look both ways as trains can come from either direction," he says.

In New Zealand, a woman was seriously injured late last year when a train smashed into a car in Morningside, Auckland.

The barrier arm was down and lights were flashing when the vehicle drove over the railway crossing.