Can't view live feed with IP camera

Forum for questions and support relating to the 1.30.x releases only.
Locked
mweiss001
Posts: 2
Joined: Thu Aug 04, 2016 1:55 pm

Can't view live feed with IP camera

Post by mweiss001 »

Hi,

I am trying to setup a new zoneminder 1.30.0 system.

I am using ubuntu server 16.04.1 fresh install with lamp

I followed the easy setup guide at:

http://zoneminder.readthedocs.io/en/lat ... untu-16-04

I am trying to add an IP camera:
AXIS 221 Day and Night Network Camera (p/n 0221-001-01)
IP set to DHCP (it grabbed 192.168.1.113)

This works in a browser:
192.168.1.113/axis-cgi/mjpg/video.cgi?camera=&resolution=320×240

I added a new monitor:

Name:axis
Source Type: Remote
Function: Monitor

Remote Protocol: HTTP
Remote Method: Simple
Remote Host Name: 192.168.1.113
Remote Host Port: 80
Remote Host Path: /axis-cgi/mjpg/video.cgi?camera=&resolution=320×240

Target colorspace: 24 bit color
Capture Width: 320
Capture Height: 240

I am getting log messages:
axis: 1000 Capturing at 30 fps

but I still can't see it in the feed, i get log errors:
socket_sendto( /var/run/zm/zms-591196s.sock) failed: No such file or directory

I followed the advice in another post:
---------------------------------------------------------------------------------------
check if you have a double configured scriptalias. there is a standard one configure in the apache2 and

overlaps with the zoneminder config.

socket_sendto( /var/run/zm/zms-152934s.sock ) failed: No such file or directory

That happens when your Apache ScriptAlias directive is configured incorrectly or overlaps with another

ScriptAlias
-------------------------------------------------------------------------------------------
I commented out these lines in
/etc/apache2/conf-enabled/serve-cgi-bin.conf

# <IfDefine ENABLE_USR_LIB_CGI_BIN>
# ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
# <Directory “/usr/lib/cgi-bin”>
# AllowOverride None
# Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
# Require all granted
# </Directory>
# </IfDefine>

It made no difference

I tried switching to chrome from firefox and got the same result.

Can anyone help, or point me in the right direction?
mweiss001
Posts: 2
Joined: Thu Aug 04, 2016 1:55 pm

Re: Can't view live feed with IP camera

Post by mweiss001 »

FIXED!!

I re-read the install instructions a found a link to

Socket_sendto or no live streaming

After you have setup your camera make sure you can view Monitor streams, if not check some of the common causes:

Check Apache cgi module is enabled.
Check Apache /etc/apache2/conf-enabled/zoneminder.conf ScriptAlias matches PATH_ZMS.

ScriptAlias /zm/cgi-bin /usr/lib/zoneminder/cgi-bin

From console go to Options->Path and make sure PATH_ZMS is set to /zm/cgi-bin/nph-zms.


This fixed the problem!
DALDON
Posts: 20
Joined: Wed Jul 16, 2014 5:35 pm

Re: Can't view live feed with IP camera

Post by DALDON »

No. Live stream in mpeg mode does not work.
sharkspear
Posts: 14
Joined: Mon Aug 08, 2016 3:07 pm

Re: Can't view live feed with IP camera

Post by sharkspear »

https://github.com/ZoneMinder/ZoneMinder/issues/473

You tried this? beside this:
mpeg slows down your server...
DALDON
Posts: 20
Joined: Wed Jul 16, 2014 5:35 pm

Re: Can't view live feed with IP camera

Post by DALDON »

sharkspear wrote:https://github.com/ZoneMinder/ZoneMinder/issues/473

You tried this? beside this:
mpeg slows down your server...
Yes. webm, ogg - kill CPU on my server. But, VLC can use URL for avi, without any problem 0-3 CPU time. But it doesn't work. You can see my post on this forum.

mjpeg - rather stupid.
Locked