Page 1 of 1

Not a JPEG file: starts with 0x48 0x54

Posted: Mon Jul 25, 2005 7:26 am
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 !

Posted: Mon Jul 25, 2005 7:44 am
by cordel
I'm assuming that you are capturing from an IP camera so what maker and model?

Posted: Mon Jul 25, 2005 8:21 am
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...

Posted: Mon Jul 25, 2005 6:06 pm
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?

Posted: Tue Jul 26, 2005 11:22 am
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

Posted: Tue Jul 26, 2005 11:37 am
by zoneminder
Have you tried modifying Options->Network->ZM_NETCAM_REGEXPS?

Phil

Posted: Tue Jul 26, 2005 1:15 pm
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)

Posted: Thu Jul 28, 2005 9:12 am
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

Posted: Thu Jul 28, 2005 10:18 am
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 !

Posted: Thu Jul 28, 2005 12:52 pm
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

Posted: Fri Jul 29, 2005 11:44 am
by zoneminder
Good. I'm glad you got it fixed and look forward to your explanation of what you had to do!

Phil

Posted: Fri Aug 05, 2005 7:40 pm
by Syl