An actor and musician who set up a hidden camera to film children undressing during costume changes has been jailed and placed on the sex offenders register for life.