Transformers Screensaver - Version 1 Transformers is a 2007 live action film directed by Michael Bay and executive produced by Steven Spielberg, based on the Transformers franchise. The film stars Shia LaBeouf as Sam Witwicky, who has the coordinates to the location of the Allspark, an object at the center of the war between the heroic Autobots and the evil Decepticons. The film also stars Megan Fox, Josh Duhamel, Tyrese Gibson, Jon Voight, John Turturro, and Hugo Weaving as the voice of Megatron. Peter Cullen, the voice of Optimus Prime in the 1980s cartoon, reprised the role for the film.