Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
have a good time
i want to connect to an ip camera in visual c++ 2010.
i searched in internet about but i didn'nt complete project about it.
can anyone help me?i really need it.
thanks a lot
Posted
Comments
[no name] 18-Aug-12 12:08pm    
Well you are not going to get a complete project just because you post here. If you want someone to provide a complete solution to you, you need to hire someone to do that. And you cannot do that here.

1 solution

Hi,

Actually you should check what protocol and what format your camera supports. Most IP cameras uses an HTTP with MJPEG or MPEG4 or MPEG2 video + any of audio formats like MP2, MP3 G726 or GSM. To connect to your camera in case of HTTP protocol supports use WinInet library in C++ functions: InternetOpenURL or HttpOpenRequest InternelReadFile and so on. This way you opens the streaming URL and do performing reading from it, after you sholud perform decoding, file saving on received data. I prefer to do that stuff inside directhow filter so your filter will be receiving data and output to filter's pin and you will not be thinking abt decoding or file savenig things.

Regards,
Maxim.
 
Share this answer
 
Comments
[no name] 5-Sep-12 11:03am    
thank you so much

i want to work with DCS 3411 support MPEG4 and ...
how can i stream and read from that?
i searched and i'm looking in the internet a lot, but i still don find useful thing.

would you help me please?
Maxim Kartavenkov 5-Sep-12 11:20am    
You should read the specification of your camera, after enable streaming over protocol you want' to use on camera (most cameras can stream over HTTP) open HTTP stream in your application, perform reading, decoding and preview.
[no name] 6-Sep-12 7:06am    
you're right
thanks agian
my camera support HTTP protocol.
have i use CInternetSession and CHttpConnection to get data from camera?
how should i use and apply these function to connect to the ip camera?
thank you for your time spend.
Maxim Kartavenkov 6-Sep-12 7:21am    
in your camera specification described and URL which you can use for reading data.
[no name] 7-Sep-12 2:02am    
Dear maxim
thanks for you help

i searched in the internet and i got i should use CInternetSession and CHttpConnection. am i right or not?

i learned to download a file and page from net. now how can i downlaod the image from the ip address of camera?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900