IP Camera: Blue screen with timestamp

Forum for questions and support relating to the 1.24.x releases only.
Locked
mrguga
Posts: 1
Joined: Thu Jan 20, 2011 3:28 pm

IP Camera: Blue screen with timestamp

Post by mrguga »

Hi all!!

After trying for 2 days, i think this is worth a new topic. I have a D-Link 6620G camera, which was working with the ubuntu built-in zoneminder package. However, i needed to add support for h.264 (for another cam) and ended up compiling zoneminder from SVN.
The problem is: if i put some .jpg file on my webserver, zoneminder works all right, but on the cam webserver it doesn't work. I've enabled debug mode to try to find the error but still nothing.

This is the interesting part of the debug:

Code: Select all


01/20/11 13:35:54.574649 zmc_m1[-1].INF-zm_debug.c/296 [New Debug Level = 3, New Debug Log = /tmp/zm_debug.log.12194]
01/20/11 13:35:54.574882 zmc_m1[-1].DB1-zm_monitor.cpp/2303 [Got 1 monitors]
01/20/11 13:35:54.575031 zmc_m1[-1].DB2-zm_remote_camera_http.cpp/70 [Request: GET /cgi-bin/video.jpg HTTP/1.0^M
User-Agent: ZoneMinder/1.24.3^M
Host: 172.16.(edited)^M
Connection: Keep-Alive^M
Authorization: Basic (edited)^M
^M
]
01/20/11 13:35:54.575382 zmc_m1[-1].DB1-zm_monitor.cpp/338 [monitor purpose=1]
01/20/11 13:35:54.575390 zmc_m1[-1].DB1-zm_monitor.cpp/345 [mem.size=10139124]
01/20/11 13:35:54.575432 zmc_m1[-1].DB1-zm_monitor.cpp/369 [Unable to map file /dev/shm/zm.mmap.1 (10139124 bytes) to locked memory, trying unlocked]
01/20/11 13:35:54.595757 zmc_m1[-1].DB1-zm_zone.cpp/50 [Initialised zone 0/All - 1 - 352x240 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0, OF: 0]
01/20/11 13:35:54.597291 zmc_m1[-1].DB1-zm_monitor.cpp/458 [Monitor Monitor-1 has function 2]
01/20/11 13:35:54.597300 zmc_m1[-1].DB1-zm_monitor.cpp/459 [Monitor Monitor-1 LBF = '%N - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
01/20/11 13:35:54.597306 zmc_m1[-1].DB1-zm_monitor.cpp/460 [Monitor Monitor-1 IBC = 40, WUC = 25, pEC = 10, PEC = 10, EAF = 1, FRI = 1000, RBP = 7, FM = 0]
01/20/11 13:35:54.607462 zmc_m1[-1].DB1-zm_zone.cpp/892 [Got 1 zones for monitor Monitor-1]
01/20/11 13:35:54.607484 zmc_m1[-1].DB3-zm_zone.cpp/758 [Parsing polygon string '0,0 351,0 351,239 0,239']
01/20/11 13:35:54.607493 zmc_m1[-1].DB3-zm_zone.cpp/796 [Got coordinate 0,0 from polygon string]
01/20/11 13:35:54.607499 zmc_m1[-1].DB3-zm_zone.cpp/796 [Got coordinate 351,0 from polygon string]
01/20/11 13:35:54.607504 zmc_m1[-1].DB3-zm_zone.cpp/796 [Got coordinate 351,239 from polygon string]
01/20/11 13:35:54.607509 zmc_m1[-1].DB3-zm_zone.cpp/796 [Got coordinate 0,239 from polygon string]
01/20/11 13:35:54.607517 zmc_m1[-1].DB3-zm_zone.cpp/816 [Successfully parsed polygon string]
01/20/11 13:35:54.607523 zmc_m1[-1].DB1-zm_zone.cpp/50 [Initialised zone 1/All - 1 - 352x240 - Rgb:ff0000, CM:3, MnAT:25, MxAT:0, MnAP:2534, MxAP:63360, FB:3x3, MnFP:2534, MxFP:63360, MnBS:1689, MxBS:0, MnB:1, MxB:0, OF: 0]
01/20/11 13:35:54.609037 zmc_m1[-1].DB1-zm_monitor.cpp/2500 [Loaded monitor 1(Monitor-1), 1 zones]
01/20/11 13:35:54.609048 zmc_m1[-1].INF-zmc.cpp/188 [Starting Capture]
01/20/11 13:35:54.619160 zmc_m1[-1].DB3-zm_remote_camera_http.cpp/106 [Connected to host, socket = 4]
01/20/11 13:35:54.619337 zmc_m1[-1].DB3-zm_remote_camera_http.cpp/128 [Request sent]
01/20/11 13:35:54.742791 zmc_m1[-1].DB3-zm_remote_camera_http.cpp/174 [Expecting 188 bytes]
01/20/11 13:35:54.742830 zmc_m1[-1].DB3-zm_remote_camera_http.cpp/199 [Read 188 bytes]
01/20/11 13:35:54.742863 zmc_m1[-1].DB3-zm_remote_camera_http.cpp/714 [Got status '200' (OK), http version 1.0]
01/20/11 13:35:54.742871 zmc_m1[-1].DB3-zm_remote_camera_http.cpp/755 [Got content type 'image/jpeg']
01/20/11 13:35:54.752589 zmc_m1[-1].DB3-zm_remote_camera_http.cpp/174 [Expecting 4380 bytes]
01/20/11 13:35:54.752629 zmc_m1[-1].DB3-zm_remote_camera_http.cpp/199 [Read 4380 bytes]
01/20/11 13:35:54.762600 zmc_m1[-1].DB3-zm_remote_camera_http.cpp/174 [Expecting 3850 bytes]
01/20/11 13:35:54.762621 zmc_m1[-1].DB3-zm_remote_camera_http.cpp/199 [Read 3850 bytes]
01/20/11 13:35:54.781788 zmc_m1[-1].DB3-zm_remote_camera_http.cpp/169 [Socket closed]
01/20/11 13:35:54.782047 zmc_m1[-1].DB3-zm_remote_camera_http.cpp/114 [Disconnected from host]
01/20/11 13:35:54.782060 zmc_m1[-1].ERR-zm_remote_camera_http.cpp/985 [Connection dropped by remote end]
01/20/11 13:35:54.782082 zmc_m1[-1].WAR-zm_remote_camera_http.cpp/1086 [Unable to capture image, retrying]
01/20/11 13:35:54.783948 zmc_m1[-1].DB3-zm_remote_camera_http.cpp/106 [Connected to host, socket = 4]
01/20/11 13:35:54.784623 zmc_m1[-1].DB3-zm_remote_camera_http.cpp/128 [Request sent]
After this it keeps repeating the remote_camera_http lines.
I noticed this camera does not send http header Content Length (my web server did). Is this the problem? How to fix?

I've double checked the parameters, and the jpg used on my web server was extracted from the cam itself. Again, it was working on ubuntu 10.04 default package (which version is 1.24.2 by the way).

Thanks for the help!
Hugs from Brazil =)
Locked