I guess it depends on cameras. In the past, I have successfully done what OP asks by using cameras streaming H.264 over RTP, controlled by RTSP.
In order to do this, an RTP client is required in order to access the camera and get a hold of the stream. I have used live555. My first try was with openRTSP from CLI.