A moviegoer caught secretly recording the sci-fi blockbuster “Transformers” has been charged with unauthorized use of a video camera in a theater in the first arrest under a new New York City law that stiffened penalties for pirating films.

A criminal complaint accuses Kalidou Diallo of slipping a video recorder, video player and remote control into a sneak preview of the film at a Bronx theater on Monday night.