ZoneMinder 1.27 remote camera orange, but no picture?

Forum for questions and support relating to the 1.27.x releases only.
eiger3970
Posts: 55
Joined: Thu Jun 26, 2014 10:58 pm

ZoneMinder 1.27 remote camera orange, but no picture?

Post 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.
hesral
Posts: 44
Joined: Sun Apr 06, 2014 12:11 pm

Re: ZoneMinder 1.27 remote camera orange, but no picture?

Post 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.
eiger3970
Posts: 55
Joined: Thu Jun 26, 2014 10:58 pm

Re: ZoneMinder 1.27 remote camera orange, but no picture?

Post 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
Last edited by eiger3970 on Mon Jun 30, 2014 2:57 am, edited 1 time in total.
hesral
Posts: 44
Joined: Sun Apr 06, 2014 12:11 pm

Re: ZoneMinder 1.27 remote camera orange, but no picture?

Post 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?
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: ZoneMinder 1.27 remote camera orange, but no picture?

Post 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.
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/
eiger3970
Posts: 55
Joined: Thu Jun 26, 2014 10:58 pm

Re: ZoneMinder 1.27 remote camera orange, but no picture?

Post 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.
hesral
Posts: 44
Joined: Sun Apr 06, 2014 12:11 pm

Re: ZoneMinder 1.27 remote camera orange, but no picture?

Post 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?
mikb
Posts: 661
Joined: Mon Mar 25, 2013 12:34 pm

Re: ZoneMinder 1.27 remote camera orange, but no picture?

Post 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 ...)
eiger3970
Posts: 55
Joined: Thu Jun 26, 2014 10:58 pm

Re: ZoneMinder 1.27 remote camera orange, but no picture?

Post 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.
Last edited by eiger3970 on Tue Jul 01, 2014 5:56 am, edited 2 times in total.
eiger3970
Posts: 55
Joined: Thu Jun 26, 2014 10:58 pm

Re: ZoneMinder 1.27 remote camera orange, but no picture?

Post 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.
hesral
Posts: 44
Joined: Sun Apr 06, 2014 12:11 pm

Re: ZoneMinder 1.27 remote camera orange, but no picture?

Post 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>
eiger3970
Posts: 55
Joined: Thu Jun 26, 2014 10:58 pm

Re: ZoneMinder 1.27 remote camera orange, but no picture?

Post 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?
hesral
Posts: 44
Joined: Sun Apr 06, 2014 12:11 pm

Re: ZoneMinder 1.27 remote camera orange, but no picture?

Post by hesral »

What is the pixel width and height of the image that shows up in firefox?
eiger3970
Posts: 55
Joined: Thu Jun 26, 2014 10:58 pm

Re: ZoneMinder 1.27 remote camera orange, but no picture?

Post by eiger3970 »

The pixel width and height is 640 x 480.
Type: image/jpeg
Render Mode: Quirks mode.
hesral
Posts: 44
Joined: Sun Apr 06, 2014 12:11 pm

Re: ZoneMinder 1.27 remote camera orange, but no picture?

Post by hesral »

Ok. Then you have to put 640 as capture width and 480 as capture height in source.
Locked