A man has been banned from keeping dogs after he was caught on camera threatening and abusing a dog.