looking for a little help

Support and queries relating to all previous versions of ZoneMinder
Locked
MamboKing
Posts: 10
Joined: Tue Jun 06, 2006 4:40 pm

looking for a little help

Post by MamboKing »

Hi Everyone,

I've used zoneminder before and it worked quite well with a USB Cam now I'm trying to use it with network cams that require authentication, is this possible at all? I thought it would have been http://user:name@IP/

However that doesn't seem to work. Also the status on the main page reads stopped no matter how many times I restart the service or click on stop and change the status to start/running. I'm not sure if its because its not recieving a vid signal or if there is something else wrong.

Also I have the following error message in my /var/log/httpd/error-log

/usr/local/bin/zmu: error while loading shared libraries: libavcodec.so: cannot enable executable stack as shared object requires: Permission denied
[Tue Jun 06 12:52:48 2006] [error] [client IP] File does not exist: /var/www/html/images/PlantCam1-Zones.jpg, referer: http://IP/index.php?view=zones&mid=1


And this in the zmdc.log

6/06/2006 12:52:46.285891 zmdc[3045].INF ['zmc -m 1' starting at 06/06/06 12:52:46, pid = 3204]
06/06/2006 12:52:46.337801 zmdc[3045].ERR ['zmc -m 1' exited abnormally, exit status 255]
06/06/2006 12:52:46.338312 zmdc[3045].INF [Starting pending process, zmc -m 1]
06/06/2006 12:52:46.339890 zmdc[3206].INF ['zmc -m 1' started at 06/06/06 12:52:46]
06/06/2006 12:52:46.345906 zmdc[3045].INF ['zmc -m 1' starting at 06/06/06 12:52:46, pid = 3206]
06/06/2006 12:52:46.384532 zmdc[3045].ERR ['zmc -m 1' exited abnormally, exit status 255]
06/06/2006 12:52:51.085896 zmdc[3045].INF [Starting pending process, zmc -m 1]
06/06/2006 12:52:51.087538 zmdc[3210].INF ['zmc -m 1' started at 06/06/06 12:52:51]
06/06/2006 12:52:51.090158 zmdc[3045].INF ['zmc -m 1' starting at 06/06/06 12:52:51, pid = 3210]
06/06/2006 12:52:51.129107 zmdc[3045].ERR ['zmc -m 1' exited abnormally, exit status 255]

any help would be greatly appreciated. Please add me to msn if you know of a solution to this problem or are willing to help me troubleshoot.

Also if someone has a network cam that they'd be willing to let me connect to and test my setup it would be a great help I suspect these issues have something to do with the authentication. I'm running Axis 221's
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

if your stucj i can open some port forwarding on my ip cams but id try to get it working without auth first and see as your layout for auth is correct
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
MamboKing
Posts: 10
Joined: Tue Jun 06, 2006 4:40 pm

thanks

Post by MamboKing »

I just took the auth off on some of my cams, it still seems to not be working, is there a how-to somewhere for setting up the network cams?

basically all I'm doing is popping in the IP address of the camera and for the path I put /view/index.shtml as that is the page it brings me to when I view the cam directly. I don't think the capture engine is working properly, is there anyway to test it directly?

I'm running on Fedora Core 4, if anyone has experience on that platform I'm willing to provide ssh access to my box in hopes that someone may catch something that I missed?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

in the path you need to put the path for a pure image. Ie image only nothing else. Thats your problem it would appear.
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
MamboKing
Posts: 10
Joined: Tue Jun 06, 2006 4:40 pm

maybe its my cam?

Post by MamboKing »

I called it quits on my Fedora core compile and installed FC3 and added the CTU repos to my /etc/yum.repos.d/

I installed via yum install zm
I must say totally awesome and pain free, too bad there isn't one for FC4 yet :) so it did everything but install mysqld so I did that and ran the script which populated my database and updated the config for zm in /etc/zm.conf

wow everything works, I can start stop restart the service vi the main zm.php all the options including x10 are install properly and my httpd error logs and /var/log/zmdc.log are all happy

so I add my first monitor(Axis 207)
Monitor Tab
Name TestCam
Function Monitor
Section length 600
Frame Skip 0
Run Mode Continuous
Triggers None available
Source Type Remote

Source Tab
Remote Host Name 192.168.0.102
Remote Host Port 80
Remote Host Path /axis-cgi/jpg/image.cgi?resolution=640x480 <--- per another post on the wiki using an axis cam I've also tried /jpg/image.jpg
Remote Image Colours 24 bit colour
Capture Width (pixels) 640 <--- also tried 320
Capture Height (pixels) 480 <---- also tried 240
Orientation Normal

still nothing I can't figure it out, is there something special that needs to be done to the config of the axi cam? or is this cam just not compatible.

Could somebody post their config please so I can compare? Or even better if someone has this particular cam could you tell me what I'm doing wrong? :) Thanks for all your help!
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

im using axis 206's but assume the paths are the same

my path statement
/axis-cgi/jpg/image.cgi?resolution=640x480
host name = ip and port 80
Id check your ogs as this seems right to me, plus id put the full url as your setting in a vrowser and check you get a jpg
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Flash_
Posts: 441
Joined: Wed Jan 11, 2006 12:19 pm

Post by Flash_ »

That looks ok (Note ZM also has Axis presets that work with most cams).

The only thing I can think of is the shmem issue in the faq - that's needed for 640x480 in colour on most systems I think. Although if you've tried at 320x240 that should've worked if it was shmem.

Btw, mine (working - 205, 206's, 211's and 207w, same setup) is

/axis-cgi/mjpg/video.cgi?resolution=640x480

Colour = Yes

640x480

Obviously check the camera's working and auth is OFF *AND* you have "Anonymous users" enabled in the 207's config - at least until you get it working.
MamboKing
Posts: 10
Joined: Tue Jun 06, 2006 4:40 pm

endless video

Post by MamboKing »

I tried putting in http://192.168.0.102/axis-cgi/mjpg/vide ... on=640x480 into my browser instead of seeing a jpg I get a dialog box to save "video" and it starts downloading this file and never stops. I've taken auth out and I allow anonymous viewing on the cam and tested it. I can view it in my browser without a problem, zm seems to not be capturing the feed properly
MamboKing
Posts: 10
Joined: Tue Jun 06, 2006 4:40 pm

Post by MamboKing »

could I take you up on the offer to allow me to connect to one of your cams? This way I would be able to elimate my install vs the setup on my cam.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

sure ihang on, but if you want to view an mjpeg stream you will need firefox, ie will only work with the jpeg url i posted
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

pm when you about and i will send the log in details, i cant for obvious reasons open my cam up without a password but i will let you text fo a limted period if it helps, its an axis 206m
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
byte
Posts: 39
Joined: Mon May 22, 2006 3:02 pm
Location: Sunny Essex in UK

Post by byte »

I installed just yesterday a axis 205 using the following...

Remote host Name = 192.168.1.x.x
Remote host Port = 80
Remote Host Path = /jpg/image.jpg

Only problem I had is that I had to set the camera to 320x240 and now working great, this was done on SuSE 10.0
MamboKing
Posts: 10
Joined: Tue Jun 06, 2006 4:40 pm

Post by MamboKing »

did you set it to 320=240 on the actual camera config or just the monitor config in zm? I noticed that if I do that the color of the monitor changes to green, but still no vid feed.
byte
Posts: 39
Joined: Mon May 22, 2006 3:02 pm
Location: Sunny Essex in UK

Post by byte »

I set it on both the axis web interface and the zm interface using 24 bit colour
MamboKing
Posts: 10
Joined: Tue Jun 06, 2006 4:40 pm

Post by MamboKing »

wow, thanks!!!!! that worked, i used the /axis-cgi/mjpg/video.cgi?resolution=320x240 and just the IP in the host name, everything is working now, thanks soooo much for your input guys!!
Locked