see here for a wonderful explanation
chapter 3 tells us, that you can connect to a webserver via http (so you could try : VideoCapture("rtsp://192.168.1.254:554")
and hope they use some known protocol)
chapter 2 shows, that you can also connect it via usb, which would make VideoCapture(some_number)
work
good luck !