ubnt aircam snapshot.cgi =>Found bogus jpeg header '3130'
Posted: Wed Oct 16, 2013 4:14 pm
I upgraded my aircam to firmware 1.2 which includes support for snapshot downloads (finally). I know it does RTSP, but I haven't had very good results with that, so I'm switching to snapshots.
http://aircam1/snapshot.cgi gives me jpegs I can see in a browser, or a picture viewer if I download with wget, but if I feed that into ZM, it complains about them.
But, when I feed this to zoneminder, it says:
Oct 16 08:31:42 gargamel zmc_m2[28429]: INF [Starting Capture]
Oct 16 08:31:45 gargamel zmc_m2[28429]: WAR [Select timed out]
Oct 16 08:31:45 gargamel zmc_m2[28429]: ERR [Found bogus jpeg header '3130']
Oct 16 08:31:45 gargamel zmc_m2[28429]: ERR [Unable to get response]
Oct 16 08:31:45 gargamel zmc_m2[28429]: ERR [Failed to capture image from monitor 2 (0/1)
Source tab says:
protocol: http
method: simple
hostname: localhost
port: 80
path: /snapshot.cgi
etc...
links -dump http://aircam1/snapshot.cgi?chan=1 | od -cx
gives:
0000000 y O / y ` a . . J F I F .
2020 7920 2f4f 6079 2e61 4a2e 4946 2e46
0000020 . . . . . . . . . y U . C . . .
2e2e 2e2e 2e2e 2e2e 792e 2e55 2e43 2e2e
0000040 . . . . . . . . . . . . . .
Any idea why ZM is unhappy with those pictures?
http://aircam1/snapshot.cgi gives me jpegs I can see in a browser, or a picture viewer if I download with wget, but if I feed that into ZM, it complains about them.
But, when I feed this to zoneminder, it says:
Oct 16 08:31:42 gargamel zmc_m2[28429]: INF [Starting Capture]
Oct 16 08:31:45 gargamel zmc_m2[28429]: WAR [Select timed out]
Oct 16 08:31:45 gargamel zmc_m2[28429]: ERR [Found bogus jpeg header '3130']
Oct 16 08:31:45 gargamel zmc_m2[28429]: ERR [Unable to get response]
Oct 16 08:31:45 gargamel zmc_m2[28429]: ERR [Failed to capture image from monitor 2 (0/1)
Source tab says:
protocol: http
method: simple
hostname: localhost
port: 80
path: /snapshot.cgi
etc...
links -dump http://aircam1/snapshot.cgi?chan=1 | od -cx
gives:
0000000 y O / y ` a . . J F I F .
2020 7920 2f4f 6079 2e61 4a2e 4946 2e46
0000020 . . . . . . . . . y U . C . . .
2e2e 2e2e 2e2e 2e2e 792e 2e55 2e43 2e2e
0000040 . . . . . . . . . . . . . .
Any idea why ZM is unhappy with those pictures?