I’ve got something I’m hoping to see on here in a couple weeks.
I started work yesterday on a self hosted security camera system that uses v4l2 (so it works with webcams).
https://github.com/sciactive/soteria
Locally, I've got it loading the stream from the camera, encoding, and muxing, then pushing to a filesystem write stream, but I’ve discovered software based encoding in single threaded WASM is just too slow for what I’m trying to do. I’m going to rewrite it today to use FFMPEG externally for encoding.
It’s meant to be used with my WebDAV server
https://github.com/sciactive/nephele
which supports encryption and storage in a S3 compatible service. So you’ll get the benefits of a cloud security camera, but Google/Amazon/whatever won’t have access to your video.