Unable to rouse him, officers pulled a driver from his vehicle moments before a train hit the car, which was parked on the railroad tracks. Cobb County (GA) Police Department officers posted video of the rescue on the department's Facebook page Tuesday, reports WXIA.

The dashcam video is from a July incident, in which Cobb County officers on patrol around 3 a.m. noticed a car on the railroad tracks near Paces Ferry Road in Vinings, GA.

Soon after they got out to investigate, the crossarms came down with a freight train closing in, reports WSB-TV.

With no time to lose, the officers screamed to try to wake up the man, who apparently was passed out in his locked car with his radio blaring loudly. "Get out, a train is coming! Get out! Get out!" an officer can be heard yelling on the dashcam video.

The department posted on its Facebook page, "Without hesitating and fearing the male was in imminent danger, one of the officers shattered the driver’s side window which you’ll also hear in the video. This allowed the officers to extract the driver from the vehicle and get him to safety seconds before the train arrived and struck the vehicle," the department wrote on Facebook. "These officers put their own lives at risk to save this citizen, and to summarize this in a nutshell…….WOW."

According to WSB-TV, the man faces several charges, including DUI.