ZM 1.29 with IP302-PI

Forum for questions and support relating to the 1.29.x releases only.
Locked
rm5248
Posts: 3
Joined: Fri Jan 15, 2016 1:40 am

ZM 1.29 with IP302-PI

Post by rm5248 »

Hey all, I've just installed 1.29 and I've got a few problems, and I hope that somebody can help me out.

First of all, the system that I'm running zoneminder on(it's an old computer of mine, but it still works!):

AMD Athlon 64 x2 3800+(2.0 GHz)
4 GB RAM
> 1TB HDD space
Debian 8 (Jessie)

I've got two Trendnet IP302-PI cameras that I want to connect up. In order to do that, I've installed the latest version of Zoneminder from git,
as according to this issue the cameras won't work with 1.28: https://github.com/ZoneMinder/ZoneMinder/pull/691 (1.28 is what is in jessie-backports). To install it from git I did:

ln -s distros/debian8 debian
dpkg-buildpackage
dpkg -i <generated .deb files>

Everything seems to work fine, but I can't see any streaming on the web console. The source is green, on the web side, which the docs indicate means that it is working properly. I setup the secondary stream on the camera for testing purposes, which is set to a 320x240
stream at 10 FPS. Zoneminder has been setup with a 'Source Type' of ffmpeg and a source path of admin:admin@10.10.10.21:554/v2. I can play this video perfectly fine using VLC and opening up a network stream.

However, once I try to view the camera through the web it never comes up. Also, on my server, the 'zmc' process is running at 100%
all the time, which seems very odd given the small resolution that I have set the camera to. *note: I managed to drop the process down
in CPU usage by limiting the FPS on the Zoneminder side.

I'd really like to get these cameras working, any ideas on what I can do/what other information would be helpful?
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: ZM 1.29 with IP302-PI

Post by SteveGilvarry »

No visible stream is normally apache config, around cgi alias. Check logs to see what is going on, post what you find or search for is as most of the time someone has been there done that. CPU pegging probably indicates that it is not working and continually trying to connect. Setting Max FPS to a value able the camera FPS can prevent this sort on connection runaway.

FYI that pull request was only for Remote Source Type.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
bbunge
Posts: 2949
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: ZM 1.29 with IP302-PI

Post by bbunge »

You may want to look over this to see if you are missing something. It is for 1.28.1 but should be close for 1.29..

https://wiki.zoneminder.com/Debian_8.1_ ... e_Easy_Way
rm5248
Posts: 3
Joined: Fri Jan 15, 2016 1:40 am

Re: ZM 1.29 with IP302-PI

Post by rm5248 »

SteveGilvarry wrote:No visible stream is normally apache config, around cgi alias. Check logs to see what is going on, post what you find or search for is as most of the time someone has been there done that. CPU pegging probably indicates that it is not working and continually trying to connect. Setting Max FPS to a value able the camera FPS can prevent this sort on connection runaway.
The one thing that I do notice in the apache logs whenever I try to stream the video:
[Sun Jan 17 06:25:03.771844 2016] [mpm_prefork:notice] [pid 26611] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations
[Sun Jan 17 06:25:03.771897 2016] [core:notice] [pid 26611] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 17 11:41:32.692939 2016] [:error] [pid 4623] [client 10.0.0.10:60250] PHP Notice: Undefined index: User in /usr/share/zoneminder/skins/classic/views/monitor.php on line 556, referer: http://10.10.10.30/zm/index.php
[Sun Jan 17 11:41:32.693057 2016] [:error] [pid 4623] [client 10.0.0.10:60250] PHP Notice: Undefined index: Pass in /usr/share/zoneminder/skins/classic/views/monitor.php on line 557, referer: http://10.10.10.30/zm/index.php
[Sun Jan 17 11:41:32.693108 2016] [:error] [pid 4623] [client 10.0.0.10:60250] PHP Notice: Undefined index: RTSPDescribe in /usr/share/zoneminder/skins/classic/views/monitor.php on line 573, referer: http://10.10.10.30/zm/index.php
[Sun Jan 17 11:44:39.194153 2016] [:error] [pid 4233] [client 10.0.0.10:60267] ERR [socket_sendto( /var/run/zm/zms-924318s.sock ) failed: No such file or directory], referer: http://10.10.10.30/zm/?view=watch&mid=1
[Sun Jan 17 11:44:50.794584 2016] [:error] [pid 4234] [client 10.0.0.10:60268] ERR [socket_sendto( /var/run/zm/zms-924318s.sock ) failed: No such file or directory], referer: http://10.10.10.30/zm/?view=watch&mid=1
[Sun Jan 17 11:44:52.861809 2016] [:error] [pid 4232] [client 10.0.0.10:60269] ERR [socket_sendto( /var/run/zm/zms-924318s.sock ) failed: No such file or directory], referer: http://10.10.10.30/zm/?view=watch&mid=1
[Sun Jan 17 11:54:23.743190 2016] [:error] [pid 4897] [client 10.0.0.10:60313] ERR [socket_sendto( /var/run/zm/zms-151349s.sock ) failed: No such file or directory], referer: http://10.10.10.30/zm/index.php?view=watch&mid=1
A similar error appears in the zoneminder log. PATH_ZMS is set to /zm/cgi-bin/nph-zms
SteveGilvarry wrote:FYI that pull request was only for Remote Source Type.
Oddly enough, nothing worked using 1.28, so either that patch does fix it or there was another fix that changed things.
rm5248
Posts: 3
Joined: Fri Jan 15, 2016 1:40 am

Re: ZM 1.29 with IP302-PI

Post by rm5248 »

Okay, so good news! I took some time to look at it, and here's what I found:
  • The cameras do work with 1.29
  • Zoneminder can handle the full 1280x800 resolution
What I did to fix it:
  • Changed my cgi-bin path in Zoneminder to the default of /cgi-bin/nph-zms. For some reason, this guide indicates that you should change the cgi-bin path to /zm/cgi-bin/nph-zms. This does not work, although it may be needed on Debian 7(wheezy)
  • I used (nearly) the same settings for the IP-310PI:

Code: Select all

Source Type: Remote
Remote Protocol: RTSP
Remote Method: RTP/RTSP
Remote Host Name: username:password@<ip-address>
Remote Host Port: 554
Remote Host Path: /
The processor is also not running at 100% utilization anymore. It seems this happens if you try to use 'ffmpeg' as a source with this camera. In the logs, it comes up with the following error:
2016-01-20 20:29:34.167709 zmc_m3 27379 ERR Unable to open input <user:pass>@10.10.10.21:554/v2 due to: Success zm_ffmpeg_camera.cpp 271
Locked