geerlingguy / pi-nvr

Raspberry Pi NVR for home CCTV recording.
209 stars 22 forks source link

zfs pi security system using OBS Studio #7

Open Philius opened 7 months ago

Philius commented 7 months ago

Hi there.

I'm pathfinding a security system too.

My approach is to have a bunch of Pi's booting over nfs and serving video and a USB mic audio over RTMP or RTSP.

With OBS running on the server (an old laptop) this can

  1. show them all in one scene
  2. cycle through them in another scene
  3. make both scenes available to view via Wi-Fi or wired network (two OBS instances? Not sure)
  4. switch to a particular camera when motion or some event is detected, maybe with a red border I think RTMP can include data streams I also believe that RTMP would allow the Pi's to serve a low resolution version of the stream, suitable for the all in one scene.
  5. overlay the camera with its location and maybe the current date/time
  6. save the individual camera stream data to disk
  7. maybe save the scenes to disk too
  8. ensure key frames (I-frames) happen every 2 seconds and use them to write time-lapse videos to disk
  9. Write a GUI that allows the user to quickly scrub through the time lapse videos and switch to individual camera streams for real time playback of a particular event
  10. Use my phone to switch scenes or view a particular stream and even talk to someone at the other end with a speaker That last part would require active sound cancellation. Maybe walkie-talkie mode? This introduces the possibility of people at two or more Pi "nodes" being able to communicate. Am I aiming too high?

I figure I can have up to 10 Pi's serving video footage on a 1Gig wired network.

All of this would also be really useful for a studio setup too!

I mentioned zfs as it allows snapshots so you could save a snapshot and have spinning disk pools, something I've already got running in my setup.

Of course this issue is for your feedback and that of the community.

Philius commented 7 months ago

This just appeared in my YouTube watch list: Custom electronics for home automation by Nate Sweet.

This is home automation nirvana!