|
| Author |
Message |
vivotek New Member
Joined: 14 Nov 2006 Posts: 4
|
Posted: Tue Nov 14, 2006 1:24 pm Post subject: |
|
|
Hello,
I want to obtain the video streaming from a Vivotek PZ6114/6124 camera. The camera provides a UDP video streaming port : 5003, but i can't connect to it. I am not even sure that the connection to this port will provide me the video streaming.
I succeded conecting to the camera and give it different commands. But now i want the video streaming. Is it even possible?
I would appreciate any suggestion.
Thanks!
PS: The programming language is java.
|
|
| Back to top |
|
 |
rauckenthaler New Member
Joined: 12 Nov 2006 Posts: 5
|
Posted: Wed Nov 15, 2006 4:18 am Post subject: |
|
|
| vivotek wrote: | Hello,
I want to obtain the video streaming from a Vivotek PZ6114/6124 camera. The camera provides a UDP video streaming port : 5003, but i can't connect to it. I am not even sure that the connection to this port will provide me the video streaming. |
I was able to connect to the PZ3127 and would guess that it has a similar mechanism to hte PZ6114. I guess your camera also uses the HTTP port and 3 ports for the AV streaming (control, audio, video). If this is the case then you need first to connect to the HTTP port to get the connection ID then you connect on the control port to start the streaming. Once this is done you are able to get streams out on the audio and video ports.
I have tried with a TCP connection but would assume that UDP works as well.
But i'm still struggling with the video stream itself. The datasheet says H263+ codec but there are a couple of bugs in hte stream so that it doesnt work. Still need to find out what is going on there.
|
|
| Back to top |
|
 |
vivotek New Member
Joined: 14 Nov 2006 Posts: 4
|
Posted: Wed Nov 15, 2006 6:07 am Post subject: |
|
|
Thanks for the response!
Unfortunately there is no information in PZ6114/6124's user's manual about a control port.
However i checked the user's manual from your camera PZ3127 and saw that the control port is 5001. I tried a connection to this port and doesn't work (a connection to the other ports doesn't work either).
Some questions to you: What do you mean by a connection id?
Is there a command to find out the control port on the camera?
I tried http://192.168.0.99/cgi-bin/admin/getparam.cgi?cport with no result.
Also i wanted to know if there is a method to see if the camera listens on these ports.
Here is some simple test code i worked with:
try {
URL url = new URL("http://192.168.0.99/");
HttpURLConnection httpConn=(HttpURLConnection) url.openConnection();
System.out.println("Response: "+httpConn.getResponseMessage()+","+httpConn.getHeaderField("Server"));
Socket socket = new Socket("192.168.0.99", 5001);
System.out.println("Coonec: " + socket.isConnected());
System.out.println("Coonec: " + socket.isBound());
System.out.println("Coonec: " + socket.getReceiveBufferSize());
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
192.168.0.99 is the ip of the camera. And the socket connection with the following exception: java.net.ConnectException: Connection refused: connect
|
|
| Back to top |
|
 |
rauckenthaler New Member
Joined: 12 Nov 2006 Posts: 5
|
Posted: Wed Nov 15, 2006 6:33 am Post subject: |
|
|
The best for you is to use ethereal to find out the communications
if you point your browser to webcamip/main.html you'll get a response which contains
document.write("<PARAM NAME=\"RemoteID\" VALUE=\"23709\">");
this is the Id of your connection
on 5001 you need to create a TCP connection and not HTTP connetion. on this connection you'll need to implement the protocol they are using with your RemoteID value. It's all a bit tricky but i got it kind of working in C++ if you like i'll send you the code
However i still struggle to extract the H263+ video stream i think they do not comply to the specs. so it seems almost impossible to do anything with it.
|
|
| Back to top |
|
 |
vivotek New Member
Joined: 14 Nov 2006 Posts: 4
|
Posted: Wed Nov 15, 2006 6:58 am Post subject: |
|
|
Currently in the camera main web page appears an activex control with the following html code the following:
document.write("<OBJECT ID=\"VAtCtrl\" WIDTH=362 HEIGHT=358 name=\"VAtCtrl\"");
document.write("CLASSID=CLSID:210D0CBC-8B17-48D1-B294-1A338DD2EB3A");
document.write(" CODEBASE=\"/VatDec.cab#version=1,0,0,51\">");
document.write("<PARAM NAME=\"VSize\" VALUE=\"SIF\">");
document.write("<PARAM NAME=\"Language\" VALUE=\"en\">");
document.write("<PARAM NAME=\"Deblocking\" VALUE=\"true\">");
document.write("<PARAM NAME=\"DisplayTimeFormat\" VALUE=\"1\">");
document.write("<PARAM NAME=\"DigitalZoomEnableChk\" VALUE=\"true\">");
document.write("<PARAM NAME=\"DigitalZoomEdit\" VALUE=\"true\">");
document.write("<PARAM NAME=\"Url\" VALUE=\"/cgi-bin/control.cgi\">");
document.write("</OBJECT>");
}
As you can see there is no RemoteId. The web interface is using an ActiveX control called VitaminControl.
The line: Socket socket = new Socket("192.168.0.99", 5001); is trying to make a TCP connection, but I didn't implement a protocol so I would appreciate any hint, code on this matter. My email address: iuliana.dogaru@gmail.com.
Thank you!
|
|
| Back to top |
|
 |
umedia New Member
Joined: 28 Mar 2007 Posts: 4
|
Posted: Wed Mar 28, 2007 3:14 pm Post subject: |
|
|
You can view any IP camera with Windows Media Player
using IPCamSourceVideo DirectShow source filter.
Download it from http://www.umediaserver.net/download.html
UMedia
|
|
| Back to top |
|
 |
|