How to build a video surveillance system from scratch?

A post was split to a new topic: Problem with video feed