I'm working on a similar project for home security system:
4 IP cameras connected to RasPi, displayed on a monitor simultaneusly and recorded on a USB HDD. No motion detection at this moment (I think this will never be done - to less CPU power), only continuous recording.
User can switch desired camera to full-screen and return to quad display.
Needs a lot of polish but usable at this moment.
- raspberry pi
- 4 Ubiquiti AirCam cameras
- an 8-port switch
- external USB 2,5" HDD 500GB
AirCam exposes 4 rtsp streams, with a 24 hrs/day recording of the best stream HDD gets full after 4-5 days (depends on the recorded scene). Recording the second stream instead gives ca 20 days of continuous recording.
No conversion of the video stream - this could increase recording time (reducing fps for example) but drives the CPU to 100% usage.
My normal CPU usage varies between 55-75% and this is acceptable.
Everything written in bash
If someone is interested I'll post the code somewhere..
And any fresh look and help will be appreciate