I tried giving cvCreateCameraCapture an URL of the camera viewing on internet. However, I can't get any video playing.
I am writing in C language.
I tried giving cvCreateCameraCapture an URL of the camera viewing on internet. However, I can't get any video playing.
I am writing in C language.
No, we can't. OpenCV is not made for that purpose.
http://stackoverflow.com/questions/1825338/video-streaming-using-c
cvCreateCameraCapture
Initializes capturing video from camera
CvCapture* cvCreateCameraCapture( int index );
index Index of the camera to be used. If there is only one camera or it does not matter what camera to use -1 may be passed.
The function cvCreateCameraCapture allocates and initialized the CvCapture structure for reading a video stream from the camera.
Check the documentation.
I checked all the posts, but they all need an additional software in order to stream. None of the library from C or Objective C that I can use to have direct access to an IP camera?
Another issue is the IP camera I used is D-Link DCS-910, it support MJPEG and RTSP. We can view the camera video on internet after port forwarding and apply for a DDNS hostname. However, this web view only support Java and Active X which both not supported by iPhone.
I know that we can stream media data, but I just can't find any sample or tutorial for this. How can I get direct video from IP camera without relying on a third party software?