I would have to point out to neighbours their behaviour allowing dog to whine for so long. Do you have any other neighbours who hear it too, perhaps they would approach the owners with you, safety in numbers! Keep a diary to help identify times etc. to justify your approach.
Awwww, he is so happy to see me…..