Usually, the red cable is for the Right Audio channel and right or black for the left audio channel, and yellow for the video output.
One probably hooks directly to your tv.
Another step is to connect to your chosen software.
This is the best option for security purposes, to identify faces, license plates, and other recordings.