Saturday, June 13, 2009

How to access Axis IP Camera using Java

What is an IP Camera?

An IP Camera is a stand-alone device which allows you to view live, full motion video from anywhere in the world. IP Cameras can be used for surveillance of both homes and businesses. With the ability to record live video to a remote location, IP Cameras allow you to make sure your recorded video is safe by storing it at a location that only you can access.



This was indeed a challenge for me at the first time. But with mere investigation i could find that before accessing the IP camera we need to obtain authentication as it is working as a video server. I would list out what i did to capture a video stream from IP camera

Step1 : obtaining the IP address of the camera (it will get assigned an available ip address from the network as it is configured upon DHCP by default) . You can use the utility software provided by the camera provider in case of finding the ip.

Step2 : You may need to configure the axis camera giving a password for the default "root" user. If you want you may add many users as you wish using their utility software.

Step3 : Then you can go to the URL of the camera and make sure the JPG or MJPG streams are there.

Step4 : Next challenge was to obain authentication from the video server of the camera using Java code snippet. In that case i used java.net.Authenticator. Authenticator would consist of the URL , username and password which we are providing for the server.Then setDefault(Authenticator a) Sets the authenticator that will be used by the networking code when a proxy or an HTTP server asks for authentication.

Step5 : Now you are successfully connected to the Camera. :)

Step6 : Then you can use the video stream from the IP camera for whatever application you use.







10 comments:

Unknown said...

if you have java code for access Axis ip camera,please send it bcz i have require this code...

Unknown said...

Can you pls send me JAVA code, i'm realy need it, this is my email: tranvhoa_bk1985@yahoo.com.vn. Thanks & Best Regard ^^

critisizems said...

hi thanks for sharing this ,i need source code for this,can u please send it me?i need help,as this is part of my final year project,,,
send me at onlyme843@hotmail.com
regardz

Waqas said...

Hey this is very helpful info. please send the code i really need it
send it at vickyshah129@gmail.com

Thanks in advance

Unknown said...

this website upwards for your fresh engineering with the photographic camera, this blog extremely secure and offer excellent safety individuals method.

Unknown said...

hello. is it possible to get the source code for this please?
thanks
kumail.haider@ymail.com

Harsha said...

Hi all, the source code is pretty simple, you just search for Authenticator examples, thats exactly how I used. once you get authentication correct you can access the media stream from the specified URL.

Guilherme Marques said...

is to use this type of technology in a web page?

Please send the code to use if you like!
guigaguitar@gmail.com

lovephileo2 said...

This is the reason, Axis camera
stands out against the market competition. They were there since 1996.

Jennifer Avina said...


I was getting bore since morning but as soon as I got this link & reached at this blog, I turned into fresh and also joyful too.
weatherproof security cameras