A man had a brush with death when he was nearly hit by a train in Melbourne, Australia.

Video from a security camera shows the man trying to cross the tracks at a train station.

One train was leaving the station, and he crossed behind it as another train was approaching.

He apparently saw the oncoming train at the last second and avoided what could have been a fatal collision.

Australian public transport company V/Line released the footage this week, warning the incident was one of 455 similar near-miss cases in the past year.

(Copyright 2016 NBC News Channel. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)

Join our Newsletter for the latest news right to your inbox