sarxos / webcam-capture

The goal of this project is to allow integrated or USB-connected webcams to be accessed directly from Java. Using provided libraries users are able to read camera images and detect motion. Main project consist of several sub projects - the root one, which contains required classes, build-in webcam driver compatible with Windows, Linux and Mac OS, which can stream images as fast as your camera can serve them (up to 50 FPS). Main project can be used standalone, but user is able to replace build-in driver with different one - such as OpenIMAJ, GStreamer, V4L4j, JMF, LTI-CIVIL, FMJ, etc.
http://webcam-capture.sarxos.pl
MIT License
2.26k stars 1.11k forks source link

Connect to Wired IP Cams #591

Open Cabusa123 opened 6 years ago

Cabusa123 commented 6 years ago

Hello

I recently bought a POE switch with 5 IP Cameras, and i just wanna have like an explanation of how to connect the IP Cams to my software

I'm currently connecting them with this code: (Remote IP Cams)

IpCamDevice Camara1= new IpCamDevice("Camara #1", "http://201.166.63.44/axis-cgi/mjpg/video.cgi", IpCamMode.PUSH);
  IpCamDevice Camara2= new IpCamDevice("Camara #2", "http://fxbmobile.engin.umich.edu/axis-cgi/mjpg/video.cgi", IpCamMode.PUSH);
IpCamDeviceRegistry.register(Camara1);
IpCamDeviceRegistry.register(Camara2);`
sarxos commented 6 years ago

Hi @Cabusa123, I'm not sure if I understand your question correctly. Are you asking what arguments you should provide to the IpCamDevice? Well, you should know better than me because you bought these IP cameras yourself :) However, the basic idea is the same as with the IP cameras you have in the code right now. You just need to provide address to the MJPEG stream, for example:

But with your own cameras these will be some IP addresses within your local network. Of course different camera models may have different MJPEG stream address. Here is a huge list of many different camera models with their corresponding stream addresses:

http://public-camera.com/en/how-to-connect-ipcamera.html