Translink Northern Ireland has shared some dramatic footage of the moment when a beach lifeguard frantically waves at a train driver to warn him about two walkers who decided to use a train tunnel as a shortcut.
The 33-second clip (below) starts as the train hurtles along a single track next to the beach.
Three seconds into the video, you can make out the distinctive yellow uniform of a lifeguard as he frantically waves his arms above his head, to warn the driver.
Eleven seconds into the video, the train enters the pitch-black tunnel.
By this time, the train driver undoubtedly knew that something was amiss, but he could not be sure of what the danger was.
Fourteen seconds into the clip, you can see two people (as the camera in the cab automatically switched to infra-red mode) as they run along the tracks to try and get out of the trains way.
Just at the train approaches them, they jump out of the way and into the darkness.
Having hit the emergency brakes, the train comes to a stop on the other side of the tunnel.
A spokesperson for Translink said: “Never use the railway as a shortcut. Trespassing on the railway is extremely dangerous and could lead to a conviction”.
Nobody was injured during this near-miss.