Five people have been injured after a V/Line train carrying about 80 passengers derailed when it hit a car abandoned on tracks near Bendigo.

The train hit a four-wheel-drive on the track about 2pm on Wednesday

The 4WD hit by the train. Credit:Courtesy of Nine News

All services to and from Melbourne have been cancelled.

V/Line said the car was illegally crossing the tracks, when it became stuck.