Page 1 of 1

BTSI Cams

Posted: Wed Sep 23, 2009 7:50 am
by VF
Hi, I've recently buyed a BSTI PD100HV2 cam.
Could someone help me to get the videostream in ZM? I see the snapshot and videostream in the browser when I go on /snapshot.cgi and /videostream.cgi, respectively, on the remote machine, but it doesn't seem to work in ZM.
These are my configurations:
GENERAL:
Source type: remote
Function: monitor
Maximum FPS:30

SOURCE:
Remote host name: IP of the cam
Remote host port: port on which the cam works
remote host path: /videostream.cgi
remote image colours: 24 bit
capture width:320 / 640
capture height:240 / 480

Could some help to troubleshoot?

Thanks in advance!

Posted: Wed Sep 23, 2009 7:34 pm
by kingofkya
When you go to the cgi url what size is the image because it must match what zm has in its size settings aka: the 320x480 you have currently. Also post some of your logs.

Posted: Wed Sep 23, 2009 7:39 pm
by VF
Hi, I don't know exactly the size of the image.
tha manual reports 320x240 and 640x480.

I've tried both, but it doesn't work.

Using vlc i can see the video stream with:
http://USERNAME:PASS@<CAM_ip>:PORT/videostream.cgi

but it doesn't works in ZM.

Posted: Wed Sep 23, 2009 8:35 pm
by Sika
Have you checked your logs for shared memory errors?

shared memory log

Posted: Wed Sep 23, 2009 8:42 pm
by VF
No I didn't...I'm a newbie in IP CAM networking....

so could someone give me help/hints to:
1)look at shared memory logs
2)how could I get infos about video in streaming (FPS, resolution etc.) analyzing the source (I know IP and port, and mjpg coding).

For example..how could I exactly know the resolution (width/height) of the video in streaming?

Thanks a lot!

Posted: Wed Sep 23, 2009 8:58 pm
by Sika
Logs on my ZM server are /var/logs/zm

You must be able to set the camera resolution/fps etc from the cameras web gui

Logs and resolution

Posted: Thu Sep 24, 2009 8:27 am
by VF
Hi,

the /var/log/zm dir is absolutely empty;

I cannot set the resolution of the cam on the configuration....I think it could be fixed.The manual only reports that it could be 320x240 or the double.

I would find a way to know which is the resolution, examining the tranport stream....

Posted: Fri Sep 25, 2009 5:27 am
by Sika
You could try pointing your ZM to BSTI web site demo camera.
This would narrow down where the problem is ie: If it doesn't work the
problem is with your ZM server.

Source type: remote
Function: monitor
Maximum FPS:15
SOURCE:
Remote host name: guest:guest@www.bsti.com.tw
Remote host port: 204
remote host path: /videostream.cgi
remote image colours: 24 bit
capture width:640
capture height:480

I get about 4fps to my ZM.

...

Posted: Fri Sep 25, 2009 7:50 am
by VF
Hi (first of all thanks for your help :) ).

I've tried your configuration, and it doesn't works.
The strange thing is that if I use http://guest:guest@www.bsti.com.tw:204/videostream.cgi

in vlc, I'm able to see the video.

I think it's a problem of my ZM, but it's the same on 2 different machines (one physical and one virtualized).

Posted: Fri Sep 25, 2009 8:47 am
by Sika
Is your ZM installed with ffmpeg?

ffmpeg

Posted: Fri Sep 25, 2009 9:01 am
by VF
Yes it is!

The solution.

Posted: Fri Sep 25, 2009 10:24 am
by VF
I've found a solution...it was only a shared memory size problem.
editing the file /etc/sysctl.conf
appending this:
kernel.shmall = 564217728
kernel.shmmax = 564217728

now it works perfectly!

Next time I will active the debug logs, and look at the shared memory errors.

Thanks a lot!