How do I stream IP camera on browser without all options?

Forum for questions and support relating to the 1.26.x releases only.
Locked
davies
Posts: 1
Joined: Fri Jan 03, 2014 10:23 am

How do I stream IP camera on browser without all options?

Post by davies »

Hello,

I am trying to stream directly from a IP from china that doesn't have a specific make.
The camera works perfectly fine and I can access it from a browser.
The problem is, I am trying to stream in the web browser without all the controls, menus etc..

Is there a way to tackle this issue?

Any help is greatly appreciated.

Regards Davies
chippy99
Posts: 66
Joined: Wed Aug 30, 2006 5:38 pm
Location: Barnet, Herts. UK

Re: How do I stream IP camera on browser without all options

Post by chippy99 »

You could create an html page containing the following

Code: Select all

<html>
<head>
<title>some title</title>
</head>
<body>
<img src="http://zm_ip_address/cgi-bin/nph-zms?mode=jpeg&monitor=zm_monitor_number&scale=100&maxfps=5&buffer=1000&buffer=1000&connkey=000000&buffer=1000&rand=0000000000&user=zm_user_name&pass=zm_pass">
</body>
</html>
Where zm_ip_address is the address of your zoneminder installation, zm_monitor_number is the monitor number you see in address of that camera when viewing it, and zm_user and zm_pass are username and password for zoneminder (if set).
Your path /cgi-bin/nph-zms may need adjusting depending on your setup.

btw this is insecure as you are sending your username and pasword
pyroman
Posts: 25
Joined: Fri Jan 03, 2014 6:40 pm

Re: How do I stream IP camera on browser without all options

Post by pyroman »

I too have some NeoCoolCams from China. They have similar (same?) protocol as fosscam.

this is the line I use in the Remote Host Path field of the camera definition in zm:

--------------------------------------------------------------------------------------
/videostream.cgi?user=username&pwd=user_pwd&resolution=32&rate=6
--------------------------------------------------------------------------------------
where username and user_pwd is your camera's admin data (or any other account you may have set up in the camera)

resolution 32 means VGA
You can use 8 for QCIF

This rate number gives me 5 to 10fps. The documentation is not too clear about the exact values for this number.

also, you can use /videostream.asf? instead of cgi. Not sure what the difference is, but I seem to get smoother results with the cgi command.

For simple visual monitoring, I use VLC to connect directly to the camera. The camera has no problem providing a stream for zm and one for VLC. I use both simultaneously. Take some of the workload off of zm. The command line for that is:

---------------------------------------------------------------------------------------------------------------
http://cam1:8990/videostream.cgi?user=u ... =32&rate=6
----------------------------------------------------------------------------------------------------------------

where cam1:8990 = ipadress and port for the camera.
resolution=32 says VGA
resolution=8 says QCIF
rate=6 provides a decent frame rate for both resolution.
Locked