Glen Pitt-Pladdy :: BlogTENVIS Camera with ZoneMinder (Linux or Mac setup) | |||
TENVIS produce a range of IP cameras with Wifi and some with PT (no Z), but what is most extraordinary is the prices - they really are low. You can get a basic fixed Wifi IP camera at 640x480 resolution for around £35 all in on eBay. If you have worked with the high resolution AXIS IP cams then don't expect the same quality. Build quality is respectable with TENVIS, but the optics and size of the sensors, plus the high resolutions available with AXIS put them a cut abover everyone else. If you are monitoring a large area and want to be able to identify a complete stranger at a distance from the cameras then high end AXIS cams are the way. If you want to check who's been at your front door or which of the neighbour's cats is coming through the cat flap then cheap TENVIS cams may well do the job. With Wifi they are also ideal for putting where it would be inconvenient to run network cables like in garden sheds, carports, etc. Initial Camera setup.... without WindowsThe manual says that you need to use their Windows only setup tool, but if you do not have a Windows box then they are relatively simple to setup with only a browser. This can also be done with Windows where security and stability concerns of installing third party software are to be avoided. TENVIS cams do not seem to be configured for DHCP out the box so just checking the DHCP logs isn't going to help though the manual seems to have some conflicting information on that so maybe some models do use DHCP. They come configured on a static IP of 192.168.1.239 on the wired network so the easiest thing to do is to configure a machine (I used a laptop) on another address on that network, say 192.168.1.100 with a netmask of 255.255.255.0) and connect it directly to the camera with a suitable cable. The next thing to note is that there is nothing listening on port 80 (normal web/http port) so when you point your web browser at the IP address, you get nothing. The web interface in fact runs on port 81 so you need to put http://192.168.1.239:81/ into the browser at which point you should get the login box pop up. Depending on the model, Username and Password by default are both admin (all lower case), or Password may be blank, at which point you should be able to choose "Server Push Mode" for or "VLC plug-in Mode" (requires VLC plugin) and then you can configure the Wifi or wired network to an appropriate address. To stream the video without having to use the admin credentials it's also worth adding a user under "Users Settings" - I added a user of "view" with no password as a Visitor which allows access to the video stream, but you could set a password for the video if you want extra security. Obviously, it's also a good idea to set a suitably strong admin password. Once you have the device configured for your network and can get into the web interface on it's final address and configuration, it's time to move onto configuring ZoneMinder to use the cam. Configuring ZoneMinder for TENVIS camRather easy actually! TENVIS provide two resolutions and a number of frame rates to use. The base URL for MJPEG is http://IPofCam:81/videostream.cgi and we then need to authenticate so add parameters for user and pwd like: http://IPofCam:81/videostream.cgi?user=view&pwd=complexpassword If you have no password then just leave ...&pass= in but with no password after the "=". Next there are two resolutions to choose from, 640x480 or 320x240. For that add the next argument of resolution with a value of either 8 or 32. For the full resolution our URL now looks like: http://IPofCam:81/videostream.cgi?user=view&pwd=complexpassword&resolution=8 Now we need to choose the framerate we want to use and append a rate parameter. There are several speeds to choose from:
0 = full speed So for 5 fps which is often enough for basic CCTV usage our URL now looks like: http://IPofCam:81/videostream.cgi?user=view&pwd=complexpassword&resolution=8&rate=11 Put that into your browser and you should get the video stream from the camera. Neil Martin (see below) points out that using JPEG snapshots is more reliable, and having tested this I am inclined to agree with him For this you can leave out the video specific stuff (FPS) and use snapshot.cgi instead: http://IPofCam:81/snapshot.cgi?user=view&pwd=complexpassword&resolution=8 Next get Zoneminder Configured - Click "Add New Monitor" and start filling it in:
Then onto the Source Tab:
At that point you should have a working TENVIS Wifi IP camera, but beware the usual catches with ZoneMinder of not having sufficient shared memory or free memory for buffers. The remaining setup is generic stuff that is common to all cameras like the motion detection zone etc. JPEG errors in logsOne thing that seems to happen if you use the JPEG mode (snapshot.cgi) is loads of errors logged like this: zmc_m6[6223]: WAR [Corrupt JPEG data: 1 extraneous bytes before marker 0xd9] These are a hit on performance (extra disk activity - one line per frame per camera) and waste loads of space, not to mention making finding relevant stuff in logs more difficult. With recent distros that use rsyslogd you can create a config for Zoneminder (say /etc/rsyslog.d/local-zoneminder.conf) with the following in it: :msg,contains,"extraneous bytes before marker 0xd9" ~ That will cause rsyslogd to ignore lines with the matching text. |
|||
This is a bunch of random thoughts, ideas and other nonsense, and is not intended to be taken seriously. I'm experimenting and mostly have no idea what I am doing with most of this so it should be taken with cuation and at your own risk. Intrustive technologies are minimised where possible. For the purposes of reducing abuse and other risks hCaptcha is used and has it's own policies linked from the widget.
Copyright Glen Pitt-Pladdy 2008-2023
|