MotionEye is an official add-on for HA.
It will process any video stream. It also has recording and snapshot options as well as motion detection (including zones).