A Hamilton man was sentenced to 30 years in prison for secretly recording young girls and filming sex with teenager.