Not a JPEG file: starts with 0x48 0x54

Support and queries relating to all previous versions of ZoneMinder
Locked
Syl
Posts: 11
Joined: Mon Jul 25, 2005 7:19 am
Location: Romania

Not a JPEG file: starts with 0x48 0x54

Post by Syl »

Hi !

I have ZoneMinder 1.21.0 running on ZoneMinder Live CD installed on the hard drive.
I had the problem with the shared memory so I've increased it to 256Mb, but now it still doesn't work:

Code: Select all

[/home/user]# zmc -m 1
Not a JPEG file: starts with 0x48 0x54
var/log/zm/zmdc.log wrote: Starting pending process, zmc -m 1
'zmc -m 1' started at 05/07/25 10:24:02
'zmc -m 1' starting at 05/07/25 10:24:02, pid = 5557
Not a JPEG file: starts with 0x48 0x54
'zmc -m 1' crashed at 05/07/25 10:24:04, exit status 1
What should I do now ?
Thanks in advance !
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I'm assuming that you are capturing from an IP camera so what maker and model?
Syl
Posts: 11
Joined: Mon Jul 25, 2005 7:19 am
Location: Romania

Post by Syl »

yes, it is a remote camera
It's a SOHO Internet Camera CAS-230/E. It's wireless but I use a cable to connect it to the computer...
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Unfortunatly they do not have enough information in their manual for me to be able to give you a definative answer.
Go to the cameras web page/ip and If you right click on the streaming image you should see the path. What is the path (X out your IP info)? also when you login to the camera do you get a popup box or a web page that you enter your login?
Syl
Posts: 11
Joined: Mon Jul 25, 2005 7:19 am
Location: Romania

Post by Syl »

tnx 4 the answer...
the path that I get when I right click on the image is: http://192.168.250.59/IMAGE.JPG?cidx=20 ... 2511035771
but that big number, obviously, changes...
the path I currently use is /IMAGE.JPG
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Have you tried modifying Options->Network->ZM_NETCAM_REGEXPS?

Phil
Syl
Posts: 11
Joined: Mon Jul 25, 2005 7:19 am
Location: Romania

Post by Syl »

I don't have that option :(
I've searched everywhere, not only on the Network tab. On the Network tab I have:

Code: Select all

ZM_OPT_REMOTE_CAMERAS 	
ZM_HTTP_VERSION
ZM_HTTP_UA
ZM_HTTP_TIMEOUT
 
I repeat: I have 1.21.0 installed (maybe this option you've told me has been implemented in a more recent version)
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Ah ok. You won't find the option then. It's not a big deal as all ti would have done was to make the behaviour the same as the version you are running anyway.

Can you do a wget -S -s <your image url> and post the first few lines, including headers?

Phil
Syl
Posts: 11
Joined: Mon Jul 25, 2005 7:19 am
Location: Romania

Post by Syl »

Code: Select all

[user user]$ wget -S -s 192.168.250.59/IMAGE.JPG --http-user=XXX --http-pass=XXX
--13:13:49--  http://192.168.250.59/IMAGE.JPG
           => `IMAGE.JPG'
Connecting to 192.168.250.59:80... connected.
HTTP request sent, awaiting response...
 1 HTTP/1.0 200 OK
 2 Server: Web Server/1.0
 3 Auther: Steven Wu
 4 MIME-version: 1.0
 5 Cache-Control: no-cache
 6 Content-Type:image/jpeg
 7 Content-Length:49038

100%[==================================================================>] 49,042       235.82K/s

13:13:51 (235.08 KB/s) - `IMAGE.JPG' saved [49,042/49,042])
IMAGE.JPG it's a blank 16x16 pixels image !
Syl
Posts: 11
Joined: Mon Jul 25, 2005 7:19 am
Location: Romania

Post by Syl »

Yes ! It works !
I will soon make a HOWTO and explain what have I done to make it work. You'll here from me again ! ;)
tnx 4 da F1 ! :D
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Good. I'm glad you got it fixed and look forward to your explanation of what you had to do!

Phil
Syl
Posts: 11
Joined: Mon Jul 25, 2005 7:19 am
Location: Romania

Post by Syl »

Locked