Page 1 of 2
ZoneMinder 1.27 remote camera orange, but no picture?
Posted: Thu Jun 26, 2014 11:07 pm
by eiger3970
Hello, I just installed ZoneMinder 1.27 and my remote camera is orange, but shows no picture?
Is anyone able to help?
I've tried the Source > Remote Host Name > <username>:<password>@<IPaddress> > Remote Host Port:<port number> > Remote Host Path: videostream.cgi.
I also tried looking up the code for my camera on a website.
Sorry, I can't post the website link as I receive a forum posting error: Your post looks too spamy (should mean spammy?) for a new user, please remove off-site URLs.
I think my camera is a Foscam, but not sure.
I also tried installed mjpg-stream, but it didn't work and not sure if I really need this program.
Re: ZoneMinder 1.27 remote camera orange, but no picture?
Posted: Fri Jun 27, 2014 12:20 am
by hesral
Foscam does not seem to us basic http authentication, according to this page:
http://www.zoneminder.com/wiki/index.php/Foscam
In stead it wants the username and password in a get query string, witch is the stuff after the question mark.
path:
/videostream.cgi?user=yourcamerausername&pwd=yourcamerapassword
I am not sure if this is the case for your specific camera, but things like this often stay the same for most product ranges.
You should use the username and password that you use to log in to your camera in stead of yourcamerausername and yourcamerapassword. If you don't need a password to log in to the camera, you may try the path:
/videostream.cgi?user=&pwd=
So don't use username:password@ipaddress in remote host name. Just put the ip address of the camera.
Re: ZoneMinder 1.27 remote camera orange, but no picture?
Posted: Fri Jun 27, 2014 12:42 am
by eiger3970
Thanks, yes I tried the settings:
ZoneMinder > Source > Source >
Remote Protocol: HTTP
Remote Method: Simple
Remote Host Name: 192.168.1.200
Remote Host Port: 88
Remote Host Path: /videostream.cgi?user=<cameraUserName>&pwd=<cameraUserName>
> Save > Name: Monitor1 > shows a red screen and doesn't show the camera picture.
I checked the ZoneMinder compatibility checklist and the Foscam camera is there (I think mine is a Foscam).
The camera works through my browser.
VitaminD is a Windows camera security software which found the camera ok.
I restarted ZoneMinder.
I checked the ZoneMinder Log and there are 3 repeating errors:
Code: Select all
2014-06-27 11:10:37.072597 zmc_m1 1204 ERR Unable to decode jpeg zm_remote_camera_http.cpp 1120
2014-06-27 11:10:37.069743 zmc_m1 1204 ERR Failed requesting writeable buffer for reading JPEG image. zm_image.cpp 1005
2014-06-27 11:10:37.066838 zmc_m1 1204 ERR Held buffer is undersized for requested buffer zm_image.cpp 32
Re: ZoneMinder 1.27 remote camera orange, but no picture?
Posted: Fri Jun 27, 2014 5:37 am
by hesral
Open a firefox window and type in the link:
http://cameraip/videostream.cgi?user=<c ... raUserName>
If you get an image, check the resolution of the image, and put the same width and height values in zoneminder.
If you don't get an image, what did you get instead?
Re: ZoneMinder 1.27 remote camera orange, but no picture?
Posted: Fri Jun 27, 2014 1:38 pm
by knight-of-ni
You really need to figure out the make & model of camera you have before anyone can give you precise information.
There are instructions for specific Foscam cameras under the User Contributions forum. Try looking at those.
Re: ZoneMinder 1.27 remote camera orange, but no picture?
Posted: Mon Jun 30, 2014 3:11 am
by eiger3970
Thanks.
I entered the URL in the Firefox address bar and a site loads for Hector Lopez-Berges?
I'm checking the Foscam setup details again.
It's a bit tricky to check the camera model as it's screwed in and the Device Info from the camera's GUI shows Device ID and Firmware Version, but no model name.
It isn't this but looks just the same as the Sricam AP001.
Re: ZoneMinder 1.27 remote camera orange, but no picture?
Posted: Mon Jun 30, 2014 7:45 am
by hesral
You get some webpage you don't know about when you enter
http://192.168.1.200:88/videostream.cgi?user=&pwd=
Was the computer with firefox connected to the correct network at the time? Were you connected to some sort of virtual private network?
That ip address, 192.168.1.200, is part of a range designated as a private C class network. No Internet router outside your own network, like your ISP's router, should forward any packets to that ip address. It should either be part of your local network subnet, or be part of some other subnet that only your local area network knows about. If your computer and camera are parts of a business network, then you may get this behavior when dealing with http proxy servers. Else, you more than likely have some other unit on your local area network with the same ip address as the camera.
Encountering such a behavior, I would disconnect the camera from the network somehow. Then I would take my computer, and maybe a router with a dhcp server, and make a small network with only the camera, the computer and optionally a router. This way, I will have full control over the ip addresses. Then I would find the Ip address of the camera, and try the link in firefox again. If successfull, I would then set up the camera to use a static ip address that I know is unused on the original network. Then I would reconnect the camera to the original network.
If you are part of a business network, this would be a good time to consult your network administrator.
BTW. Why is the port number 88? Sure it isn't supposed to be 80?
Re: ZoneMinder 1.27 remote camera orange, but no picture?
Posted: Mon Jun 30, 2014 6:26 pm
by mikb
eiger3970 wrote:Thanks.
I entered the URL in the Firefox address bar and a site loads for Hector Lopez-Berges?
not
http://cameraip LITERALLY
Insert the IP address of your camera there!
(Go on, try clicking on the example "cameraip" link posted, Hector Wossname blog comes up ...)
Re: ZoneMinder 1.27 remote camera orange, but no picture?
Posted: Mon Jun 30, 2014 10:36 pm
by eiger3970
Thanks, I will try
//<cameraIP>/videostream.cgi?user=<cameraUserName>&pwd=<cameraPassword>
Went to browser to login to ZoneMinderIP/zm and error:
Could not connect to database: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Browser to login to ZoneMinderIP correctly loads Apache2 Ubuntu Default Page.
Working on fixing this error so I can try the suggested script.
My Virtual Environment is saying that the Status of the ZoneMinder server has an io-error, so this might be causing an additional problem.
This is a small private home network.
The IP is only for the security camera and is not taken by any other IP address.
I ended up using port 88, as port 80 loaded something different and 88 made the picture work through the browser.
Re: ZoneMinder 1.27 remote camera orange, but no picture?
Posted: Tue Jul 01, 2014 5:17 am
by eiger3970
Ok, fully reinstalled the Ubuntu server and ZoneMinder.
I opened Firefox and entered //<cameraIP>/videostream.cgi?user=<cameraUserName>&pwd=<cameraPassword> > Enter > Unable to connect. Firefox can't establish a connection to the server at camerIP.
I am not sure if mjpeg-streamer_r94-1_i386.deb needs to be downloaded or installed.
I downloaded the file, however I haven't installed it yet.
Re: ZoneMinder 1.27 remote camera orange, but no picture?
Posted: Tue Jul 01, 2014 11:48 am
by hesral
If the camera is set up to use a different port than 80 with http, then you must provide that information to the browser. You do that by following the ip address with ":<portnumber>"
so type this in the firefox address field:
Code: Select all
http://<cameraIP>:88/videostream.cgi?user=<cameraUserName>&pwd=<cameraPassword>
Re: ZoneMinder 1.27 remote camera orange, but no picture?
Posted: Wed Jul 02, 2014 5:16 am
by eiger3970
Yes, that script works in Firefox.
So, my current ZoneMinder settings are:
ZoneMinder > Source > General >
Name: Security_camera
Source Type: Remote
Function: Monitor
Enabled: ticked
Linked Monitors: Security_camera
Maximum FPS: blank
Alarm Maximum FPS: blank
Reference Image Blend %ge: 6.25% (Indoor)
Alarm Reference Image Blend %ge: 3.125%
Triggers: None available.
> Source >
Remote Protocol: HTTP
Remote Method: Simple
Remote Host Name: Camera IP address
Remote Host Port: 88
Remote Host Path: /videostream.cgi?user=<cameraUserName>&pwd=<cameraPassword>
Target Colorspace: 24 bit colour
Capture Width (pixels): 320
Capture Height (pixels): 240
Preserve Aspect Ratio: unticked
Orientation: Normal
Deinterfacing: Disabled
Maybe I need to download some video streaming program into the Ubuntu server ZoneMinder is running on?
Re: ZoneMinder 1.27 remote camera orange, but no picture?
Posted: Wed Jul 02, 2014 7:15 am
by hesral
What is the pixel width and height of the image that shows up in firefox?
Re: ZoneMinder 1.27 remote camera orange, but no picture?
Posted: Wed Jul 02, 2014 7:22 am
by eiger3970
The pixel width and height is 640 x 480.
Type: image/jpeg
Render Mode: Quirks mode.
Re: ZoneMinder 1.27 remote camera orange, but no picture?
Posted: Wed Jul 02, 2014 11:38 am
by hesral
Ok. Then you have to put 640 as capture width and 480 as capture height in source.