I found very strange problem with ZoneMinder. It is not able to decode JPEG image, even the image is valid.
The following lines can be found in my zmdc.log:
Code: Select all
05/22/08 01:59:02.027187 zmdc[10618].INF [Starting pending process, zmc -m 1]
05/22/08 01:59:02.039857 zmdc[10618].INF ['zmc -m 1' starting at 08/05/22 01:59:02, pid = 10735]
05/22/08 01:59:02.173704 zmdc[10618].ERR ['zmc -m 1' exited abnormally, exit status 255]
Code: Select all
05/22/08 01:57:42.208080 zmc_m1[10730].WAR-zm_jpeg.c/62 [Corrupt JPEG data: premature end of data segment]
05/22/08 01:57:42.208522 zmc_m1[10730].ERR-zm_jpeg.c/38 [Invalid JPEG file structure: two SOI markers]
05/22/08 01:57:42.208652 zmc_m1[10730].ERR-zm_remote_camera.cpp/1355 [Unable to decode jpeg]
05/22/08 01:57:42.208765 zmc_m1[10730].ERR-zmc.cpp/252 [Failed to post-capture monitor 0]
Code: Select all
ofstream outdata;
outdata.open("/var/www/zm/events/1/test1.jpg");
int ind;
for (ind=0;ind<buffer.Size();ind++) {
outdata.put(buffer[ind]);
}
outdata.close();
Do you have any idea, what could be wrong?
Thanks!
P.S.: I uploaded two JPEG's captured from webcam here:
www.dazzler.sk/test1.jpg
www.dazzler.sk/test2.jpg