Corrupt JPEG data

Support and queries relating to all previous versions of ZoneMinder
Locked
r.j.hall
Posts: 12
Joined: Mon Apr 19, 2004 4:41 pm

Corrupt JPEG data

Post by r.j.hall »

I have almost got things working I think. I did briefly manage to get a picture on my first camera, but now I can't agin. I am recieving the following errors in my zmdc.log file

Code: Select all

Server starting at 04/04/22 14:29:56
'zmc -m 1' starting at 04/04/22 14:29:59, pid = 24147
'zmc -m 1' started at 04/04/22 14:29:59
'zmfilter.pl' starting at 04/04/22 14:29:59, pid = 24154
'zmfilter.pl' started at 04/04/22 14:29:59
'zmaudit.pl -d 900 -y' starting at 04/04/22 14:30:00, pid = 24166
'zmaudit.pl -d 900 -y' started at 04/04/22 14:30:00
'zmwatch.pl' starting at 04/04/22 14:30:00, pid = 24170
'zmwatch.pl' started at 04/04/22 14:30:00
'zmupdate.pl -c' starting at 04/04/22 14:30:00, pid = 24174
'zmupdate.pl -c' started at 04/04/22 14:30:00
Corrupt JPEG data: premature end of data segment
Invalid JPEG file structure: two SOI markers
'zmc -m 1' crashed at 04/04/22 14:30:21, exit status 1
'zmc -m 1' starting at 04/04/22 14:30:21, pid = 24229
'zmc -m 1' started at 04/04/22 14:30:21
Corrupt JPEG data: premature end of data segment
Invalid JPEG file structure: two SOI markers
'zmc -m 1' crashed at 04/04/22 14:30:34, exit status 1
Starting pending process, zmc -m 1
'zmc -m 1' starting at 04/04/22 14:30:39, pid = 24257
'zmc -m 1' started at 04/04/22 14:30:39
Corrupt JPEG data: premature end of data segment
Invalid JPEG file structure: two SOI markers
'zmc -m 1' crashed at 04/04/22 14:31:52, exit status 1
Use of uninitialized value in hash element at /usr/bin/zmdc.pl line 332, <CLIENT> line 1.
'zmc -m 1' starting at 04/04/22 14:32:01, pid = 24384
'zmc -m 1' started at 04/04/22 14:32:01
Corrupt JPEG data: premature end of data segment
Invalid JPEG file structure: two SOI markers
'zmc -m 1' crashed at 04/04/22 14:32:10, exit status 1
Use of uninitialized value in hash element at /usr/bin/zmdc.pl line 332, <CLIENT> line 1.
'zmc -m 1' starting at 04/04/22 14:32:21, pid = 24444
'zmc -m 1' started at 04/04/22 14:32:21
Corrupt JPEG data: premature end of data segment
Invalid JPEG file structure: two SOI markers
'zmc -m 1' crashed at 04/04/22 14:32:27, exit status 1
it then just repeats.

I have seen another post that hints on the size being different from the captured image, but I think they are the same. I am using an Axis 2100 cam on firmware version 2.40.
Remote host path = /axis-cgi/jpg/image.cgi?resolution=640x480
and wdth= 640, height = 480

I have checked I can get a jpeg with wget, it returns a picture ,image magick's identify function tells me this about the image returned:

Code: Select all

Image: image.cgi?resolution=640x480
  Format: JPEG (Joint Photographic Experts Group JFIF format)
  Geometry: 640x480
  Class: DirectClass
  Type: true color
  Depth: 8 bits-per-pixel component
  Colors: 39299
  Filesize: 39.0k
  Interlace: None
  Background Color: grey100
  Border Color: #DFDFDF
  Matte Color: grey74
  Dispose: Undefined
  Iterations: 0
  Compression: JPEG
  comment: h
  signature: 8ba116be9328dd261bb96ea1886c0ff675b45a7f589474d2e8af1e0166cccc0c
  Tainted: False
  User Time: 0.020u
  Elapsed Time: 0:01

it says 8 bit yet I have the options of 8 bit mono or 24bit colour in the settings window. Does it mean 8 bits per RGB channel or 8bits in total?
Is this where the error is occering?
If so How do I get the camera to output 24 bit?

if not, any other ideas?

thanks
Rich
r.j.hall
Posts: 12
Joined: Mon Apr 19, 2004 4:41 pm

Post by r.j.hall »

I am trying to run

Code: Select all

# /usr/bin/zmc -m 1
Corrupt JPEG data: premature end of data segment
Invalid JPEG file structure: two SOI markers
looking at the network trace it seems to pull quite a few images off the camera before it bombs out. Not sure if this is any use

Thanks
Rich
r.j.hall
Posts: 12
Joined: Mon Apr 19, 2004 4:41 pm

Post by r.j.hall »

OK, this is wierd. I deleted that monitor and created a new one. I have it set to morecord. I do seem to get events generated, but if I have the size of the image set to actual it doesn't give a picture. If I tell it to go to any other size it streams fine. a couple of other sizes don't work either if they are ones that had a problem before, they never seem to start working again, what could be causing such erratic behavior?
Locked