Run something over NAS and block the cam access within the local network?
You could use open protocols and build & replace your system pieces when needed.
https://www.home-assistant.io/ has a lot of integrations.
NAS hw providers have their own security cam sw systems but not sure they are open source.