Subscriber Discussion
How To Make IP Cameras Work Better With VMS Software, From A Developer
I have written 15 or so VMS drivers for different camera manufacturers and so I see cameras from a different perspective to installers, manufactures, managers etc. Some cameras work well with VMSs, most are less than perfect, but the Arecont was the worst...
One thing I notice is that the cameras I like and do not like and pretty much the same as the cameras the installers like. I really like Axis, I do not like Arecont. Therefore, I am thinking that if Arecont changes things I don't like about their cameras, their problems might be solved. I am wondering how many problems with the cameras are that they just do not work well with third party VMSs?
So from a VMS developers perspective, this is what I think Arecont should do:
Hire a good Windows C++ developer and write an application designed to test each camera model to the limits that I think it needs to handle in order to survive out in the field without doing annoying things that cause the NVRs to keep loosing the connection etc.
The application should do the following:
1) Connect to the camera using the following protocols using open source rtsp clients available on the web e.g. live555, and as many others that you can find as these are generally the ones NVR use, although not always. The application should then be able to connect to the cameras using the following protocols.
- tcp over rtsp (mandatory)
- udp over rtsp (optional)
- rtsp tunnerled through http (mandatory)
- MJPEG over HTTP (mandatory)
IMO, Areconts proprietary protocol shouldn't be needed these days.
2) For the H264 decoders use:
- Intel IPP H.264 decoders
- Intel media SDK hardware accelerated decoders
- Optionally NVIDIAs GPU base decoders
In my experience the h264 emitted from at least some Arecont cameras cause problems with all three. VMS companies generally do not write their own decoders, they are most likely to use the Intel decoders.
3) Test all decoders on the full range of Intel CPUs, from Celerons to Cannonlake. The Intel decoders load different code depending on the CPU type. I have seen h264 emitted from Arecont cameras crash the Intel decoders on Pentiums (really really annoying). On generation 3 i7s it causes the decoders to throw memory exceptions that are at least caught. I do not think they crash in this case, but you still loose frames.
4) Test using different combinations of h264 configuration parameters. e.g. the crash I mentioned in (3) was somewhat eliminated if I force the cameras to use constant bitrate h.264 instead of variable when the VMS connects.
5) At an absolute minimum, simultaneously create a tcp connection for each imager and each stream. So if it is a x4 imager and supports dual streaming there will be 8 connections. Do this while having at least 2 web pages open, and make sure the cameras can handle this without dropping connection and crashing. This is at a minimum. The Arecont 8185DN that I have can't handle this, it reboots, looses connections and crashes all over the place. Might be stable for 2 minutes, and then drops connections again. By comparison, some Axis cameras can handle 20 concurrent tcp connections for example.
6) Test this on a network, or simulated network that is noisy, has large packet loss etc, and at the same time send corrupt data to the cameras, drop connections unexpectedly etc.
7) when the test application sends tcp packets to the camera, break them up with small delays. e.g. if the camera is expecting 100 bytes, send 10 and wait a bit, send 70 and wait a bit then send the remaining 20. When receiving a reply from the camera do the same. Call the socket receive call and retrieve 10 bytes and wait a bit, then get the rest...
8) Insert random timing delays between receiving frames, and parts of frames from the camera. This puts memory pressure on the camera, many don't handle this well. Make sure in such cases that the camera can throttle down, e.g. drop p frames until the next I frame etc, drop the quality etc. I have seen even some axis cameras slow down and freeze under this test.
9) Create and drop 1000s of connection to the cameras over a period of time to test for memory leaks. There are undoubtly cameras out there (not talking about arecont in this case) that will slow down until they eventually freeze or reboot.
9) Run the application for 1 week and make sure there are no reboots at all, no memory leaks and an acceptable number of unaccountable lost connections.
If the camera can not handle this test, keep improving the software, and if necessary the hardware (i.e. processing power and RAM) until it does work.
NOTICE: This comment was moved from an existing discussion: Arecont Multi Imagers Dropping Communication To Servers
#1, thanks! I've made this its own discussion.
Question - do you think there is a relationship with system on a chip choice? For example, do cameras that use Ambarella chips benefit from that vs Arecont' home grown approach or?
My original post is a bit one sided because it is throwing all the responsibility on to the camera side. Likewise I could write a post on things VMS developers can do to make it easier for the camera. The point is, when both sides reach out and do more than what they are arguably required to do, then you get good a topnotch integration.
Taking some advice from the greatest collaboration in musical theater history, the entire post could be summarized in just three words :-)...
In other words, the camera guy says to the VMS guy:
We'll do it your way...
The VMS guy says to the Camera guy:
No, we'll do it your way...
So you have:
1) the Camera
2) the VMS
3) the interaction between the Camera and the VMS.
Axis understands (3) well. If it is not well understood, by either than camera or the VMS manufacturer (developers and managers), your product may appear to be crap to the installers and end users. For example, a camera may appear to repeatedly fail from the point of view of users and integrators, even though as far as the camera manufacturer is concerned it is working as designed when tested in isolation. The real problem might be it just doesn't play well with the VMS, or vice versa. Now, one could take the attitude of blaming the VMS (or vice versa) but that is fatal, and I have been learning this the hard way myself, as I rework a lot of me VMS code to be more accommodating to the cameras.
Have you ever worked with Hikvision Cameras and if so where do that rate in your opinion?

From the last 10 years of installing cameras, approximately 5000 cameras including PELCO, AXIS, ARECONT VISION, American dynamics, HIKVISION with different VMSes including Genetec, Milestone, Exacq, VideoEdge , Onssi, video expert , I totally agree with what you are saying and yes we do have the exact problems you just mentioned in your article .
Newest Discussions
Discussion | Posts | Latest |
---|---|---|
Started by
David Little
|
3
|
less than a minute by David Little |
Started by
Undisclosed Integrator #1
|
18
|
less than a minute by Undisclosed Integrator #1 |
Burglars Steal 4G Camera, ~$8,000 In Tools, Camera Is Still Transmitting Video From Burglars Home.
(1)
Started by
Jermaine Wilson
|
1
|
less than a minute by Jermaine Wilson |
Started by
John Honovich
|
7
|
about 1 hour by John Honovich |
Started by
Undisclosed #1
|
3
|
1 minute by Undisclosed #2 |