A sex offender who traded videos and pictures of “misery, debauchery and child cruelty” has been jailed for 18 months.