[SOLVED] Accessing IP Camera Feed
Hi All, Thanks for taking time to view my post. I have been trying for several days to access feed from an IP Camera. Mentioned below are my code and the steps that i have done thus far, based upon information received in the forums.
- IP Camera Make : Vstarcam ; Model Number : T7892WIP ; Based upon the information on the website (iSpy) the details for accessing the ip camera are given below
T7892WIP MJPEG (Image Format)
http://IPADDRESS:554/videostream.cgi?...
Platform Windows 7 (32 bit) + OPENCV 2.4.5 and Qt 5.4.1
Code
capture.open("http://192.168.1.50:8080/videostream.cgiuser=admin&pwd=888888&resolution=32&rate=10.mpeg"); if(!capture.isOpened()) { qDebug()<<"Cannot Open Camera"; exit(1); } else { //Capture Frame and Process }
When i try to execute the above code, I get the following message
Cannot Open Camera warning: Error opening file (../../modules/highgui/src/cap_ffmpeg_impl.hpp:529).
- Steps that i have followed
a). I used iSpy software to get the IP camera link and used the same. I am able to open the IP Camera Feed on the web-browser and iSpy software as well. Both are working without any issues.
b). Used the same link and opened in VLC Media Player and that too is able to open the video feed.
c). I replaced the url with 0, to detect the default camera, and the webcam is detecting and displaying the image correctly.
Please Help.
why you are using different URL/PORT ? Based upon the information on the website you should use 554 instead of 8080:
capture.open("http://192.168.1.50:554/videostream.cgi?user...")