with ffmpeg.
Only problem is that the DS-2CD1023G0E-I needs -- dare I say it -- internet explorer to access it. But you do that once, then zoneminder has no problem to locating the rtsp stream.
Also, DS-2CD2045FWD-I, being more expensive, has a better metal mechanism to tilt and turn on the right angle. DS-2CD1023G0E-I needs a screwdriver and is not as easy.
Cheers.