Hi,
Well, I don't know what happend. I was letting zoneminder run, collecting events, and suddenly it stopped providing film clips of past events. Although it does appear the still images are captured, I can't view them either via the web interface. There is no corresponding mpeg file, or corresponding log file, in any of the events subdirectories.
Checking zmdc.log I find:
'zmfilter.pl -m 1 -e -1' starting at 03/11/04 23:16:29, pid = 5196
Can't locate MIME/Entity.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/site_perl/5.8.0/i686-linux /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i686-linux /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i686-linux /usr/lib/perl5/5.8.0 /usr/local/lib/site_perl) at /usr/local/bin/zmfilter.pl line 86.
BEGIN failed--compilation aborted at /usr/local/bin/zmfilter.pl line 86.
'zmfilter.pl -m 1 -e -1' crashed at 03/11/04 23:16:30, exit status 2
Anyone have any idea what is going on here. I don't understand how it could be working one day and completely fubared the next.
Thanks for any help!
Jean.
Can't locate MIME/Entity.pm
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: Can't locate MIME/Entity.pm
Hi Jean-Michel,
I doubt that the zmfilter issue you are seeing if related to your problem as zmfilter is just used for autmatic deletion, mailing or archiving of events. The message you are getting relates to a missing perl module, check the README for instruction on how to install it.
Regarding your problem, when you say you can't view anything via the web interface what do you see? Broken image links? Can you see images and not streams? The 'clips' you refer to, do you mean mpeg files or just the streaming representations? If you can be a bit more specific it will help a lot. The mpeg files are only generated if you ask for them so the fact that they are missing is not a problem in itself.
Usually when things work for a while and then stop it is indicative of running out of disk space or something using up all the memory. Are you ok in both of these regards? Please check your system log files (in /var/log) to see if anything obvious appears.
Regards,
Phil,
I doubt that the zmfilter issue you are seeing if related to your problem as zmfilter is just used for autmatic deletion, mailing or archiving of events. The message you are getting relates to a missing perl module, check the README for instruction on how to install it.
Regarding your problem, when you say you can't view anything via the web interface what do you see? Broken image links? Can you see images and not streams? The 'clips' you refer to, do you mean mpeg files or just the streaming representations? If you can be a bit more specific it will help a lot. The mpeg files are only generated if you ask for them so the fact that they are missing is not a problem in itself.
Usually when things work for a while and then stop it is indicative of running out of disk space or something using up all the memory. Are you ok in both of these regards? Please check your system log files (in /var/log) to see if anything obvious appears.
Regards,
Phil,
Re: Can't locate MIME/Entity.pm
Hi Philip,
You were right ... the problems were unrelated. I don't know how or why the module went missing, but an emerge of the appropriate perl modules eliminated all of the error messages in zmdc.log.
However, I still do not see viewable events in the web interface. The events appear, but are just labled "Event" rather than "Event-#', and while they have a timestamp, they do not have a duration [Secs always equals 0.00], no frame count, and no score. They also have no viewable stream or still images (via the web interface), although I do find the stills in the events directory when I cd into the events directory.
The only thing that has changed is that I've dedicated a new 200 gb partition to zoneminder. However, all of the permissions are such that user apache has read/write/execute priveleges and ownership of the entire partition (and the directory it is mounted on). I did this after I ran out of space on the /var/www partition. :-)
Here is /var/log/everything/current's output:
Nov 5 06:18:12 [zma-m1] INF [shm.size=207361648]
Nov 5 06:18:12 [zma-m1] INF [Initialised zone 0/All - 1 - 480x360 - Rgb:ff0000, AT:15, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0]
Nov 5 06:18:12 [zma-m1] INF [Monitor Lobby has function 3]
Nov 5 06:18:12 [zma-m1] INF [Monitor Lobby LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Nov 5 06:18:12 [zma-m1] INF [Monitor Lobby IBC = 400, WUC = 25, pEC = 90, PEC = 120, FRI = 1000, RBP = 10]
Nov 5 06:18:12 [zma-m1] INF [Got 2 zones for monitor Lobby]
Nov 5 06:18:12 [zma-m1] INF [Initialised zone 2/FrontDoor - 1 - 216x181 - Rgb:00ff00, AT:25, MnAP:0, MxAP:0, FB:15x15, MnFP:0, MxFP:0, MnBS:0, MxBS:0, MnB:1, MxB:100]
Nov 5 06:18:12 [zma-m1] INF [Initialised zone 3/InnerDoors - 1 - 241x335 - Rgb:ff0000, AT:25, MnAP:0, MxAP:0, FB:15x15, MnFP:0, MxFP:0, MnBS:0, MxBS:0, MnB:1, MxB:100]
Nov 5 06:18:12 [zma-m1] INF [Loaded monitor 1(Lobby), 2 zones]
Nov 5 06:18:12 [zma-m1] INF [Warming up]
Nov 5 06:18:30 [zms] INF [Debug Level = 0, Debug Log = ]
Nov 5 06:18:30 [zms] INF [Got 1 monitors]
Nov 5 06:18:30 [zms] INF [monitor mode=0]
Nov 5 06:18:30 [zms] INF [shm.size=207361648]
Nov 5 06:18:30 [zms] INF [Initialised zone 0/All - 1 - 480x360 - Rgb:ff0000, AT:15, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0]
Nov 5 06:18:30 [zms] INF [Monitor Lobby has function 3]
Nov 5 06:18:30 [zms] INF [Monitor Lobby LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Nov 5 06:18:30 [zms] INF [Monitor Lobby IBC = 400, WUC = 25, pEC = 90, PEC = 120, FRI = 1000, RBP = 10]
Nov 5 06:18:30 [zms] INF [Loaded monitor 1(Lobby), 0 zones]
Nov 5 06:18:41 [zmc-d0] INF [Lobby: 1000 - Capturing at 29.41 fps]
Nov 5 06:18:43 [zma-m1] INF [Lobby: 1000 - Processing at 32.26 fps]
Nov 5 06:19:14 [zmc-d0] INF [Lobby: 2000 - Capturing at 30.30 fps]
Nov 5 06:19:16 [zma-m1] INF [Lobby: 2000 - Processing at 30.30 fps]
Nov 5 06:19:48 [zmc-d0] INF [Lobby: 3000 - Capturing at 29.41 fps]
Nov 5 06:19:50 [zma-m1] INF [Lobby: 3000 - Processing at 29.41 fps]
Nov 5 06:20:21 [zmc-d0] INF [Lobby: 4000 - Capturing at 30.30 fps]
Nov 5 06:20:23 [zma-m1] INF [Lobby: 4000 - Processing at 30.30 fps]
Nov 5 06:20:54 [zmc-d0] INF [Lobby: 5000 - Capturing at 30.30 fps]
Nov 5 06:20:56 [zma-m1] INF [Lobby: 5000 - Processing at 30.30 fps]
Nov 5 06:21:28 [zmc-d0] INF [Lobby: 6000 - Capturing at 29.41 fps]
Nov 5 06:21:30 [zma-m1] INF [Lobby: 6000 - Processing at 29.41 fps]
Nov 5 06:22:01 [zmc-d0] INF [Lobby: 7000 - Capturing at 30.30 fps]
Nov 5 06:22:03 [zma-m1] INF [Lobby: 7000 - Processing at 30.30 fps]
This is really baffling.
You were right ... the problems were unrelated. I don't know how or why the module went missing, but an emerge of the appropriate perl modules eliminated all of the error messages in zmdc.log.
However, I still do not see viewable events in the web interface. The events appear, but are just labled "Event" rather than "Event-#', and while they have a timestamp, they do not have a duration [Secs always equals 0.00], no frame count, and no score. They also have no viewable stream or still images (via the web interface), although I do find the stills in the events directory when I cd into the events directory.
The only thing that has changed is that I've dedicated a new 200 gb partition to zoneminder. However, all of the permissions are such that user apache has read/write/execute priveleges and ownership of the entire partition (and the directory it is mounted on). I did this after I ran out of space on the /var/www partition. :-)
Here is /var/log/everything/current's output:
Nov 5 06:18:12 [zma-m1] INF [shm.size=207361648]
Nov 5 06:18:12 [zma-m1] INF [Initialised zone 0/All - 1 - 480x360 - Rgb:ff0000, AT:15, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0]
Nov 5 06:18:12 [zma-m1] INF [Monitor Lobby has function 3]
Nov 5 06:18:12 [zma-m1] INF [Monitor Lobby LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Nov 5 06:18:12 [zma-m1] INF [Monitor Lobby IBC = 400, WUC = 25, pEC = 90, PEC = 120, FRI = 1000, RBP = 10]
Nov 5 06:18:12 [zma-m1] INF [Got 2 zones for monitor Lobby]
Nov 5 06:18:12 [zma-m1] INF [Initialised zone 2/FrontDoor - 1 - 216x181 - Rgb:00ff00, AT:25, MnAP:0, MxAP:0, FB:15x15, MnFP:0, MxFP:0, MnBS:0, MxBS:0, MnB:1, MxB:100]
Nov 5 06:18:12 [zma-m1] INF [Initialised zone 3/InnerDoors - 1 - 241x335 - Rgb:ff0000, AT:25, MnAP:0, MxAP:0, FB:15x15, MnFP:0, MxFP:0, MnBS:0, MxBS:0, MnB:1, MxB:100]
Nov 5 06:18:12 [zma-m1] INF [Loaded monitor 1(Lobby), 2 zones]
Nov 5 06:18:12 [zma-m1] INF [Warming up]
Nov 5 06:18:30 [zms] INF [Debug Level = 0, Debug Log = ]
Nov 5 06:18:30 [zms] INF [Got 1 monitors]
Nov 5 06:18:30 [zms] INF [monitor mode=0]
Nov 5 06:18:30 [zms] INF [shm.size=207361648]
Nov 5 06:18:30 [zms] INF [Initialised zone 0/All - 1 - 480x360 - Rgb:ff0000, AT:15, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0]
Nov 5 06:18:30 [zms] INF [Monitor Lobby has function 3]
Nov 5 06:18:30 [zms] INF [Monitor Lobby LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Nov 5 06:18:30 [zms] INF [Monitor Lobby IBC = 400, WUC = 25, pEC = 90, PEC = 120, FRI = 1000, RBP = 10]
Nov 5 06:18:30 [zms] INF [Loaded monitor 1(Lobby), 0 zones]
Nov 5 06:18:41 [zmc-d0] INF [Lobby: 1000 - Capturing at 29.41 fps]
Nov 5 06:18:43 [zma-m1] INF [Lobby: 1000 - Processing at 32.26 fps]
Nov 5 06:19:14 [zmc-d0] INF [Lobby: 2000 - Capturing at 30.30 fps]
Nov 5 06:19:16 [zma-m1] INF [Lobby: 2000 - Processing at 30.30 fps]
Nov 5 06:19:48 [zmc-d0] INF [Lobby: 3000 - Capturing at 29.41 fps]
Nov 5 06:19:50 [zma-m1] INF [Lobby: 3000 - Processing at 29.41 fps]
Nov 5 06:20:21 [zmc-d0] INF [Lobby: 4000 - Capturing at 30.30 fps]
Nov 5 06:20:23 [zma-m1] INF [Lobby: 4000 - Processing at 30.30 fps]
Nov 5 06:20:54 [zmc-d0] INF [Lobby: 5000 - Capturing at 30.30 fps]
Nov 5 06:20:56 [zma-m1] INF [Lobby: 5000 - Processing at 30.30 fps]
Nov 5 06:21:28 [zmc-d0] INF [Lobby: 6000 - Capturing at 29.41 fps]
Nov 5 06:21:30 [zma-m1] INF [Lobby: 6000 - Processing at 29.41 fps]
Nov 5 06:22:01 [zmc-d0] INF [Lobby: 7000 - Capturing at 30.30 fps]
Nov 5 06:22:03 [zma-m1] INF [Lobby: 7000 - Processing at 30.30 fps]
This is really baffling.
Re: Can't locate MIME/Entity.pm
Hi Philip,
You were right ... the problems were unrelated. I don't know how or why the module went missing, but an emerge of the appropriate perl modules eliminated all of the error messages in zmdc.log.
However, I still do not see viewable events in the web interface. The events appear, but are just labled "Event" rather than "Event-#', and while they have a timestamp, they do not have a duration [Secs always equals 0.00], no frame count, and no score. They also have no viewable stream or still images (via the web interface), although I do find the stills in the events directory when I cd into the events directory.
The only thing that has changed is that I've dedicated a new 200 gb partition to zoneminder. However, all of the permissions are such that user apache has read/write/execute priveleges and ownership of the entire partition (and the directory it is mounted on). I did this after I ran out of space on the /var/www partition. :-)
Here is /var/log/everything/current's output:
Nov 5 06:18:12 [zma-m1] INF [shm.size=207361648]
Nov 5 06:18:12 [zma-m1] INF [Initialised zone 0/All - 1 - 480x360 - Rgb:ff0000, AT:15, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0]
Nov 5 06:18:12 [zma-m1] INF [Monitor Lobby has function 3]
Nov 5 06:18:12 [zma-m1] INF [Monitor Lobby LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Nov 5 06:18:12 [zma-m1] INF [Monitor Lobby IBC = 400, WUC = 25, pEC = 90, PEC = 120, FRI = 1000, RBP = 10]
Nov 5 06:18:12 [zma-m1] INF [Got 2 zones for monitor Lobby]
Nov 5 06:18:12 [zma-m1] INF [Initialised zone 2/FrontDoor - 1 - 216x181 - Rgb:00ff00, AT:25, MnAP:0, MxAP:0, FB:15x15, MnFP:0, MxFP:0, MnBS:0, MxBS:0, MnB:1, MxB:100]
Nov 5 06:18:12 [zma-m1] INF [Initialised zone 3/InnerDoors - 1 - 241x335 - Rgb:ff0000, AT:25, MnAP:0, MxAP:0, FB:15x15, MnFP:0, MxFP:0, MnBS:0, MxBS:0, MnB:1, MxB:100]
Nov 5 06:18:12 [zma-m1] INF [Loaded monitor 1(Lobby), 2 zones]
Nov 5 06:18:12 [zma-m1] INF [Warming up]
Nov 5 06:18:30 [zms] INF [Debug Level = 0, Debug Log = ]
Nov 5 06:18:30 [zms] INF [Got 1 monitors]
Nov 5 06:18:30 [zms] INF [monitor mode=0]
Nov 5 06:18:30 [zms] INF [shm.size=207361648]
Nov 5 06:18:30 [zms] INF [Initialised zone 0/All - 1 - 480x360 - Rgb:ff0000, AT:15, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0]
Nov 5 06:18:30 [zms] INF [Monitor Lobby has function 3]
Nov 5 06:18:30 [zms] INF [Monitor Lobby LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Nov 5 06:18:30 [zms] INF [Monitor Lobby IBC = 400, WUC = 25, pEC = 90, PEC = 120, FRI = 1000, RBP = 10]
Nov 5 06:18:30 [zms] INF [Loaded monitor 1(Lobby), 0 zones]
Nov 5 06:18:41 [zmc-d0] INF [Lobby: 1000 - Capturing at 29.41 fps]
Nov 5 06:18:43 [zma-m1] INF [Lobby: 1000 - Processing at 32.26 fps]
Nov 5 06:19:14 [zmc-d0] INF [Lobby: 2000 - Capturing at 30.30 fps]
Nov 5 06:19:16 [zma-m1] INF [Lobby: 2000 - Processing at 30.30 fps]
Nov 5 06:19:48 [zmc-d0] INF [Lobby: 3000 - Capturing at 29.41 fps]
Nov 5 06:19:50 [zma-m1] INF [Lobby: 3000 - Processing at 29.41 fps]
Nov 5 06:20:21 [zmc-d0] INF [Lobby: 4000 - Capturing at 30.30 fps]
Nov 5 06:20:23 [zma-m1] INF [Lobby: 4000 - Processing at 30.30 fps]
Nov 5 06:20:54 [zmc-d0] INF [Lobby: 5000 - Capturing at 30.30 fps]
Nov 5 06:20:56 [zma-m1] INF [Lobby: 5000 - Processing at 30.30 fps]
Nov 5 06:21:28 [zmc-d0] INF [Lobby: 6000 - Capturing at 29.41 fps]
Nov 5 06:21:30 [zma-m1] INF [Lobby: 6000 - Processing at 29.41 fps]
Nov 5 06:22:01 [zmc-d0] INF [Lobby: 7000 - Capturing at 30.30 fps]
Nov 5 06:22:03 [zma-m1] INF [Lobby: 7000 - Processing at 30.30 fps]
This is really baffling.
You were right ... the problems were unrelated. I don't know how or why the module went missing, but an emerge of the appropriate perl modules eliminated all of the error messages in zmdc.log.
However, I still do not see viewable events in the web interface. The events appear, but are just labled "Event" rather than "Event-#', and while they have a timestamp, they do not have a duration [Secs always equals 0.00], no frame count, and no score. They also have no viewable stream or still images (via the web interface), although I do find the stills in the events directory when I cd into the events directory.
The only thing that has changed is that I've dedicated a new 200 gb partition to zoneminder. However, all of the permissions are such that user apache has read/write/execute priveleges and ownership of the entire partition (and the directory it is mounted on). I did this after I ran out of space on the /var/www partition. :-)
Here is /var/log/everything/current's output:
Nov 5 06:18:12 [zma-m1] INF [shm.size=207361648]
Nov 5 06:18:12 [zma-m1] INF [Initialised zone 0/All - 1 - 480x360 - Rgb:ff0000, AT:15, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0]
Nov 5 06:18:12 [zma-m1] INF [Monitor Lobby has function 3]
Nov 5 06:18:12 [zma-m1] INF [Monitor Lobby LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Nov 5 06:18:12 [zma-m1] INF [Monitor Lobby IBC = 400, WUC = 25, pEC = 90, PEC = 120, FRI = 1000, RBP = 10]
Nov 5 06:18:12 [zma-m1] INF [Got 2 zones for monitor Lobby]
Nov 5 06:18:12 [zma-m1] INF [Initialised zone 2/FrontDoor - 1 - 216x181 - Rgb:00ff00, AT:25, MnAP:0, MxAP:0, FB:15x15, MnFP:0, MxFP:0, MnBS:0, MxBS:0, MnB:1, MxB:100]
Nov 5 06:18:12 [zma-m1] INF [Initialised zone 3/InnerDoors - 1 - 241x335 - Rgb:ff0000, AT:25, MnAP:0, MxAP:0, FB:15x15, MnFP:0, MxFP:0, MnBS:0, MxBS:0, MnB:1, MxB:100]
Nov 5 06:18:12 [zma-m1] INF [Loaded monitor 1(Lobby), 2 zones]
Nov 5 06:18:12 [zma-m1] INF [Warming up]
Nov 5 06:18:30 [zms] INF [Debug Level = 0, Debug Log = ]
Nov 5 06:18:30 [zms] INF [Got 1 monitors]
Nov 5 06:18:30 [zms] INF [monitor mode=0]
Nov 5 06:18:30 [zms] INF [shm.size=207361648]
Nov 5 06:18:30 [zms] INF [Initialised zone 0/All - 1 - 480x360 - Rgb:ff0000, AT:15, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0]
Nov 5 06:18:30 [zms] INF [Monitor Lobby has function 3]
Nov 5 06:18:30 [zms] INF [Monitor Lobby LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Nov 5 06:18:30 [zms] INF [Monitor Lobby IBC = 400, WUC = 25, pEC = 90, PEC = 120, FRI = 1000, RBP = 10]
Nov 5 06:18:30 [zms] INF [Loaded monitor 1(Lobby), 0 zones]
Nov 5 06:18:41 [zmc-d0] INF [Lobby: 1000 - Capturing at 29.41 fps]
Nov 5 06:18:43 [zma-m1] INF [Lobby: 1000 - Processing at 32.26 fps]
Nov 5 06:19:14 [zmc-d0] INF [Lobby: 2000 - Capturing at 30.30 fps]
Nov 5 06:19:16 [zma-m1] INF [Lobby: 2000 - Processing at 30.30 fps]
Nov 5 06:19:48 [zmc-d0] INF [Lobby: 3000 - Capturing at 29.41 fps]
Nov 5 06:19:50 [zma-m1] INF [Lobby: 3000 - Processing at 29.41 fps]
Nov 5 06:20:21 [zmc-d0] INF [Lobby: 4000 - Capturing at 30.30 fps]
Nov 5 06:20:23 [zma-m1] INF [Lobby: 4000 - Processing at 30.30 fps]
Nov 5 06:20:54 [zmc-d0] INF [Lobby: 5000 - Capturing at 30.30 fps]
Nov 5 06:20:56 [zma-m1] INF [Lobby: 5000 - Processing at 30.30 fps]
Nov 5 06:21:28 [zmc-d0] INF [Lobby: 6000 - Capturing at 29.41 fps]
Nov 5 06:21:30 [zma-m1] INF [Lobby: 6000 - Processing at 29.41 fps]
Nov 5 06:22:01 [zmc-d0] INF [Lobby: 7000 - Capturing at 30.30 fps]
Nov 5 06:22:03 [zma-m1] INF [Lobby: 7000 - Processing at 30.30 fps]
This is really baffling.
Re: Can't locate MIME/Entity.pm
I just had an event that might shed some light on this...
Any reason why I would start getting MySQL server syntax errors like this? I don't believe I've changed anything that should have affected the database at all.
ov 5 06:24:39 [zma-m1] INF [FrontDoor: Alarm Pixels: 3098, Filter Pixels: 435, Blob Pixels: 435, Blobs: 1, Score: 1]
Nov 5 06:24:39 [zma-m1] INF [Lobby: 026 - Gone into alarm state]
Nov 5 06:24:40 [zma-m1] ERR [Can't insert frames: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'jpg( 17, 90, 'events/Lobby/17/capture-090.jpg( 17, 90, 'events/]
Nov 5 06:24:47 [zmc-d0] WAR [Buffer overrun at index 367_]
Nov 5 06:24:48 [zmc-d0] INF [Lobby: 12000 - Capturing at 29.41 fps]
Nov 5 06:25:00 [zmc-d0] WAR [Buffer overrun at index 367_]
- Last output repeated twice -
Nov 5 06:25:20 [zma-m1] INF [Debug Level = 0, Debug Log = ]
Nov 5 06:25:20 [zma-m1] INF [Got 1 monitors]
Nov 5 06:25:20 [zma-m1] INF [monitor mode=2]
Nov 5 06:25:20 [zma-m1] INF [shm.size=207361648]
Nov 5 06:25:20 [zma-m1] INF [Initialised zone 0/All - 1 - 480x360 - Rgb:ff0000, AT:15, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0]
Nov 5 06:25:20 [zma-m1] INF [Monitor Lobby has function 3]
Nov 5 06:25:20 [zma-m1] INF [Monitor Lobby LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Nov 5 06:25:20 [zma-m1] INF [Monitor Lobby IBC = 400, WUC = 25, pEC = 90, PEC = 120, FRI = 1000, RBP = 10]
Nov 5 06:25:20 [zma-m1] INF [Got 2 zones for monitor Lobby]
Nov 5 06:25:20 [zma-m1] INF [Initialised zone 2/FrontDoor - 1 - 216x181 - Rgb:00ff00, AT:25, MnAP:0, MxAP:0, FB:15x15, MnFP:0, MxFP:0, MnBS:0, MxBS:0, MnB:1, MxB:100]
Nov 5 06:25:20 [zma-m1] INF [Initialised zone 3/InnerDoors - 1 - 241x335 - Rgb:ff0000, AT:25, MnAP:0, MxAP:0, FB:15x15, MnFP:0, MxFP:0, MnBS:0, MxBS:0, MnB:1, MxB:100]
Nov 5 06:25:20 [zma-m1] INF [Loaded monitor 1(Lobby), 2 zones]
Nov 5 06:25:20 [zma-m1] INF [Warming up]
Nov 5 06:25:21 [zmc-d0] INF [Lobby: 13000 - Capturing at 30.30 fps]
Nov 5 06:25:32 [zms] INF [Debug Level = 0, Debug Log = ]
Nov 5 06:25:32 [zms] INF [Got 0 frames]
Nov 5 06:25:51 [zma-m1] INF [Lobby: 1000 - Processing at 32.26 fps]
Nov 5 06:25:54 [zmc-d0] INF [Lobby: 14000 - Capturing at 30.30 fps]
Nov 5 06:26:24 [zma-m1] INF [Lobby: 2000 - Processing at 30.30 fps]
Nov 5 06:26:28 [zmc-d0] INF [Lobby: 15000 - Capturing at 29.41 fps]
Thanks again for any help,
Jean.
Any reason why I would start getting MySQL server syntax errors like this? I don't believe I've changed anything that should have affected the database at all.
ov 5 06:24:39 [zma-m1] INF [FrontDoor: Alarm Pixels: 3098, Filter Pixels: 435, Blob Pixels: 435, Blobs: 1, Score: 1]
Nov 5 06:24:39 [zma-m1] INF [Lobby: 026 - Gone into alarm state]
Nov 5 06:24:40 [zma-m1] ERR [Can't insert frames: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'jpg( 17, 90, 'events/Lobby/17/capture-090.jpg( 17, 90, 'events/]
Nov 5 06:24:47 [zmc-d0] WAR [Buffer overrun at index 367_]
Nov 5 06:24:48 [zmc-d0] INF [Lobby: 12000 - Capturing at 29.41 fps]
Nov 5 06:25:00 [zmc-d0] WAR [Buffer overrun at index 367_]
- Last output repeated twice -
Nov 5 06:25:20 [zma-m1] INF [Debug Level = 0, Debug Log = ]
Nov 5 06:25:20 [zma-m1] INF [Got 1 monitors]
Nov 5 06:25:20 [zma-m1] INF [monitor mode=2]
Nov 5 06:25:20 [zma-m1] INF [shm.size=207361648]
Nov 5 06:25:20 [zma-m1] INF [Initialised zone 0/All - 1 - 480x360 - Rgb:ff0000, AT:15, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0]
Nov 5 06:25:20 [zma-m1] INF [Monitor Lobby has function 3]
Nov 5 06:25:20 [zma-m1] INF [Monitor Lobby LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
Nov 5 06:25:20 [zma-m1] INF [Monitor Lobby IBC = 400, WUC = 25, pEC = 90, PEC = 120, FRI = 1000, RBP = 10]
Nov 5 06:25:20 [zma-m1] INF [Got 2 zones for monitor Lobby]
Nov 5 06:25:20 [zma-m1] INF [Initialised zone 2/FrontDoor - 1 - 216x181 - Rgb:00ff00, AT:25, MnAP:0, MxAP:0, FB:15x15, MnFP:0, MxFP:0, MnBS:0, MxBS:0, MnB:1, MxB:100]
Nov 5 06:25:20 [zma-m1] INF [Initialised zone 3/InnerDoors - 1 - 241x335 - Rgb:ff0000, AT:25, MnAP:0, MxAP:0, FB:15x15, MnFP:0, MxFP:0, MnBS:0, MxBS:0, MnB:1, MxB:100]
Nov 5 06:25:20 [zma-m1] INF [Loaded monitor 1(Lobby), 2 zones]
Nov 5 06:25:20 [zma-m1] INF [Warming up]
Nov 5 06:25:21 [zmc-d0] INF [Lobby: 13000 - Capturing at 30.30 fps]
Nov 5 06:25:32 [zms] INF [Debug Level = 0, Debug Log = ]
Nov 5 06:25:32 [zms] INF [Got 0 frames]
Nov 5 06:25:51 [zma-m1] INF [Lobby: 1000 - Processing at 32.26 fps]
Nov 5 06:25:54 [zmc-d0] INF [Lobby: 14000 - Capturing at 30.30 fps]
Nov 5 06:26:24 [zma-m1] INF [Lobby: 2000 - Processing at 30.30 fps]
Nov 5 06:26:28 [zmc-d0] INF [Lobby: 15000 - Capturing at 29.41 fps]
Thanks again for any help,
Jean.
Re: Can't locate MIME/Entity.pm
Well, I feel quite silly.
I had forgotten I had tried to up the number of leading and following frames, to make sure I captured all of the lobby activity preceeding and following an alarm state. In particular, I had bumped up the Pre Event Image Buffer and Post Event Image Buffer to 90 and 120 frames respectively. This overflowed a buffer somewhere ... reducing them to 60 and 90 respectively fixed this.
Any idea on how I can increase the buffer size, so that I can increase the Image Buffers?
Also, given that I have the raw data (sans the log) of the other events, is there a quick ffmpeg hack I can use to encode the video?
tia once again! :-)
Jean.
I had forgotten I had tried to up the number of leading and following frames, to make sure I captured all of the lobby activity preceeding and following an alarm state. In particular, I had bumped up the Pre Event Image Buffer and Post Event Image Buffer to 90 and 120 frames respectively. This overflowed a buffer somewhere ... reducing them to 60 and 90 respectively fixed this.
Any idea on how I can increase the buffer size, so that I can increase the Image Buffers?
Also, given that I have the raw data (sans the log) of the other events, is there a quick ffmpeg hack I can use to encode the video?
tia once again! :-)
Jean.
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: Can't locate MIME/Entity.pm
I thought it looked a bit database'y when you posted the first of this last lot of messages!
Increasing the pre-event and post-event buffers is fine provided that the pre-event buffer doesn't end up larger (or even approaching) the total ring buffer size otherwise ZM has nowhere to put your frames. I thought I had added a check for this in the php but it appears not, or I deleted it by accident. Actually the post-event buffer is not a buffer at all and can be as large as you want as it's just the number of frames to keep recording afterwards.
I'm surprised you got a MySQL error with it though so I suspect the actual buffer overflow wasn't your problem. I think in this case it must have run off the end of the actual SQL buffer which is 4096 bytes long. This probably was just too short to fit all your frames in. I guess I should increase this or add a bit more error checking to prevent this happening.
Finally, I would warn that all frames buffered in this way are written to the database and the disk once an alarm is detected. Having to write 5k of SQL and 90 odd files (or sending them to zmf) will take a while and delay the processing of subsequent alarm frames. If you don't need 90 frames it would be better to reduce this.
Cheers,
Phil,
Increasing the pre-event and post-event buffers is fine provided that the pre-event buffer doesn't end up larger (or even approaching) the total ring buffer size otherwise ZM has nowhere to put your frames. I thought I had added a check for this in the php but it appears not, or I deleted it by accident. Actually the post-event buffer is not a buffer at all and can be as large as you want as it's just the number of frames to keep recording afterwards.
I'm surprised you got a MySQL error with it though so I suspect the actual buffer overflow wasn't your problem. I think in this case it must have run off the end of the actual SQL buffer which is 4096 bytes long. This probably was just too short to fit all your frames in. I guess I should increase this or add a bit more error checking to prevent this happening.
Finally, I would warn that all frames buffered in this way are written to the database and the disk once an alarm is detected. Having to write 5k of SQL and 90 odd files (or sending them to zmf) will take a while and delay the processing of subsequent alarm frames. If you don't need 90 frames it would be better to reduce this.
Cheers,
Phil,
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: Can't locate MIME/Entity.pm
I forgot to say that you should be able to recreate the mpeg files just by doing something like
ffmpeg -hq -i events/1234/capture-%03d.jpg events/1234/Event-1234.mpg
or something like that for each event. There are various other options available for frame rate and size etc.
Phil,
ffmpeg -hq -i events/1234/capture-%03d.jpg events/1234/Event-1234.mpg
or something like that for each event. There are various other options available for frame rate and size etc.
Phil,