For the movie Grand Prix (1967), they put microphones inside of each car's engine, so that they would get the distinct sound of each just right. They also recorded the sounds of the upshifts and downshifts of each car while driving the Monaco Grand Prix course, and then the professional drivers recreated the dozens of shifts in sequence from memory on a runway to make sure they got clean audio of the entire race.
Honestly, if you look at how that movie was made, I'm not convinced that they should have been allowed to make it... but I'm glad that they did, because it's an astonishing technical achievement.