After investigating diagnostics from @beauchristopher here Transcoding errors starting 2-3 days ago it appears that we exhaust the tcp ports after scanning about 4100 movies
It is suspected to be caused by a change to curl where it uses up extra ports internally for every request.
I have this raised as an issue with our developers and we are awaiting progress on an existing curl issue