Live view rubberbanding / stutter with Hikvision 4K camera — Nx Witness
AnsweredSummary
When viewing a Hikvision 4K camera live in the Nx Witness Desktop Client, the video periodically freezes and catches up ("rubberbanding"). The same stream plays smoothly everywhere else: archive playback in the same client, exported clips in VLC, and the raw RTSP stream in ffplay (including low-latency mode). The issue reproduces against two independent servers on different architectures. Everything points to the live streaming/forwarding pipeline between Nx Server and Desktop Client.
Environment
Nx
Camera
- Hikvision DS-2CD2386G2H-IS2U/SL, firmware V5.7.23
- Primary stream: 3840x2160, H.264, 25 fps, I-frame interval 50
- Bitrate: constant (CBR) 12 Mbps (tested 6, 12 and 16 Mbps — see findings)
- Secondary stream: 640x360, 8 fps, ~0.36 Mbps
Servers (issue reproduces on both)
- FriendlyARM NanoPi R5C (RK3568, ARM), Ubuntu — Nx Witness version: 6.1.1
- Virtual machine on Proxmox, x86, Ubuntu 24.04 Server — Nx Witness version: 6.1.2
Clients
- Ubuntu Desktop Client version: 6.1.2 on Ubuntu 26.04 laptop (Intel class x86)
- Windows 11 Client version: 6.1.2 on Windows 11 desktop (intel class x86)
- Nx Web Client: unusable in our setup — video freezes continuously (no GPU/transcoding available on either server), on both servers. We could therefore not use the web client for comparison.
Symptom
-
Live view in Desktop Client: periodic rubberbanding — video freezes briefly, then jumps forward to catch up. Severity scales with camera bitrate:
- 16 Mbps: heavy rubberbanding
- 12 Mbps: frequent rubberbanding
- 6 Mbps: nearly gone
- Archive playback of the same camera in the same Desktop Client: almost no stutter
- Downloaded/exported clip in VLC: zero stutter
-
Raw RTSP from the camera in ffplay on the same client machine, including low-latency mode (
-fflags nobuffer -sync ext): zero stutter
Some stuff that i all ready tested
- Network: 0% packet loss, ~2 ms average RTT, minimal jitter on the client–server link; issue reproduces from different client machines and network paths.
- Camera encoding/pacing: camera set to constant bitrate; direct RTSP in ffplay low-latency mode is completely smooth.
- Server capacity/architecture: NanoPi at ~10% CPU; identical behaviour on an x86 Ubuntu 24.04 server VM with ample resources.
- Recording/ingest path: server ingests full 25 fps (per camera Info panel), archive is clean (VLC playback of exports is flawless), archive playback in the client is smooth.
- Client hardware/OS specifics: reproduces on Ubuntu 26.04 physical laptop and in the x86 VM; the same laptop decodes the same 4K stream smoothly in ffplay.
The rubberbanding occurs exclusively in the live path of Nx (Nx's own server→client live transport and/or the client's live synchronization logic), and worsens with bitrate.
Reproduction steps
- Add the Hikvision 4K camera (settings as listed above) to an Nx server.
- Open live view of the camera (full primary stream) in the Desktop Client from a remote machine on the LAN.
- Observe for 1–2 minutes: periodic freeze/jump-forward cycles.
- Immediately afterwards, play back archived footage of the same camera in the same client — noticeably smoother.
- Play the raw RTSP stream in ffplay with
-fflags nobuffer -sync ext— completely smooth. - Increase camera bitrate from 6 → 12 → 16 Mbps to see the live-view stuttering scale accordingly.
Request
- Is this a known issue in the live viewing pipeline on Ubuntu/Linux clients?
- Are there client or server settings (live buffer, sync behavior) that can mitigate this?
-
Hi JV,
Hi,
Thank you for the detailed report and the testing you’ve already done. Here are a few things that will help narrow this down.
Test the stream from the Media Server
Your ffplay tests so far pulled the stream directly from the camera, which bypasses Nx entirely. Please repeat the test using the RTSP stream from the Media Server instead. This shows whether the stutter comes from the Server or from the Desktop Client.
Supported platforms
Please note that the NanoPi R5C and Ubuntu 26.04 are not supported platforms, and virtual machines have limited support. For us to investigate this as a potential product issue, it needs to be reproducible on supported, recommended hardware and operating systems.
Increase the client’s live buffer
You can try increasing the client’s live buffer in the Desktop Client: go to Local Settings > Advanced > Maximum Live Buffer Length.
The live buffer is a small amount of video the client holds before displaying it. In live view, the client keeps this buffer as short as possible to keep latency low. When frames arrive unevenly, which is more likely with high-bitrate 4K streams, a short buffer can run empty. The video then freezes and jumps forward to catch up with live. A larger buffer absorbs these variations and gives smoother playback, at the cost of slightly more delay in live view.
Work with your reseller
Your reseller is best equipped to investigate the root cause of this specific issue and to resolve it or escalate it to us. Please set both the Media Server and the Desktop Client to the DEBUG log level, reproduce the issue, and share both sets of logs with your reseller. Include the date, time, and time zone of the reproduction. Obviously, as mentioned, the reproduction has to be done of support hardware and OS.
Best regards.
0 -
Hi Norman,
Thank you for your reply!
I increased the buffer to 1000ms and that is also the maximum allowed as far as i could tell. But it didn't have the desired effect. Its still rubber-banding.
I wanted to try the stream directly from the server but it doesn't work. it seems the credentials are not accepted, either from the server or the camera. Could you share with me the format for the rtsp stream coming directly from the server?
kind regards
0 -
Hi JV,
See THIS part of the API for formatting RTSP streams, directly from the Media Server.
Please note that you need to create a Digest User first in order to authenticate an RTSP stream.
Best regards.
0 -
Hey Norman,
I got the stream working in ffplay and vlc, the same rubber-banding persists. But if i use the flag ‘-rtsp_transport tcp’ in ffplay the stream is perfect. and if i check the box ‘RTP over RTSP (TCP)’ in vlc then the stream is also good.
Is there a way to also do this in Nx witness client? I all ready tried changing the Camera Settings → Expert → Media Streaming → RTP Transport from Auto to TCP but that didn't do much as far as i could tell.
kind regards.
0 -
Hi JV,
By default, Nx uses RTP over RTSP via TCP, meaning there are no additional settings you need to configure within Nx for this to work.
To help us investigate this issue more deeply, please reach out to your Authorized Nx Reseller. They can perform an initial review and, escalate the case directly to our Support Team.
Before contacting your reseller, it would be very helpful to gather some diagnostic information. Please follow these steps:
- Enable VERBOSE logging for both the Desktop Client and the Media Server.
- Reproduce the issue you are experiencing.
- Download the generated logs.
- Set the log level back to INFO.
Once you have the logs, please share them with your reseller so they can begin their initial investigation.
Please also note that as the investigation progresses, we may request remote access to the device (via port forwarding) so we can connect it securely to our test environment for deeper analysis.
Best regards.
0
Please sign in to leave a comment.
Comments
5 comments