Cameras consistently lag 10-20 seconds behind while viewing
Issue: End user watches several cameras at her desk using SecuritySpy to connect to the server where SecuritySpy resides and records 12 various branded cameras. Two cameras (#5 and #12) in recent weeks have consistently been delayed from real time 10-20 seconds. These two cameras point to the entrance of the facility and when a vehicle enters, the user can see it real time 15 seconds before it appears in her views. This is a recent development as this configuration has been in place for nearly 2 years.
Configuration:
- SecuritySpy Server :
3.4.7 running on a MacMini Late 2012 0 2.3Ghz i7, 16GB RAM, 256GB SSD, running OS X 10.8.5 Server. Server also functions as FileMaker host for one database, CrashPlan storage server and file server. RAM is regularly 50% free and there is about 200GB free on start up SSD. SS regularly takes up 300-350% of processor load.
- Camera details:
12 cameras installed inside and outside the facility, most hardwired via gigabit, but a couple are wireless, including one of the two problem cameras. SecuritySpy is motion based recording (with no recompression) on to a dedicated 3TB partition of a RAID 5 G-Tech box via USB3. SS overlays time stamp info on all cameras, and there masks to block out road traffic from motion detection.
The two problem cameras:
#5 - Foscam FI8620 Wired IP (H.264) w/PTZ connected via switched gigabit.
#12 - Y-cam Bullet HD720 connected wirelessly via UniFi AP-Outdoor supporting 801.n wirelessly linked to a UniFi AP-LR also supporting 801.n.
- End User:
iMac 3.2 Ghz i5 8GB, 1TB running OS X 10.8.5 connected to gigabit network. Keeps SS running in the background to monitor gate and several other cameras onsite (7 total), connected to the server using MPEG-4 RTSP over HTTP method of connecting SS to SS. User logs out in the evening and logs back in each morning.
User typically has other operations going on in the foreground (MS Office, web browsing, etc.)
Troubleshooting steps taken:
- Restart wireless access points, cameras, SecuritySpy on server and even the server itself. In most cases, it seems to resolve the problem temporarily. But the issue continues to return, multiple times a day.
- changed configuration in server based SS Video Device settings to use RTSP over HTTP (was previously set to JPEG)
- The camera views appear in real time when the user logs into the individual web interfaces to monitor cameras, so the problem lies somewhere between the 2 copies of SS communicating as best I can tell. The user is at a remote site 3 states away, so it's hard for me to troubleshoot beyond making changes/restarting things and waiting for the user to report back.
Thoughts? Need more details?
Configuration:
- SecuritySpy Server :
3.4.7 running on a MacMini Late 2012 0 2.3Ghz i7, 16GB RAM, 256GB SSD, running OS X 10.8.5 Server. Server also functions as FileMaker host for one database, CrashPlan storage server and file server. RAM is regularly 50% free and there is about 200GB free on start up SSD. SS regularly takes up 300-350% of processor load.
- Camera details:
12 cameras installed inside and outside the facility, most hardwired via gigabit, but a couple are wireless, including one of the two problem cameras. SecuritySpy is motion based recording (with no recompression) on to a dedicated 3TB partition of a RAID 5 G-Tech box via USB3. SS overlays time stamp info on all cameras, and there masks to block out road traffic from motion detection.
The two problem cameras:
#5 - Foscam FI8620 Wired IP (H.264) w/PTZ connected via switched gigabit.
#12 - Y-cam Bullet HD720 connected wirelessly via UniFi AP-Outdoor supporting 801.n wirelessly linked to a UniFi AP-LR also supporting 801.n.
- End User:
iMac 3.2 Ghz i5 8GB, 1TB running OS X 10.8.5 connected to gigabit network. Keeps SS running in the background to monitor gate and several other cameras onsite (7 total), connected to the server using MPEG-4 RTSP over HTTP method of connecting SS to SS. User logs out in the evening and logs back in each morning.
User typically has other operations going on in the foreground (MS Office, web browsing, etc.)
Troubleshooting steps taken:
- Restart wireless access points, cameras, SecuritySpy on server and even the server itself. In most cases, it seems to resolve the problem temporarily. But the issue continues to return, multiple times a day.
- changed configuration in server based SS Video Device settings to use RTSP over HTTP (was previously set to JPEG)
- The camera views appear in real time when the user logs into the individual web interfaces to monitor cameras, so the problem lies somewhere between the 2 copies of SS communicating as best I can tell. The user is at a remote site 3 states away, so it's hard for me to troubleshoot beyond making changes/restarting things and waiting for the user to report back.
Thoughts? Need more details?
Comments
The cause it either the network or the Mac being too slow to keep up. In your case it sounds like the Mac. If SecuritySpy is running at 300-350% this is near the Mac's full CPU capacity, and the other tasks performed by the Mac may be pushing it over the edge.
The main thing you can do to reduce CPU usage is to turn off SecuritySpy's text overlays. With these on, SecuritySpy needs to decompress and then recompress the incoming video data in order to save it to the movie files, even if you have the "No recompression" options checked.
Instead, enable text overlays in the cameras themselves. Also make sure that the cameras are set with an NTP (Network Time Protocol) server so that they keep perfect time (you can use time.apple.com).
Hope this helps.
Recompression in software not only uses a lot of CPU but also degrades video quality, so if I were you I'd apply this to all cameras, and put up with the different format of the text overlays in order to get these significant advantages.
Thoughts?
After cooling it down all was ok.
Michael
Do you have an answer to my other question about the Axis cameras and their OSD being cropped out of the SS feed?
Okay, very odd. When i was changing these setting yesterday, while watching the SS feed, the dates were not appearing. When I looked in just now to answer your questions, the info now appears in both SS and it's web interface of some, but not all four of the cameras. The timestamp does not show up in a still image from the cameras.
RE: compression:
My settings for the cameras that support H.264 are already set for that format in the Video Device Settings dialogue. I would post a screenshot, but there doesn't appear to be a way to do that in these forums.
RE: CPU usage:
Today SS's CPU usage is averaging below 300%, hovering around 250-275% as compared to yesterday after I changed settings for the overlays.
I will check in with the end user on the delay.