Two men were sentenced to 300 hours of unpaid work after admitting speeding on a Teesside road at 90mph and posting footage of the stunt on YouTube.
Francisco Zayas-Slater and Jay Pepper are seen cheering on the video while speeding between Redcar and Marske at night in November 2008.
A member of the public alerted police after viewing the footage online.
Zayas-Slater, 21, and Pepper, 20, admitted at Teesside Magistrates' Court to dangerous driving.
The pair are heard boasting the high-speed stunt, along a 40mph stretch of Coast Road, was a "great achievement."
But magistrates told the pair they had narrowly escaped being given a custodial sentence.
Zayas-Slater, of Lovatt Avenue, Redcar, drove a Citroen C2 along what is known locally as the Stray at Redcar, while Pepper, of Stockdale Avenue in Dormanstown, filmed the stunt.
The footage was uploaded to YouTube in May 2009 and was reported to Cleveland Police in October this year.
The pair were also disqualified from driving for 12 months and ordered to pay costs.
The court heard they had been playing computer games but got bored in the early hours and decided to film the high-speed stunt.
After the hearing, PC Richie Humphrey, road policing officer with Cleveland Police, described the men as "stupid".
He said: "On that night we could have been dealing with a double fatal with these lads and anyone else that was around."