zmc daemon - [Unrecognised content type 'text/html']

Forum for questions and support relating to the 1.27.x releases only.
Locked
RobLevine
Posts: 27
Joined: Mon Aug 25, 2014 7:57 pm

zmc daemon - [Unrecognised content type 'text/html']

Post by RobLevine »

Hello - I have a Foscam webcam that I know works with Zoneminder. When I open a monitor I get the red screen with only the date and time on it. I have the software setup correctly, I believe. This is a relevant part of the zmc daemon log - seems it's getting the wrong format response from the camera:

08/25/14 13:55:58.663201 zmc_m2[13936].DB1-zm_monitor.cpp/2652 [Loaded monitor 2(kitty3), 1 zones]
08/25/14 13:55:58.663219 zmc_m2[13936].INF-zmc.cpp/195 [Starting Capture]
08/25/14 13:55:58.787211 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/119 [Connected to host, socket = 5]
08/25/14 13:55:58.787287 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/141 [Request sent]
08/25/14 13:55:58.802590 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/187 [Expecting 167 bytes]
08/25/14 13:55:58.802636 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/212 [Read 167 bytes]
08/25/14 13:55:58.802664 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/729 [Got status '200' (OK), http version 1.1]
08/25/14 13:55:58.802679 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/736 [Got connection 'close']
08/25/14 13:55:58.802688 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/742 [Got content length '2323']
08/25/14 13:55:58.802697 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/770 [Got content type 'text/html']
08/25/14 13:55:58.802754 zmc_m2[13936].ERR-zm_remote_camera_http.cpp/812 [Unrecognised content type 'text/html']
08/25/14 13:55:58.832359 zmc_m2[13936].ERR-zm_remote_camera_http.cpp/1110 [Unable to get response]
08/25/14 13:55:58.849625 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/127 [Disconnected from host]
08/25/14 13:55:58.865907 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/119 [Connected to host, socket = 5]
08/25/14 13:55:58.865955 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/141 [Request sent]
08/25/14 13:55:58.886431 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/187 [Expecting 167 bytes]
08/25/14 13:55:58.886484 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/212 [Read 167 bytes]
08/25/14 13:55:58.886502 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/729 [Got status '200' (OK), http version 1.1]
08/25/14 13:55:58.886512 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/736 [Got connection 'close']
08/25/14 13:55:58.886521 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/742 [Got content length '2323']
08/25/14 13:55:58.886530 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/770 [Got content type 'text/html']
08/25/14 13:55:58.886540 zmc_m2[13936].ERR-zm_remote_camera_http.cpp/812 [Unrecognised content type 'text/html']
08/25/14 13:55:58.914323 zmc_m2[13936].ERR-zm_remote_camera_http.cpp/1110 [Unable to get response]
08/25/14 13:55:58.931628 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/127 [Disconnected from host]
08/25/14 13:55:58.970086 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/119 [Connected to host, socket = 5]
08/25/14 13:55:58.970143 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/141 [Request sent]
08/25/14 13:55:59.017918 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/187 [Expecting 167 bytes]
08/25/14 13:55:59.017961 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/212 [Read 167 bytes]
08/25/14 13:55:59.017984 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/729 [Got status '200' (OK), http version 1.1]
08/25/14 13:55:59.017995 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/736 [Got connection 'close']
08/25/14 13:55:59.018004 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/742 [Got content length '2323']
08/25/14 13:55:59.018014 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/770 [Got content type 'text/html']
08/25/14 13:55:59.018024 zmc_m2[13936].ERR-zm_remote_camera_http.cpp/812 [Unrecognised content type 'text/html']
08/25/14 13:55:59.063940 zmc_m2[13936].ERR-zm_remote_camera_http.cpp/1110 [Unable to get response]
08/25/14 13:55:59.098059 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/127 [Disconnected from host]
08/25/14 13:55:59.129801 zmc_m2[13936].DB3-zm_remote_camera_http.cpp/119 [Connected to host, socket = 5]
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: zmc daemon - [Unrecognised content type 'text/html']

Post by bbunge »

Which Foscam camera? Makes a difference how you set it up and what stream you use...
RobLevine
Posts: 27
Joined: Mon Aug 25, 2014 7:57 pm

Re: zmc daemon - [Unrecognised content type 'text/html']

Post by RobLevine »

Model # FI8918W
zmuserzm
Posts: 2
Joined: Tue Aug 26, 2014 3:16 am

Re: zmc daemon - [Unrecognised content type 'text/html']

Post by zmuserzm »

I have the same problem Camera beward bd4370 Can somebody help?
rtsp://login:password@<ip_camera>:554/h264

in log:

2014-08-26 11:24:33.540330 zmc_m1[2840].ERR-zm_remote_camera_http.cpp/726 [Invalid response status 400: Bad Request]
2014-08-26 11:24:33.941825 zmc_m5[2802].ERR-zm_remote_camera_http.cpp/726 [Invalid response status 404: Not Found]
2014-08-26 11:24:34.174036 zmc_m1[2840].ERR-zm_remote_camera_http.cpp/1110 [Unable to get response]
2014-08-26 11:24:34.457554 zmc_m5[2802].ERR-zm_remote_camera_http.cpp/1110 [Unable to get response]
2014-08-26 11:24:34.679345 zmc_m1[2840].ERR-zm_remote_camera_http.cpp/726 [Invalid response status 400: Bad Request]
2014-08-26 11:24:34.951967 zmc_m5[2802].ERR-zm_remote_camera_http.cpp/726 [Invalid response status 404: Not Found]
2014-08-26 11:24:35.165352 zmc_m1[2840].ERR-zm_remote_camera_http.cpp/1110 [Unable to get response]
2014-08-26 11:24:35.349387 zmc_m5[2802].ERR-zm_remote_camera_http.cpp/1110 [Unable to get response]
2014-08-26 11:24:35.662031 zmc_m1[2840].ERR-zm_remote_camera_http.cpp/726 [Invalid response status 400: Bad Request]
2014-08-26 11:24:35.930842 zmc_m5[2802].ERR-zm_remote_camera_http.cpp/726 [Invalid response status 404: Not Found]
2014-08-26 11:24:36.047141 zmc_m1[2840].ERR-zm_remote_camera_http.cpp/1110 [Unable to get response]
2014-08-26 11:24:36.163642 zmc_m5[2802].ERR-zm_remote_camera_http.cpp/1110 [Unable to get response]
2014-08-26 11:24:36.389597 zmc_m1[2840].ERR-zm_remote_camera_http.cpp/726 [Invalid response status 400: Bad Request]
RobLevine
Posts: 27
Joined: Mon Aug 25, 2014 7:57 pm

Re: zmc daemon - [Unrecognised content type 'text/html']

Post by RobLevine »

So I went back and re-installed Ubuntu server and zoneminder...and...I'm now able to get the video feeds! Now i just have to figure out how to implement the PTZ controls...
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: zmc daemon - [Unrecognised content type 'text/html']

Post by knight-of-ni »

Looks like instructions for your cmaera, inluding ptz control, are here:
http://www.zoneminder.com/wiki/index.php/Foscam_FI8918W

Note that there are already several Foscam ptz control scripts in zoneminder. If the script you end up using is different from any of these then consider generating a pull request on github to get it added into the source.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
RobLevine
Posts: 27
Joined: Mon Aug 25, 2014 7:57 pm

Re: zmc daemon - [Unrecognised content type 'text/html']

Post by RobLevine »

I used the newer Arun's script linked at the bottom to match my firmware - works great!
Locked