ZoneMinder 1.25.0 - preview
-
- Posts: 678
- Joined: Wed Dec 16, 2009 4:32 pm
- Location: Israel
Re: ZoneMinder 1.25.0 - preview
Video generation fails when using an absolute events path. (Note: this isn't a new problem. It seems old versions of ZM are also affected)
Below is a proposed patch to fix this:
mastertheknife
After changing back to relative path, it works fine.Unable to generate video, check /var/www/zoneminder/htdocs//var/www/zoneminder/htdocs/events/2/11/08/01/01/00/00/ffmpeg.log for details
Below is a proposed patch to fix this:
Code: Select all
--- General.pm.old 2011-07-01 09:48:15.000000000 +0300
+++ General.pm 2011-08-01 18:53:10.661000262 +0300
@@ -199,11 +199,19 @@
my $event_path = "";
if ( ZM_USE_DEEP_STORAGE )
{
- $event_path = ZM_PATH_WEB.'/'.ZM_DIR_EVENTS.'/'.$event->{MonitorId}.'/'.strftime( "%y/%m/%d/%H/%M/%S", localtime($event->{Time}) );
+ if ( index(ZM_DIR_EVENTS,'/') == 0 ) {
+ $event_path = ZM_DIR_EVENTS.'/'.$event->{MonitorId}.'/'.strftime( "%y/%m/%d/%H/%M/%S", localtime($event->{Time}) );
+ } else {
+ $event_path = ZM_PATH_WEB.'/'.ZM_DIR_EVENTS.'/'.$event->{MonitorId}.'/'.strftime( "%y/%m/%d/%H/%M/%S", localtime($event->{Time}) );
+ }
}
else
{
- $event_path = ZM_PATH_WEB.'/'.ZM_DIR_EVENTS.'/'.$event->{MonitorId}.'/'.$event->{Id};
+ if ( index(ZM_DIR_EVENTS,'/') == 0 ) {
+ $event_path = ZM_DIR_EVENTS.'/'.$event->{MonitorId}.'/'.$event->{Id};
+ } else {
+ $event_path = ZM_PATH_WEB.'/'.ZM_DIR_EVENTS.'/'.$event->{MonitorId}.'/'.$event->{Id};
+ }
}
return( $event_path );
}
Kfir Itzhak.
-
- Posts: 35
- Joined: Tue Jun 15, 2010 6:18 am
Re: ZoneMinder 1.25.0 - preview
It seems that I am unable to create or modify Zones correctly.
It allows me to open the window, but there are no points for me to alter. The logging system states:
It allows me to open the window, but there are no points for me to alter. The logging system states:
Code: Select all
2011-08-01 11:19:09.113507 web_js 5970 ERR Uncaught TypeError: Object # has no method 'injectInside' http://boxipaddress/zm/skins/classic/views/js/zone.js 441
-
- Posts: 5
- Joined: Tue May 04, 2010 12:26 pm
Re: ZoneMinder 1.25.0 - preview
I've been using the svn version for a while and have liked it very much. I have noticed one small annoying bug that is easily fixed. When "watching" a camera and there is no value for RELOAD_CAMBOZOLA set aka "var appletRefreshTime = ;" all of the var's generated from watch.js.php are "undefined". So you can see the stream, but no other information shows. I'm guessing this, or something similar, would affect other pages too.
There should be some type of safety check, I'm thinking, that will set the value to 0 or some default if null like (untested to see if it would actually "echo" correctly):
or possibly in the database the default value should be defined.
There should be some type of safety check, I'm thinking, that will set the value to 0 or some default if null like (untested to see if it would actually "echo" correctly):
Code: Select all
var appletRefreshTime = <?= (empty(ZM_RELOAD_CAMBOZOLA)? 0 : ZM_RELOAD_CAMBOZOLA); >
Re: ZoneMinder 1.25.0 - preview
Under Ubuntu 11.04 box (OpenSSH and LAMP packages, VMWare appliance), compiled from SVN with libjpeg-turbo.
Works fine.
Issue repoted:
a - Some include missed in zm_user.cpp, like showned in the
http://www.zoneminder.com/wiki/index.ph ... _Cambozola
b - zm.conf not found so I need to change the right path in include/config.php file to run zoneminder.
PROS:
c - CPU consumption using libjpeg-turbo is about 1/3 than standard library.
Some questions:
1 - What are the Changes in the 1.25.0 respect the 1.24.4, ChangeLog doesn't report any informations about
2 - I plan to use a production environment starting at end of september. It's better to use the 1.25.0 or 1.24.4 ?
3 - It's the milestone for the 1.25.x release defined ?
Thanks in advance.
- Pierluigi
VeryGood work
Works fine.
Issue repoted:
a - Some include missed in zm_user.cpp, like showned in the
http://www.zoneminder.com/wiki/index.ph ... _Cambozola
b - zm.conf not found so I need to change the right path in include/config.php file to run zoneminder.
PROS:
c - CPU consumption using libjpeg-turbo is about 1/3 than standard library.
Some questions:
1 - What are the Changes in the 1.25.0 respect the 1.24.4, ChangeLog doesn't report any informations about
2 - I plan to use a production environment starting at end of september. It's better to use the 1.25.0 or 1.24.4 ?
3 - It's the milestone for the 1.25.x release defined ?
Thanks in advance.
- Pierluigi
VeryGood work
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: ZoneMinder 1.25.0 - preview
Can you check you have the latest version of 1.25.0 as I can't see this issue.camroidv27 wrote:It seems that I am unable to create or modify Zones correctly.
It allows me to open the window, but there are no points for me to alter. The logging system states:Code: Select all
2011-08-01 11:19:09.113507 web_js 5970 ERR Uncaught TypeError: Object # has no method 'injectInside' http://boxipaddress/zm/skins/classic/views/js/zone.js 441
Phil
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: ZoneMinder 1.25.0 - preview
The default in the DB should be 0 so I'm not sure how you ended up with a blank value. I am going to add some further validation into the Options screen anyway to try and avoid this sort of thing happening by accident.SecurityGuy wrote:I've been using the svn version for a while and have liked it very much. I have noticed one small annoying bug that is easily fixed. When "watching" a camera and there is no value for RELOAD_CAMBOZOLA set aka "var appletRefreshTime = ;" all of the var's generated from watch.js.php are "undefined". So you can see the stream, but no other information shows. I'm guessing this, or something similar, would affect other pages too.
There should be some type of safety check, I'm thinking, that will set the value to 0 or some default if null like (untested to see if it would actually "echo" correctly):
or possibly in the database the default value should be defined.Code: Select all
var appletRefreshTime = <?= (empty(ZM_RELOAD_CAMBOZOLA)? 0 : ZM_RELOAD_CAMBOZOLA); >
Phil
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: ZoneMinder 1.25.0 - preview
1.25.0 is not officially released yet which is why there is no entry in the ChangeLog. Basically though it is as per the first post in this thread, just a total revamp of the logging, though now also with a few other tweaks. I plan to actually release 1.25.0 ASAP so that should be good for your setup. Immediately after I will make available a preview of 1.25.1 which will have mastertheknife's proposed optimisations and f that goes well, it will be released soon after.tea4two wrote: Some questions:
1 - What are the Changes in the 1.25.0 respect the 1.24.4, ChangeLog doesn't report any informations about
2 - I plan to use a production environment starting at end of september. It's better to use the 1.25.0 or 1.24.4 ?
3 - It's the milestone for the 1.25.x release defined ?
Phil
Re: ZoneMinder 1.25.0 - preview
Hello Everyone,
First, thank you for this good app ... but i try to install the zoneminder 1.25.0 préview on a fresh ubuntu server 11 32bit
and i find no documentation ... is it possible to see some screenshots of the new functionality ?
i made some test with the 1.24.2 version and during the system update (ubuntu update manager) the zoneminder wil not annymore work ...
how can i find some logs ?
PS: if there are users that i made some auto-install script ... i'm interesed ;--)
Kind regards
JuVeNaL
First, thank you for this good app ... but i try to install the zoneminder 1.25.0 préview on a fresh ubuntu server 11 32bit
and i find no documentation ... is it possible to see some screenshots of the new functionality ?
i made some test with the 1.24.2 version and during the system update (ubuntu update manager) the zoneminder wil not annymore work ...
how can i find some logs ?
PS: if there are users that i made some auto-install script ... i'm interesed ;--)
Kind regards
JuVeNaL
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: ZoneMinder 1.25.0 - preview
There are various Ubuntu guides on the Wiki. There is nothing specific to 1.25.0 as it is not released yet but it is not that different than previous versions.
Phil
Re: ZoneMinder 1.25.0 - preview
Thanks for your fast answer.zoneminder wrote:There are various Ubuntu guides on the Wiki. There is nothing specific to 1.25.0 as it is not released yet but it is not that different than previous versions.
If i try to install during the at the end of the 'make' i receive the following error 'zm_local_camera.cpp:774 error: 'PATH_MAX' was not declared in this scope
Can you help me ?
Kind regards
JuVeNaL
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: ZoneMinder 1.25.0 - preview
Hmm, this is a new one. Can you try editing that file and underneath the other #include lines addJuVeNaL wrote: If i try to install during the at the end of the 'make' i receive the following error 'zm_local_camera.cpp:774 error: 'PATH_MAX' was not declared in this scope
Code: Select all
#include <stdlib.h>
Phil
Re: ZoneMinder 1.25.0 - preview
still the same error
Code: Select all
mv -f .deps/zm_ffmpeg_camera.Tpo .deps/zm_ffmpeg_camera.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -D__STDC_CONSTANT_MACROS -march=native -O2 -pipe -march=native -O2 -pipe -MT zm_image.o -MD -MP -MF .deps/zm_image.Tpo -c -o zm_image.o zm_image.cpp
zm_image.cpp: In member function ‘void Image::Blend(const Image&, int) const’:
zm_image.cpp:777: warning: operation on ‘pdest’ may be undefined
mv -f .deps/zm_image.Tpo .deps/zm_image.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -D__STDC_CONSTANT_MACROS -march=native -O2 -pipe -march=native -O2 -pipe -MT zm_local_camera.o -MD -MP -MF .deps/zm_local_camera.Tpo -c -o zm_local_camera.o zm_local_camera.cpp
zm_local_camera.cpp: In static member function ‘static bool LocalCamera::GetCurrentSettings(const char*, char*, int, bool)’:
zm_local_camera.cpp:775: error: ‘PATH_MAX’ was not declared in this scope
zm_local_camera.cpp:780: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:782: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:783: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:800: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:802: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:812: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:937: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:962: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:1087: error: ‘queryDevice’ was not declared in this scope
make[2]: *** [zm_local_camera.o] Error 1
make[2]: Leaving directory `/usr/src/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/ZoneMinder-1.25.0'
make: *** [all] Error 2
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: ZoneMinder 1.25.0 - preview
Ok, think I had the wrong header file there. Try using limits.h instead.
Phil
Re: ZoneMinder 1.25.0 - preview
on the ZM_local_camera.cpp i add #include <limits.h> ?zoneminder wrote:Ok, think I had the wrong header file there. Try using limits.h instead.
I try it and same error ....
Kind regards
JuVeNaL