The former pastor of a Texas church has been sentenced to 30 years in federal prison for filming 11- to 14-year-old children with hidden cameras to produce child pornography, federal prosecutors announced Monday.