No image capture with mjpeg on 1.32/1.34

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
arjc1
Posts: 2
Joined: Sun Jul 03, 2022 5:28 pm

No image capture with mjpeg on 1.32/1.34

Post by arjc1 »

I was using Zoneminder successfully on a Raspberry Pi setup to record slow speed (1fps) video from 4 cameras, and all used to work fine.

I haven't used the system for a couple of years, but now have a need again, and built an instance of 1.32.3 (as standard out of the box with Raspbian). Using mjpeg to a Wansview W3 camera, the old config - which worked fine under the old version (I think 1.30.x) refused to capture any images.

I have also modified /etc/apt/sources to install 1.34.22 - that behaves the same way.

I'm using these settings

Source Type = Remote
All the FPS settings = 1.0
Protocol = http
Method = Simple
Hostname = user:password@192.168.x.x
Port = 80
Path = mjpeg/snap.cgi?chn=0
Target Colorspace = 24 bit colour
Capture Resolution = 1280 x 720

A manual browse with Firefox or Edge to username:password@ip/mjpeg/snap.cgi?ch=0 delivered an image correctly. The Zoneminder logs are full of "Unable to capture image - restarting" and "Restarting capture daemon for Monitor-2, no image since startup".

The curious thing is that - when I do a wireshark capture - I see zoneminder attempt an http GET with no username / password - get a 401 Unauthorised error, and then try again with a GET with the username included - but no visible password (I assume it would be in the clear in an http request). That second request doesn't get a layer 7 response - just some ACK, FINACK activity. Looks like this (192.168.1.10 is the Pi and 192.168.1.134 is the camera). Capture pasted at bottom


Have I missed something obvious? I also can't get RTSP to play with that camera.

Is there an easy way to install an older version of zoneminder than 1.32 von the Pi - I'm no Linux expert I'm afraid. I did follow the instructions at https://wiki.zoneminder.com/Debian_9_64 ... e_Easy_Way but ended up at a dead end with messed up dependencies.

Thanks

No. Time Source Destination Protocol Length Info
63 2.683943 192.168.1.10 192.168.1.134 TCP 74 53810 → 80 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM=1 TSval=1900846611 TSecr=0 WS=128
69 2.743966 192.168.1.134 192.168.1.10 TCP 74 80 → 53810 [SYN, ACK] Seq=0 Ack=1 Win=14480 Len=0 MSS=1460 SACK_PERM=1 TSval=2386404 TSecr=1900846611 WS=4
70 2.744017 192.168.1.10 192.168.1.134 TCP 66 53810 → 80 [ACK] Seq=1 Ack=1 Win=64256 Len=0 TSval=1900846672 TSecr=2386404
71 2.744062 192.168.1.10 192.168.1.134 HTTP 210 GET /mjpeg/snap.cgi?chn=0 HTTP/1.0
73 2.802202 192.168.1.134 192.168.1.10 TCP 66 80 → 53810 [ACK] Seq=1 Ack=145 Win=15552 Len=0 TSval=2386410 TSecr=1900846672
74 2.808509 192.168.1.134 192.168.1.10 HTTP/XML 676 HTTP/1.0 401 Unauthorized
75 2.808545 192.168.1.10 192.168.1.134 TCP 66 53810 → 80 [ACK] Seq=145 Ack=611 Win=64128 Len=0 TSval=1900846736 TSecr=2386410
76 2.809633 192.168.1.134 192.168.1.10 TCP 66 80 → 53810 [FIN, ACK] Seq=611 Ack=145 Win=15552 Len=0 TSval=2386410 TSecr=1900846672
77 2.816412 192.168.1.10 192.168.1.134 HTTP 410 GET /mjpeg/snap.cgi?chn=0 HTTP/1.0
78 2.861682 192.168.1.134 192.168.1.10 TCP 66 80 → 53810 [ACK] Seq=612 Ack=489 Win=16624 Len=0 TSval=2386416 TSecr=1900846744
109 3.817308 192.168.1.10 192.168.1.134 TCP 66 53810 → 80 [FIN, ACK] Seq=489 Ack=612 Win=64128 Len=0 TSval=1900847745 TSecr=2386416
110 3.863049 192.168.1.134 192.168.1.10 TCP 66 80 → 53810 [ACK] Seq=612 Ack=490 Win=16624 Len=0 TSval=2386516 TSecr=1900847745
305 14.716254 192.168.1.10 192.168.1.134 TCP 74 53812 → 80 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM=1 TSval=1900858644 TSecr=0 WS=128
312 14.792440 192.168.1.134 192.168.1.10 TCP 74 80 → 53812 [SYN, ACK] Seq=0 Ack=1 Win=14480 Len=0 MSS=1460 SACK_PERM=1 TSval=2387609 TSecr=1900858644 WS=4
313 14.792487 192.168.1.10 192.168.1.134 TCP 66 53812 → 80 [ACK] Seq=1 Ack=1 Win=64256 Len=0 TSval=1900858720 TSecr=2387609
314 14.792558 192.168.1.10 192.168.1.134 HTTP 210 GET /mjpeg/snap.cgi?chn=0 HTTP/1.0
317 14.814024 192.168.1.134 192.168.1.10 TCP 66 80 → 53812 [ACK] Seq=1 Ack=145 Win=15552 Len=0 TSval=2387611 TSecr=1900858720
318 14.820629 192.168.1.134 192.168.1.10 HTTP/XML 676 HTTP/1.0 401 Unauthorized
319 14.820644 192.168.1.10 192.168.1.134 TCP 66 53812 → 80 [ACK] Seq=145 Ack=611 Win=64128 Len=0 TSval=1900858748 TSecr=2387611
320 14.820751 192.168.1.134 192.168.1.10 TCP 66 80 → 53812 [FIN, ACK] Seq=611 Ack=145 Win=15552 Len=0 TSval=2387611 TSecr=1900858720
321 14.826357 192.168.1.10 192.168.1.134 HTTP 410 GET /mjpeg/snap.cgi?chn=0 HTTP/1.0
322 14.932035 192.168.1.134 192.168.1.10 TCP 66 80 → 53812 [ACK] Seq=612 Ack=489 Win=16624 Len=0 TSval=2387623 TSecr=1900858754
440 25.253403 192.168.1.10 192.168.1.134 TCP 66 53812 → 80 [FIN, ACK] Seq=489 Ack=612 Win=64128 Len=0 TSval=1900869181 TSecr=2387623
441 25.303880 192.168.1.134 192.168.1.10 TCP 66 80 → 53812 [ACK] Seq=612 Ack=490 Win=16624 Len=0 TSval=2388660 TSecr=1900869181
arjc1
Posts: 2
Joined: Sun Jul 03, 2022 5:28 pm

Re: No image capture with mjpeg on 1.32/1.34

Post by arjc1 »

I have stood up a separate box running 1.30.4 on Stretch and confirmed that this does work correctly.

This version doesn't attempt a GET without user credentials first. The passwords are still not visible in clear text though - so that looks like a false trail.
User avatar
iconnor
Posts: 2880
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: No image capture with mjpeg on 1.32/1.34

Post by iconnor »

If you'll bump up to 1.36 or ever 1.37 I'd be happy to try to work through it.

Not interested in support ancient versions.
Post Reply