Search found 9 matches

by genanr
Wed Feb 17, 2010 10:55 pm
Forum: User Contributions
Topic: [REPOSTED PATCH] Fix "Incomplete read of frame image da
Replies: 8
Views: 8593

Incompete frame patch repost

Yeah, the posted patch was wrong. Leaving HTML on messed up the patch, even though it was in a code block. It will be posted once I get the thing to post correctly.

I put the patch on the ZoneMinder Wiki

Get it here:

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

Andy
by genanr
Mon Feb 01, 2010 4:06 pm
Forum: ZoneMinder 1.24.x
Topic: Frame server
Replies: 4
Views: 4661

I posted a patch in the user contributions forum to fix the "Incomplete frame" problem. Here is a link to my post:

http://www.zoneminder.com/forums/viewtopic.php?t=15255

Andy
by genanr
Wed Jan 27, 2010 7:57 pm
Forum: User Contributions
Topic: [REPOSTED PATCH] Fix "Incomplete read of frame image da
Replies: 8
Views: 8593

[REPOSTED PATCH] Fix "Incomplete read of frame image da

This patch adds a loop when reading from the frame image pipe. I was getting occasional "Incomplete" messages (in which case, the frame is dropped), even though the whole frame was sent to the pipe. The problem is that all the data was not available in the pipe for zmf when it read from the pipe ...
by genanr
Fri May 08, 2009 4:10 pm
Forum: ZoneMinder 1.24.x
Topic: PATCH: v4l2 restore control settings (hue, brightness, etc)
Replies: 3
Views: 3409

PATCH: v4l2 restore control settings (hue, brightness, etc)

Here is a simple patch that will restore the video control settings when zm is restarted when using a v4l2 driver. *** zm/src/zm_local_camera.cpp 2009-04-10 09:49:56.000000000 -0500 --- zm-andy/src/zm_local_camera.cpp 2009-04-17 10:55:16.000000000 -0500 *************** void LocalCamera::Initialise ...
by genanr
Mon Mar 02, 2009 4:30 pm
Forum: ZoneMinder 1.24.x
Topic: Possible fix for incorrect fps and zoom values
Replies: 14
Views: 8448

Using the packed attribute fixed the fps problem, but I had to take out the two /C after the paused field that were already in the SVN code to get zoom right. This is my current line: unpack( "ltype/imonitor/dfps/istate/ilevel/Cdelayed/Cpaused/irate/ddelay/izoom/Cenabled/Cforced") Is this problem ...
by genanr
Mon Mar 02, 2009 12:21 am
Forum: ZoneMinder 1.24.x
Topic: Possible fix for incorrect fps and zoom values
Replies: 14
Views: 8448

Right, and int is in fact 4 bytes on my 64 bit system. I believe the real problem is is how g++ deals with structures, here is a little test program I wrote to figure out what really is going on. #include <stdio> #define FIELD_OFFSET(strptr,field) ((char*)&((strptr)->field)-(char*)strptr) main ...
by genanr
Thu Feb 26, 2009 8:42 pm
Forum: ZoneMinder 1.24.x
Topic: Possible fix for incorrect fps and zoom values
Replies: 14
Views: 8448

Here is my info:

Linux 2.6.28.7 #1 SMP x86_64 GNU/Linux

Debian 5.0
gcc 4.3.3-3

Andy
by genanr
Thu Feb 26, 2009 5:33 pm
Forum: ZoneMinder 1.24.x
Topic: Possible fix for incorrect fps and zoom values
Replies: 14
Views: 8448

Yes, I am on a 64-bit system.

I do think the problem is related to 64-bit and possibly the version of gcc/g++ that is being used.

Andy
by genanr
Wed Feb 25, 2009 4:21 pm
Forum: ZoneMinder 1.24.x
Topic: Possible fix for incorrect fps and zoom values
Replies: 14
Views: 8448

Possible fix for incorrect fps and zoom values

I was having a problem with incorrect fps and zoom values in live and montage views. I found that the following change seems to fix the problem. Line 94 in web/ajax/stream.php reads something like: $data = unpack("ltype/imonitor/dfps/istate .... I changed it to: $data = unpack("ltype/imonitor/C/C/C ...