Network camera set up.

Support and queries relating to all previous versions of ZoneMinder
ubell
Posts: 53
Joined: Sun Jul 24, 2005 9:05 pm

Post by ubell »

I have now tried nph-zms with and without REGEXPS
and the result is the same.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Can you do a wget -s -S on your full GetData url and then post the first few lines here. It's possible it's doing something ZM is not expecting.

Phil
ubell
Posts: 53
Joined: Sun Jul 24, 2005 9:05 pm

Post by ubell »

--09:52:24-- http://admin:*password*@10.0.0.81/GetData.cgi
=> `GetData.cgi'
Connecting to 10.0.0.81:80... connected.
HTTP request sent, awaiting response...
1 HTTP/1.0 200 OK
2 Date: Mon, 03 Feb 2003 15:18:35 GMT
3 Server: WYM/1.0
4 Connection: close
5 Content-Type: multipart/x-mixed-replace;boundary=IPCamBoundary
6 Last-Modified: Mon, 03 Feb 2003 15:18:35 GMT
7 Pragma: no-cache
8 Cache-Control: no-cache
9 Expires: 01 Jan 1970 00:00:00 GMT

The output starts with:
HTTP/1.0 200 OK
Date: Mon, 03 Feb 2003 15:18:35 GMT
Server: WYM/1.0
Connection: close
Content-Type: multipart/x-mixed-replace;boundary=IPCamBoundary
Last-Modified: Mon, 03 Feb 2003 15:18:35 GMT
Pragma: no-cache
Cache-Control: no-cache
Expires: 01 Jan 1970 00:00:00 GMT

--IPCamBoundary
Content-Type: image/jpeg
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Just a little more? I'm interested in what the first few bytes of the image look like.

Phil
ubell
Posts: 53
Joined: Sun Jul 24, 2005 9:05 pm

Post by ubell »

od -c -x

0000000 H T T P / 1 . 0 2 0 0 O K \n
5448 5054 312f 302e 3220 3030 4f20 0a4b
0000020 D a t e : M o n , 0 3 F e
6144 6574 203a 6f4d 2c6e 3020 2033 6546
0000040 b 2 0 0 3 1 5 : 1 8 : 3 5
2062 3032 3330 3120 3a35 3831 333a 2035
0000060 G M T \n S e r v e r : W Y M /
4d47 0a54 6553 7672 7265 203a 5957 2f4d
0000100 1 . 0 \n C o n n e c t i o n :
2e31 0a30 6f43 6e6e 6365 6974 6e6f 203a
0000120 c l o s e \n C o n t e n t - T y
6c63 736f 0a65 6f43 746e 6e65 2d74 7954
0000140 p e : m u l t i p a r t / x -
6570 203a 756d 746c 7069 7261 2f74 2d78
0000160 m i x e d - r e p l a c e ; b o
696d 6578 2d64 6572 6c70 6361 3b65 6f62
0000200 u n d a r y = I P C a m B o u n
6e75 6164 7972 493d 4350 6d61 6f42 6e75
0000220 d a r y \n L a s t - M o d i f i
6164 7972 4c0a 7361 2d74 6f4d 6964 6966
0000240 e d : M o n , 0 3 F e b
6465 203a 6f4d 2c6e 3020 2033 6546 2062
0000260 2 0 0 3 1 5 : 1 8 : 3 5 G M
3032 3330 3120 3a35 3831 333a 2035 4d47
0000300 T \n P r a g m a : n o - c a c
0a54 7250 6761 616d 203a 6f6e 632d 6361
0000320 h e \n C a c h e - C o n t r o l
6568 430a 6361 6568 432d 6e6f 7274 6c6f
0000340 : n o - c a c h e \n E x p i r
203a 6f6e 632d 6361 6568 450a 7078 7269
0000360 e s : 0 1 J a n 1 9 7 0
7365 203a 3130 4a20 6e61 3120 3739 2030
0000400 0 0 : 0 0 : 0 0 G M T \n \n - -
3030 303a 3a30 3030 4720 544d 0a0a 2d2d
0000420 I P C a m B o u n d a r y \r \n C
5049 6143 426d 756f 646e 7261 0d79 430a
0000440 o n t e n t - T y p e : i m a
6e6f 6574 746e 542d 7079 3a65 6920 616d
0000460 g e / j p e g \r \n \r \n 377 330 377 342 \0
6567 6a2f 6570 0d67 0d0a ff0a ffd8 00e2
0000500 006 C L S 245 377 347 \0 004 \0 \0 377 333 \0 C \0
4306 534c ffa5 00e7 0004 ff00 00db 0043
0000520 020 \v \f 016 \f \n 020 016 \r 016 022 021 020 023 030 (
0b10 0e0c 0a0c 0e10 0e0d 1112 1310 2818
0000540 032 030 026 026 030 1 # % 035 ( : 3 = < 9 3
181a 1616 3118 2523 281d 333a 3c3d 3339
0000560 8 7 @ H \ N @ D W E 7 8 P m Q W
3738 4840 4e5c 4440 4557 3837 6d50 5751
0000600 _ b g h g > M q y p d x \ e g c
625f 6867 3e67 714d 7079 7864 655c 6367
0000620 377 333 \0 C 001 021 022 022 030 025 030 / 032 032 / c
dbff 4300 1101 1212 1518 2f18 1a1a 632f
0000640 B 8 B c c c c c c c c c c c c c
3842 6342 6363 6363 6363 6363 6363 6363
0000660 c c c c c c c c c c c c c c c c
6363 6363 6363 6363 6363 6363 6363 6363
*
0000720 c c c c c 377 304 \0 037 \0 \0 001 005 001 001 001
6363 6363 ff63 00c4 001f 0100 0105 0101
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Thanks. At first glance I can't see the bytes it's complaining about in this dump/ Do you always get the same error from the grab?

Also if it's publically accessible feel free to PM me access details and I'll try and debug it from here.

Phil
ubell
Posts: 53
Joined: Sun Jul 24, 2005 9:05 pm

Post by ubell »

Do you need access to the web cam, or the ZM web page or both?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Phil would just need access to the camera.
Regards,
Cordel
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I seem to be able to get a consistent image if I switch on Options->Network->ZM_NETCAM_REGEXPS however I am still trying to work out why the other method fails. I think most cameras normally prepend a crlf to the content boundary but this one doesn't so that might have something to do with it perhaps.

Phil
ubell
Posts: 53
Joined: Sun Jul 24, 2005 9:05 pm

Post by ubell »

I have Options->Network-> ZM_NETCAM_REGEXPS checked.

Here is the system log when I change form /Jpeg/CamImg.jpg
to /GetData.cgi and back.

Oct 14 16:15:40 rascal zma_m1[27747]: INF [web: 51000 - Processing at 7.41 fps]
Oct 14 16:15:53 rascal zmc_m1[27739]: INF [Got TERM signal, exiting]
Oct 14 16:15:53 rascal zmc_m1[27739]: ERR [Select error: Interrupted system call]
Oct 14 16:15:53 rascal zmc_m1[28315]: INF [Debug Level = 0, Debug Log = <none>]
Oct 14 16:15:53 rascal zmc_m1[28315]: INF [Starting Capture]
Oct 14 16:15:53 rascal zma_m1[27747]: INF [Got signal (Terminated), exiting]
Oct 14 16:15:54 rascal zma_m1[28323]: INF [Debug Level = 0, Debug Log = <none>]
Oct 14 16:15:54 rascal zma_m1[28323]: WAR [Waiting for capture daemon]
Oct 14 16:15:56 rascal last message repeated 2 times
Oct 14 16:15:56 rascal zmc_m1[28315]: ERR [Found bogus jpeg header '4854']
Oct 14 16:15:57 rascal zma_m1[28323]: WAR [Waiting for capture daemon]
Oct 14 16:16:20 rascal last message repeated 23 times
Oct 14 16:16:20 rascal zmc_m1[28315]: INF [Got TERM signal, exiting]
Oct 14 16:16:21 rascal zma_m1[28323]: WAR [Waiting for capture daemon]
Oct 14 16:16:26 rascal last message repeated 5 times
Oct 14 16:16:26 rascal zmc_m1[28336]: INF [Debug Level = 0, Debug Log = <none>]
Oct 14 16:16:26 rascal zmc_m1[28336]: INF [Starting Capture]
Oct 14 16:16:27 rascal zma_m1[28344]: INF [Debug Level = 0, Debug Log = <none>]
Oct 14 16:16:27 rascal zma_m1[28344]: INF [Warming up]
Oct 14 16:18:42 rascal zmc_m1[28336]: INF [web: 1000 - Capturing at 7.35 fps]

Can you tell me other configuration items to check?

Mike
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I got the invalid jpeg header when regexps weren't being used but not since. One thing to make sure is that you have compiled ZM with the regexp libraries, otherwise it probably won't make any difference (this probably should result in an error). Check what HAVE_LIBPCRE is set to in config.h in your ZM build directory (assuming you aren't using one of the distro versions).

Phil
ubell
Posts: 53
Joined: Sun Jul 24, 2005 9:05 pm

Post by ubell »

Ok. libpcre did the trick. /GetData.cgi now works.
I'm still only seeing 5fps, I guess thats the best
I can get on a wirelss interface, maybe?
Locked