BTSI Cams

Post here to ask any questions about hardware suitability, configuration in ZoneMinder, or experiences. If you just want to know if something works with ZoneMinder or not, please check the Hardware Compatibility sections in the forum, and the Wiki first. Also search this topic as well.
Post Reply
VF
Posts: 26
Joined: Wed Sep 23, 2009 7:41 am

BTSI Cams

Post 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!
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post 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.
VF
Posts: 26
Joined: Wed Sep 23, 2009 7:41 am

Post 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.
Sika
Posts: 29
Joined: Mon Feb 06, 2006 8:21 am
Location: New Zealand

Post by Sika »

Have you checked your logs for shared memory errors?
VF
Posts: 26
Joined: Wed Sep 23, 2009 7:41 am

shared memory log

Post 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!
Sika
Posts: 29
Joined: Mon Feb 06, 2006 8:21 am
Location: New Zealand

Post 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
VF
Posts: 26
Joined: Wed Sep 23, 2009 7:41 am

Logs and resolution

Post 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....
Sika
Posts: 29
Joined: Mon Feb 06, 2006 8:21 am
Location: New Zealand

Post 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.
VF
Posts: 26
Joined: Wed Sep 23, 2009 7:41 am

...

Post 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).
Sika
Posts: 29
Joined: Mon Feb 06, 2006 8:21 am
Location: New Zealand

Post by Sika »

Is your ZM installed with ffmpeg?
VF
Posts: 26
Joined: Wed Sep 23, 2009 7:41 am

ffmpeg

Post by VF »

Yes it is!
VF
Posts: 26
Joined: Wed Sep 23, 2009 7:41 am

The solution.

Post 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!
Post Reply