Zoneminder branch various patches + fix and plugins

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
chr1s
Posts: 3
Joined: Tue Jan 15, 2013 8:41 am

Re: Zoneminder branch various patches + fix and plugins

Post by chr1s »

Thanks for that. I will try to build zm later this day.

Does anyone know, if the changes will be implemented in the next ZM release? Is there active development?
User avatar
2Psycho
Posts: 37
Joined: Tue Jan 24, 2012 9:45 pm

Re: Zoneminder branch various patches + fix and plugins

Post by 2Psycho »

After I compiled and installed the code successfully I wasn't able to watch the camera anymore?
I had to return to the "old" mastertheknife code
Enjoyment Matters
axelm
Posts: 46
Joined: Wed Feb 06, 2013 1:50 pm

Re: Zoneminder branch various patches + fix and plugins

Post by axelm »

nextime wrote:
chriswiggins wrote:Hi Nextime,

Loving your work here. I have tried and tried and only just finally have I found out why the code wasn't compiling on Ubuntu. Your checks inside configure.ac aren't quite right. Here is a diff to show you what I've changed based on the libav9-ftbfs patch that is going to be part of the new Ubuntu release:
Thanks Chris, your changes are in svn trunk revision 146
Hi nextime,

Would it be possible to add this bugfix to your repo?

https://bugzilla.redhat.com/show_bug.cgi?id=903063

Thanks
nextime
Posts: 23
Joined: Thu Nov 29, 2007 9:20 pm

Re: Zoneminder branch various patches + fix and plugins

Post by nextime »

done, thanks
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Re: Zoneminder branch various patches + fix and plugins

Post by jameswilson »

Noticed the comments on the bug report.
I can assure you zm development is not dead.

I will however pass some comments onto Phil so he is aware.
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
axelm
Posts: 46
Joined: Wed Feb 06, 2013 1:50 pm

Re: Zoneminder branch various patches + fix and plugins

Post by axelm »

Nextime,

Here's another fix. This time for streaming on Google Chrome.

http://www.zoneminder.com/forums/viewto ... 29&t=20855

Regards
usersenior
Posts: 24
Joined: Tue Jul 10, 2012 8:34 pm

Re: Zoneminder branch various patches + fix and plugins

Post by usersenior »

could someone help with this?
zm_image.cpp:3006: warning: ‘__target__’ attribute directive ignored
zm_image.cpp: In function ‘void std_blend(const uint8_t*, const uint8_t*, uint8_t*, long unsigned int, double)’:
zm_image.cpp:3131: warning: converting to ‘unsigned char’ from ‘double’
zm_image.cpp: At global scope:
zm_image.cpp:3348: warning: ‘__target__’ attribute directive ignored
zm_image.cpp:3376: warning: ‘__target__’ attribute directive ignored
zm_image.cpp:3431: warning: ‘__target__’ attribute directive ignored
zm_image.cpp:3486: warning: ‘__target__’ attribute directive ignored
zm_image.cpp:3542: warning: ‘__target__’ attribute directive ignored
zm_image.cpp:3598: warning: ‘__target__’ attribute directive ignored
zm_image.cpp:3650: warning: ‘__target__’ attribute directive ignored
zm_image.cpp:3702: warning: ‘__target__’ attribute directive ignored
zm_image.cpp:3755: warning: ‘__target__’ attribute directive ignored
zm_image.cpp:4007: warning: ‘__target__’ attribute directive ignored
zm_image.cpp:4053: warning: ‘__target__’ attribute directive ignored
zm_image.cpp:4670: warning: ‘__target__’ attribute directive ignored
zm_image.cpp:4761: warning: ‘__target__’ attribute directive ignored
zm_image.cpp:4937: warning: ‘__target__’ attribute directive ignored
zm_image.cpp:5113: warning: ‘__target__’ attribute directive ignored
zm_image.cpp:5289: warning: ‘__target__’ attribute directive ignored
zm_image.cpp: In function ‘void sse2_fastblend(const uint8_t*, const uint8_t*, uint8_t*, long unsigned int, double)’:
zm_image.cpp:3065: error: unknown register name ‘%xmm4’ in ‘asm’
zm_image.cpp:3065: error: unknown register name ‘%xmm3’ in ‘asm’
zm_image.cpp:3065: error: unknown register name ‘%xmm2’ in ‘asm’
zm_image.cpp:3065: error: unknown register name ‘%xmm1’ in ‘asm’
zm_image.cpp:3065: error: unknown register name ‘%xmm0’ in ‘asm’
zm_image.cpp: In function ‘void sse2_delta8_gray8(const uint8_t*, const uint8_t*, uint8_t*, long unsigned int)’:
zm_image.cpp:3369: error: unknown register name ‘%xmm4’ in ‘asm’
zm_image.cpp:3369: error: unknown register name ‘%xmm3’ in ‘asm’
zm_image.cpp:3369: error: unknown register name ‘%xmm2’ in ‘asm’
zm_image.cpp:3369: error: unknown register name ‘%xmm1’ in ‘asm’
zm_image.cpp: In function ‘void sse2_delta8_rgba(const uint8_t*, const uint8_t*, uint8_t*, long unsigned int)’:
zm_image.cpp:3424: error: unknown register name ‘%xmm6’ in ‘asm’
zm_image.cpp:3424: error: unknown register name ‘%xmm5’ in ‘asm’
zm_image.cpp:3424: error: unknown register name ‘%xmm4’ in ‘asm’
zm_image.cpp:3424: error: unknown register name ‘%xmm3’ in ‘asm’
zm_image.cpp:3424: error: unknown register name ‘%xmm2’ in ‘asm’
zm_image.cpp:3424: error: unknown register name ‘%xmm1’ in ‘asm’
zm_image.cpp:3424: error: unknown register name ‘%xmm0’ in ‘asm’
zm_image.cpp: In function ‘void sse2_delta8_bgra(const uint8_t*, const uint8_t*, uint8_t*, long unsigned int)’:
zm_image.cpp:3479: error: unknown register name ‘%xmm6’ in ‘asm’
zm_image.cpp:3479: error: unknown register name ‘%xmm5’ in ‘asm’
zm_image.cpp:3479: error: unknown register name ‘%xmm4’ in ‘asm’
zm_image.cpp:3479: error: unknown register name ‘%xmm3’ in ‘asm’
zm_image.cpp:3479: error: unknown register name ‘%xmm2’ in ‘asm’
zm_image.cpp:3479: error: unknown register name ‘%xmm1’ in ‘asm’
zm_image.cpp:3479: error: unknown register name ‘%xmm0’ in ‘asm’
zm_image.cpp: In function ‘void sse2_delta8_argb(const uint8_t*, const uint8_t*, uint8_t*, long unsigned int)’:
zm_image.cpp:3535: error: unknown register name ‘%xmm6’ in ‘asm’
zm_image.cpp:3535: error: unknown register name ‘%xmm5’ in ‘asm’
zm_image.cpp:3535: error: unknown register name ‘%xmm4’ in ‘asm’
zm_image.cpp:3535: error: unknown register name ‘%xmm3’ in ‘asm’
zm_image.cpp:3535: error: unknown register name ‘%xmm2’ in ‘asm’
zm_image.cpp:3535: error: unknown register name ‘%xmm1’ in ‘asm’
zm_image.cpp:3535: error: unknown register name ‘%xmm0’ in ‘asm’
zm_image.cpp: In function ‘void sse2_delta8_abgr(const uint8_t*, const uint8_t*, uint8_t*, long unsigned int)’:
zm_image.cpp:3591: error: unknown register name ‘%xmm6’ in ‘asm’
zm_image.cpp:3591: error: unknown register name ‘%xmm5’ in ‘asm’
zm_image.cpp:3591: error: unknown register name ‘%xmm4’ in ‘asm’
zm_image.cpp:3591: error: unknown register name ‘%xmm3’ in ‘asm’
zm_image.cpp:3591: error: unknown register name ‘%xmm2’ in ‘asm’
zm_image.cpp:3591: error: unknown register name ‘%xmm1’ in ‘asm’
zm_image.cpp:3591: error: unknown register name ‘%xmm0’ in ‘asm’
zm_image.cpp: In function ‘void ssse3_delta8_rgba(const uint8_t*, const uint8_t*, uint8_t*, long unsigned int)’:
zm_image.cpp:3643: error: unknown register name ‘%xmm5’ in ‘asm’
zm_image.cpp:3643: error: unknown register name ‘%xmm4’ in ‘asm’
zm_image.cpp:3643: error: unknown register name ‘%xmm3’ in ‘asm’
zm_image.cpp:3643: error: unknown register name ‘%xmm2’ in ‘asm’
zm_image.cpp:3643: error: unknown register name ‘%xmm1’ in ‘asm’
zm_image.cpp:3643: error: unknown register name ‘%xmm0’ in ‘asm’
zm_image.cpp: In function ‘void ssse3_delta8_bgra(const uint8_t*, const uint8_t*, uint8_t*, long unsigned int)’:
zm_image.cpp:3695: error: unknown register name ‘%xmm5’ in ‘asm’
zm_image.cpp:3695: error: unknown register name ‘%xmm4’ in ‘asm’
zm_image.cpp:3695: error: unknown register name ‘%xmm3’ in ‘asm’
zm_image.cpp:3695: error: unknown register name ‘%xmm2’ in ‘asm’
zm_image.cpp:3695: error: unknown register name ‘%xmm1’ in ‘asm’
zm_image.cpp:3695: error: unknown register name ‘%xmm0’ in ‘asm’
zm_image.cpp: In function ‘void ssse3_delta8_argb(const uint8_t*, const uint8_t*, uint8_t*, long unsigned int)’:
zm_image.cpp:3748: error: unknown register name ‘%xmm5’ in ‘asm’
zm_image.cpp:3748: error: unknown register name ‘%xmm4’ in ‘asm’
zm_image.cpp:3748: error: unknown register name ‘%xmm3’ in ‘asm’
zm_image.cpp:3748: error: unknown register name ‘%xmm2’ in ‘asm’
zm_image.cpp:3748: error: unknown register name ‘%xmm1’ in ‘asm’
zm_image.cpp:3748: error: unknown register name ‘%xmm0’ in ‘asm’
zm_image.cpp: In function ‘void ssse3_delta8_abgr(const uint8_t*, const uint8_t*, uint8_t*, long unsigned int)’:
zm_image.cpp:3801: error: unknown register name ‘%xmm5’ in ‘asm’
zm_image.cpp:3801: error: unknown register name ‘%xmm4’ in ‘asm’
zm_image.cpp:3801: error: unknown register name ‘%xmm3’ in ‘asm’
zm_image.cpp:3801: error: unknown register name ‘%xmm2’ in ‘asm’
zm_image.cpp:3801: error: unknown register name ‘%xmm1’ in ‘asm’
zm_image.cpp:3801: error: unknown register name ‘%xmm0’ in ‘asm’
zm_image.cpp: In function ‘void ssse3_convert_rgba_gray8(const uint8_t*, uint8_t*, long unsigned int)’:
zm_image.cpp:4046: error: unknown register name ‘%xmm5’ in ‘asm’
zm_image.cpp:4046: error: unknown register name ‘%xmm4’ in ‘asm’
zm_image.cpp:4046: error: unknown register name ‘%xmm3’ in ‘asm’
zm_image.cpp:4046: error: unknown register name ‘%xmm2’ in ‘asm’
zm_image.cpp:4046: error: unknown register name ‘%xmm1’ in ‘asm’
zm_image.cpp:4046: error: unknown register name ‘%xmm0’ in ‘asm’
zm_image.cpp: In function ‘void ssse3_convert_yuyv_gray8(const uint8_t*, uint8_t*, long unsigned int)’:
zm_image.cpp:4091: error: unknown register name ‘%xmm4’ in ‘asm’
zm_image.cpp:4091: error: unknown register name ‘%xmm3’ in ‘asm’
zm_image.cpp: In function ‘void ssse3_deinterlace_4field_gray8(uint8_t*, uint8_t*, unsigned int, unsigned int, unsigned int)’:
zm_image.cpp:4757: error: unknown register name ‘%xmm7’ in ‘asm’
zm_image.cpp:4757: error: unknown register name ‘%xmm6’ in ‘asm’
zm_image.cpp:4757: error: unknown register name ‘%xmm5’ in ‘asm’
zm_image.cpp:4757: error: unknown register name ‘%xmm4’ in ‘asm’
zm_image.cpp:4757: error: unknown register name ‘%xmm3’ in ‘asm’
zm_image.cpp:4757: error: unknown register name ‘%xmm2’ in ‘asm’
zm_image.cpp:4757: error: unknown register name ‘%xmm1’ in ‘asm’
zm_image.cpp:4757: error: unknown register name ‘%xmm0’ in ‘asm’
zm_image.cpp: In function ‘void ssse3_deinterlace_4field_rgba(uint8_t*, uint8_t*, unsigned int, unsigned int, unsigned int)’:
zm_image.cpp:4933: error: unknown register name ‘%xmm7’ in ‘asm’
zm_image.cpp:4933: error: unknown register name ‘%xmm6’ in ‘asm’
zm_image.cpp:4933: error: unknown register name ‘%xmm5’ in ‘asm’
zm_image.cpp:4933: error: unknown register name ‘%xmm4’ in ‘asm’
zm_image.cpp:4933: error: unknown register name ‘%xmm3’ in ‘asm’
zm_image.cpp:4933: error: unknown register name ‘%xmm2’ in ‘asm’
zm_image.cpp:4933: error: unknown register name ‘%xmm1’ in ‘asm’
zm_image.cpp:4933: error: unknown register name ‘%xmm0’ in ‘asm’
zm_image.cpp: In function ‘void ssse3_deinterlace_4field_bgra(uint8_t*, uint8_t*, unsigned int, unsigned int, unsigned int)’:
zm_image.cpp:5109: error: unknown register name ‘%xmm7’ in ‘asm’
zm_image.cpp:5109: error: unknown register name ‘%xmm6’ in ‘asm’
zm_image.cpp:5109: error: unknown register name ‘%xmm5’ in ‘asm’
zm_image.cpp:5109: error: unknown register name ‘%xmm4’ in ‘asm’
zm_image.cpp:5109: error: unknown register name ‘%xmm3’ in ‘asm’
zm_image.cpp:5109: error: unknown register name ‘%xmm2’ in ‘asm’
zm_image.cpp:5109: error: unknown register name ‘%xmm1’ in ‘asm’
zm_image.cpp:5109: error: unknown register name ‘%xmm0’ in ‘asm’
zm_image.cpp: In function ‘void ssse3_deinterlace_4field_argb(uint8_t*, uint8_t*, unsigned int, unsigned int, unsigned int)’:
zm_image.cpp:5285: error: unknown register name ‘%xmm7’ in ‘asm’
zm_image.cpp:5285: error: unknown register name ‘%xmm6’ in ‘asm’
zm_image.cpp:5285: error: unknown register name ‘%xmm5’ in ‘asm’
zm_image.cpp:5285: error: unknown register name ‘%xmm4’ in ‘asm’
zm_image.cpp:5285: error: unknown register name ‘%xmm3’ in ‘asm’
zm_image.cpp:5285: error: unknown register name ‘%xmm2’ in ‘asm’
zm_image.cpp:5285: error: unknown register name ‘%xmm1’ in ‘asm’
zm_image.cpp:5285: error: unknown register name ‘%xmm0’ in ‘asm’
zm_image.cpp: In function ‘void ssse3_deinterlace_4field_abgr(uint8_t*, uint8_t*, unsigned int, unsigned int, unsigned int)’:
zm_image.cpp:5461: error: unknown register name ‘%xmm7’ in ‘asm’
zm_image.cpp:5461: error: unknown register name ‘%xmm6’ in ‘asm’
zm_image.cpp:5461: error: unknown register name ‘%xmm5’ in ‘asm’
zm_image.cpp:5461: error: unknown register name ‘%xmm4’ in ‘asm’
zm_image.cpp:5461: error: unknown register name ‘%xmm3’ in ‘asm’
zm_image.cpp:5461: error: unknown register name ‘%xmm2’ in ‘asm’
zm_image.cpp:5461: error: unknown register name ‘%xmm1’ in ‘asm’
zm_image.cpp:5461: error: unknown register name ‘%xmm0’ in ‘asm’
make[2]: *** [zm_image.o] Error 1
make[2]: Leaving directory `/root/Download/ZoneminderNew/zum/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Download/ZoneminderNew/zum'
make: *** [all] Error 2

ffmpeg
ffmpeg version N-50782-g02a6b06 Copyright (c) 2000-2013 the FFmpeg developers
built on Mar 13 2013 20:38:24 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-52)
configuration: --enable-gpl --enable-shared --enable-pthreads
libavutil 52. 19.100 / 52. 19.100
libavcodec 55. 0.100 / 55. 0.100
libavformat 55. 0.100 / 55. 0.100
libavdevice 54. 4.100 / 54. 4.100
libavfilter 3. 45.101 / 3. 45.101
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'


any ideia?
christophe_y2k
Posts: 102
Joined: Mon Oct 12, 2009 8:47 am
Location: EUROPE-FRANCE-MANDELIEU

Re: Zoneminder branch various patches + fix and plugins

Post by christophe_y2k »

Hello Nextime, i have a probleme maybe you can help me:
have some camera 5 older bewan iCam 200g and one Foscam FI8918W and one dlink DCS-7510

After some time all bewan return red picture at 35fps, in normal condition have 6fps
the internal log of camera return an error,

Code: Select all

Mar 25 09:25:04 grabber[596]: Connection dropped due to wrong profile number 
Mar 25 10:25:04 tinyproxy[2666]: HTTP video connection from 192.168.254.2
Mar 25 10:25:07 ssi[2648]: [statuslib] slow status detected : /bin/gp_status status at Services_FtpProvisioning_UpdateStatus 
Mar 25 10:25:08 tinyproxy[570]: HTTP video connection from 192.168.254.2
Mar 25 09:25:08 grabber[596]: Connection dropped due to wrong profile number 
Mar 25 10:25:09 tinyproxy[2594]: HTTP video connection from 192.168.254.2
Mar 25 09:25:09 grabber[596]: Cannot open/create file /var/lib/webcam_0.jpg due to errno=24 
Mar 25 09:25:09 grabber[596]: Connection dropped due to wrong profile number 
Mar 25 10:25:09 tinyproxy[2605]: HTTP video connection from 192.168.254.2
Mar 25 09:25:09 grabber[596]: Cannot open/create file /tmp/snapshot_1.jpg due to errno=24 
Mar 25 09:25:09 grabber[596]: Connection dropped due to wrong profile number 
Mar 25 09:25:09 grabber[596]: Cannot open/create file /tmp/snapshot_2.jpg due to errno=24 
Mar 25 09:25:10 grabber[596]: Cannot open/create file /tmp/snapshot_3.jpg due to errno=24 
i need to connect to web interface for reboot them...
dlink works well and foscam have some problem but this is poor firmware relevant

haven't got this probleme with older original source with bewan

Have you an idea?

Many Thanks
axelm
Posts: 46
Joined: Wed Feb 06, 2013 1:50 pm

Re: Zoneminder branch various patches + fix and plugins

Post by axelm »

christophe_y2k wrote: i need to connect to web interface for reboot them...
dlink works well and foscam have some problem but this is poor firmware relevant

haven't got this probleme with older original source with bewan

Have you an idea?

Many Thanks
Hi Christophe,

I suggest that you another thread since your post is off topic. You probably won't get any support this way.

Regards
christophe_y2k
Posts: 102
Joined: Mon Oct 12, 2009 8:47 am
Location: EUROPE-FRANCE-MANDELIEU

Re: Zoneminder branch various patches + fix and plugins

Post by christophe_y2k »

Nextime is here, but he work hard ...

On irc channel i
03/06/2013 00:09:28) nextime: well
(00:09:46) nextime: my next plugin opencv based for zoneminder when i will have the time to code it will be a port of this algo:
(00:09:48) nextime: https://github.com/thearn/webcam-pulse-detector

Nextime , if you have an idea have another problem with new(for me) foscam fi8620, pure h264 PTZ (no mjpeg flux...)
image ok with ffmpeg but if you use ffmpeg for source that disable the listing for chosing the ptz protocol method.
It's a zm bug , you need to edit manually zm bdd for that,
for me :
before: `zm`.`Monitors` SET `ControlId` = '0' WHERE `Monitors`.`Id` =4;
after editing: UPDATE `zm`.`Monitors` SET `ControlId` = '9' WHERE `Monitors`.`Id` =4;

---EDIT AT 08/JULLY/2013 ----------------------------------------
The patch for this prob is here :
http://www.zoneminder.com/forums/viewto ... 026#p80026
------------------------------------------------------------------

But this is not the prob

This camera need to send ptz command with http like that

Code: Select all

http://192.168.0.97/web/cgi-bin/hi3510/ptzctrl.cgi?-step=1&-act=right
my foscamFI8620.pm script:

Code: Select all

.
..
...
sub sendCmd
{
    my $self = shift;
    my $cmd = shift;
    my $result = undef;
    printMsg( $cmd, "Tx" );
    my $req = HTTP::Request->new( GET=>"http://".$self->{Monitor}->{ControlAddress}."/$cmd" );
    my $res = $self->{ua}->request($req);
    if ( $res->is_success )
    {
        $result = !undef;
    }
    else
    {
        Error( "Error check failed:'".$res->status_line()."'" );
    }
    return( $result );
}
...
....
...
sub moveConRight
{
    my $self = shift;
    Debug( "Move Right" );
    my $cmd = "web/cgi-bin/hi3510/ptzctrl.cgi?-step=1&-act=right";
    $self->sendCmd( $cmd );
}
..
...
..
but when you do that in firefox that pop-up a windows for enter login and password ...
How to do that in zm ptz script.pm ?

The classic method with

Code: Select all

http://admin:password@192.168.0.97/web/cgi-bin/hi3510/ptzctrl.cgi?-step=1&-act=right
do not work with this camera...

Thanks and Good Night (for me)

---EDIT AT 08/JULLY/2013 ------------------------------------------------------
I found the prob for that
i can move with separate script perl, now i'm searching for integrate it directly in zm
--------------------------------------------------------------------------------
Last edited by christophe_y2k on Mon Jul 08, 2013 8:22 pm, edited 1 time in total.
lucx
Posts: 5
Joined: Sat Jan 12, 2013 4:54 pm

Re: Zoneminder branch various patches + fix and plugins

Post by lucx »

Hello nextime,

can you include this fix alsow?

http://www.zoneminder.com/wiki/index.php/1.24.2_Patches
Post Reply