PDA

View Full Version : IP Camera Source



Teresa
December 11, 2007, 10:16:03
Hello,

I'm trying to show a live preview of a network camera stream with a VB6 application, based on the example graph that is given in the documentation, but I'm having the following problem:

- To set the IP camera source properties the "MV IP Camera Source" output pin, needs to be disconnect, and so, after I set the desired camera properties, I try to initialize the connection through the IMVIPCameraSource:InitConnection() method.

Although this method is not being recognised, but all the other methods (like Address, IsInitialized, etc) are.

I used the following code to assign the camera:


Dim graph As IMVSCFilterGraph
Dim camera As IMVIPCameraSource

Set graph = MVSmartControl.Object
Set camera = graph.GetFilter("MV IP Camera Source")

and for now, I donīt know what to do to make this work:


If camera.IsInitialized = False Then
camera.InitConnection ' HERE'S THE PROBLEM!
End If

Can you help me?

Thanks

Teresa

Marc Cymontkowski
December 15, 2007, 10:29:01
Hi Teresa,

The InitConnection call is obsolete. Please just set the URL property, this will initialize the IP Camera Source filter. If it does not initialize, then either the URL is wrong, a login/password couple is missing or the camera type is not supported. (Please have a look at the documentation (http://www.montivision.com/support/documentation/noframes/source/filter/sourcefilter/ip_camera_source_filter.htm) here)


Some URL examples:

AXIS
http://login:password@123.123.123.123/axis-cgi/mjpg/video.cgi

Santec
http://login:password@123.123.123.123/appro-cgi/mjpeg.cgi
http://login:password@123.123.123.123/appro-cgi/mpeg4.cgi

Sony
http://login:password@123.123.123.123/image?speed=10

Panasonic
http://login:password@123.123.123.123/admin/cgi-bin/getstream.cgi?3087&3087&&&0&1000&1&0&9000

Please refer to the camera documentation for the exact MJPEG/MPEG4 stream URL of your camera.


Best Regards,

Marc Cymontkowski

Teresa
December 27, 2007, 09:45:46
Hello Marc,

Thank you, it works.

Best regards,

Teresa