[SOLVED] zmc libv4l2 bogus jpeg format
Posted: Sun Nov 08, 2009 11:50 am
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.
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.