StreamPulse does basically that. The app is light enough to easily deploy on a Raspberry Pi or as a container on a NAS. Moreover, it doesn't need a full-fledged NVR setup or a powerful database server ...