High latency in Video

Latency in the video can happen for a variety of reasons such as...

  • Network congestion
  • Network latency - for example, if the video is being transmitted over wireless or some other "special" device such as a LAN extender
  • A slow client PC - decoding video is CPU-intensive so a slow PC coupled with high-resolution/high-framerate video could add some latency.
  • "Live buffering" feature being enabled in WaveView - the WaveView client has a feature called "live buffering" which deliberately adds some delay to the viewing of live video in order to make it smoother. It's disabled by default and it's recommended to keep it disabled if using PTZ cameras or if specifically needing low latency. The feature can be enabled/disabled in the WaveView Tools|Preferences|Playback menu.
  • Slow camera encoding - Some cameras are just slow at encoding the video, or they buffer the video. If this is the case you'll generally see similar delays when using the camera's own viewing software. It could be worth trying different settings in the camera relating to video compression.

Some of the above issues can be investigated by trying to remove network complexities. For example, take one camera and connect it to the same network switch as the Wavestore. Then try to view it directly from the WaveView client on the Wavestore, or another PC connected to the same switch. This can help to prove or disprove whether the network is the issue.

Another consideration is that sometimes when opening a new camera in WaveView, the latency can initially be as high as 2 seconds, however, it will reduce over time. The technical reason for this is related to compression formats such as H.264 and the GOP (Group Of Pictures) concept. If you open the camera just as a new I-frame is output by the camera, the latency will be low. However, if you open the camera just before a new I-frame, there will be a delay before the stream is started because WaveView has to request and decode the previous I-frame and all subsequent p-frames up to the present point in time. In any case, the latency gradually decreases over a short period of time (maybe 20-60 seconds) until it reaches a low latency, usually around 0.25s on a good network.

It's also worthwhile to check that the camera firmware is up-to-date.