The man took more than a million photos and videos cataloguing his wife being abused, a court heard