Search found 5 matches

by chrisj
Mon May 19, 2008 5:40 am
Forum: User Contributions
Topic: Bugs in zm_buffer.h and zm_buffer.cpp
Replies: 2
Views: 4385

Ah-hah! Thanks for this. Ps: You may want to consider using 'diff -u' to generate patches. It makes them far easier to read. Yeah, good idea. It was actually a bit of a pain to generate the diffs w.r.t. the original code since I had hacked on it so much to debug it. When I get a chance I will re-do ...
by chrisj
Thu May 08, 2008 3:06 pm
Forum: ZoneMinder Previous Versions
Topic: No camera feed! $20 to whoever solves the problem!
Replies: 2
Views: 2596

I remembered one other step that I did when working on this problem. I don't know if it is actually required or not, since I was changing multiple variables around the same time. I changed my V4L Linux kernel options so that: % cd /usr/src/linux % grep VIDEO_V4L .config # CONFIG_VIDEO_V4L1 is not ...
by chrisj
Thu May 08, 2008 2:59 pm
Forum: ZoneMinder Previous Versions
Topic: No camera feed! $20 to whoever solves the problem!
Replies: 2
Views: 2596

I have almost the same setup and encountered similar problems. Here's how I finally got it working. Hope it works for you as well. First, get and install the latest SVN snaphot of mjpg-streamer. I recently fixed a problem in it where it was sending bogus headers in snapshots. Browsers could ...
by chrisj
Wed May 07, 2008 8:31 am
Forum: User Contributions
Topic: Bugs in zm_buffer.h and zm_buffer.cpp
Replies: 2
Views: 4385

Bugs in zm_buffer.h and zm_buffer.cpp

I am running a streaming (mjpg) remote camera and was periodically getting corrupted frames reported by zmc. I spent too much time tracking this down to what I think is a simple error which shows up in a few places, so I figure I should share a proposed fix. The error occurs when code in zm_buffer.h ...
by chrisj
Tue May 06, 2008 6:12 am
Forum: User Contributions
Topic: Value of timeout.tv_usec off by a factor of 1000
Replies: 3
Views: 4569

Value of timeout.tv_usec off by a factor of 1000

In zm_remote_camera.cpp, a timeval struct is initialized as follows: timeout.tv_sec = config.http_timeout/1000; timeout.tv_usec = config.http_timeout%1000; Since the tv_usec field is supposed to be the number of microseconds, it should actually be initialized as: timeout.tv_sec = config.http_timeout ...