new Trendnet TV-IP400W controller for Zoneminder 1.23.x
Home Automation July 31st, 2008I’ve finally gotten around to rewriting my old Trendnet PTZ controller for Zoneminder 1.22.x to support the new API for Zoneminder 1.23.x. It includes all the old features (moving the camera in horizontally, vertically, diagonally, and going to preset and home position) as well as a new bonus feature: move the camera simply by clicking a point in the live video that you want the camera to recenter on. This is not extremely accurate, but good enough for most uses, and faster than having to click an arrow 20 times.
Here’s the basic steps on how to get this Trendnet TV-IP400 / IV-IP400W driver to work in ZoneMinder:
- Make sure you have indeed version 1.23.x. You can see this in the title of the main console window. If you are still using version 1.22.x, either upgrade your ZoneMinder or use my old driver.
- Download the driver file here, and store it in the right directory. For me (having compiled Zoneminder from source on ubuntu) that location is /usr/local/perl/5.8.8/ZoneMinder/control. If that location doesn’t exist on your system, you can do a search for another camera driver such as Visca.pm and store the TVIP400.pm file in the same location.
- Create a new camera for your TV-IP400 if you haven’t already done so. The source tab looks something like this:

Make sure you change the IP address and port number if necessary. You will need to make sure that access control is turned off by the way.
If you had enabled the ZM_OPT_CONTROL setting in the system options screen, you will also see a control tab in the camera config window. This tab should look like this:

Again, make sure you set the correct IP address (the same as what you set in the source tab). You won’t have a TV-IP400 option yet in the Control Type dropdown, so click on ‘edit’ there and let’s create one.
In the Control Capabilities window, click ‘Add New Control’. Then set the settings in the Main and Move tabs as follows:


In the Pan tab, only check the ‘Can Pan’ option and leave the rest blank.
In the Tilt tab, only check the ‘Can Tilt’ option.
All options in the Zoom, Focus, White and Iris tabs can be left blank since none of these features are supported.
The Presets tab should be set as follows:

Though you can’t actually set presets through ZoneMinder, you can move the camera to presets that you’ve configured through the Trendnet web interface. I’m only using 5 presets but I believe you could access all 24 presets that the Trendnet supports.
That’s all! Save the configuration, and give your new controllable camera a spin in ZoneMinder. Let me know how you like it.
Thanks to Armando Oritz for his help in testing this driver.
July 31st, 2008 at 12:17 am
[…] Update (7/18/08): this driver and instructions work for ZoneMinder 1.22.x only, see my update for ZM 1.23.x support. […]
September 22nd, 2008 at 9:14 am
I am unable to get a screen other than black on the video input. Does this have to do with ffmpeg? Ive tried other distros/reloading/livecd. Still the same. I have the TV-IP400 and upgraded it to latest firmware also. Am i missing something?
September 22nd, 2008 at 9:25 am
if you don’t get any video, you might want to try disabling the option ZM_NETCAM_REGEXPS in the option panels. This apparently fixed the issue for several other people in the ZoneMinder forums.
September 22nd, 2008 at 11:28 am
Sorry to be a pest. I believe i have all the other bugs worked out but the control doesnt work. I have the file in the correct location and ran chmod 775 on the file. At a loss it doesnt work via clicking arrows or the image.
Thanks a ton for your help. :)
September 22nd, 2008 at 12:16 pm
are you seeing the controls in the ZM video page at all? If so, double check that you have access control turned off on your TV-IP400. If you set all the properties as I’m suggesting above it should work. Actually, just went through my notes and remembered that I had to install PHP::Serialization (with CPAN) on my Ubuntu distro. Appeared to be a new dependency required for the latest ZM. So double check that you have that lib installed, and check your log files for any specific error messages…
September 25th, 2008 at 8:44 pm
Hi Peter, thank you very much for another wonderful contribution to the ZM community. I’ve just set up the driver on a 1.23.x ZM, and it seems to be working. However, after moving the camera and returning to the camera view, the image doesn’t refresh anymore. Any ideas on what may be causing this? The only woraround i’ve found so far is to uncheck the “controllable” option, and then the live image starts to refresh normally. Before this, I had this same camera working on a 1.22.x ZM with your old driver, and never had a single problem. I’m not sure if it is just a browser issue (the problem i’ve described happens both on FF and on IE using the Cambozola Java applet).
October 10th, 2008 at 5:41 am
This control work with TV-IP422W model?
October 15th, 2008 at 1:36 pm
No it doesn’t, as it’s running completely different firmware. There’s a thread on the Zoneminder forums about this camera though: http://www.zoneminder.com/forums/viewtopic.php?p=42758&sid=598875ff3a87d15ba62379ca4b0b99c4
October 27th, 2008 at 1:54 pm
tks
November 2nd, 2008 at 10:07 am
Alex, I haven’t seen the problem you’re mentioning here. I’ve never used the Cambozola applet… it may be related to a problem with that applet. In any case it sounds like it may be a bug in ZoneMinder… I would search the Zoneminder forums or post a message there if you can’t find the solution there either…