Page 1 of 1

[SOLVED] zmc libv4l2 bogus jpeg format

Posted: Sun Nov 08, 2009 11:50 am
by pigeon
Hi,

I have a UVC webcam, according to v4l-info it has a pixel format of 0x47504a4d [MJPG].

It doesn't work with zoneminder unless I add LD_PRELOAD to /usr/lib/libv4l/v4l1compat.so in zmdc.pl.

However, every now and then (perhaps every 5-10 minutes) I get the zmc "exited abnormally, exit status 255" error. And turning on more debugging I can see in this error in the debug log:

libv4l2: error converting / decoding frame data: v4l-convert: error parsing JPEG header: Bogus jpeg format

followed by:

[Capture failure, possible signal loss?: Input/output error]
[Failed to capture image from monitor 1 (0/1)]
[Terminating video stream]
[Unmapping video buffers]


Also, probably related, when I check the recorded events, they often have a timestamp of 1970 with an invalid duration (either negative or a very large number).

Any suggestions on how I could fix the problem?

Thanks.

Posted: Tue Nov 10, 2009 12:30 pm
by pigeon
Hi,

For the record, out of desperation I tried everything I could think of. That machine was running kernel 2.6.29. I upgraded it to 2.6.30 and the problem seems to have gone away.