RK3588 Video Encoding and Streaming: RTSP, RTMP, and Low-Latency Practice

Published: · 虹音科技 / Hongyin Tech undefined

On Rockchip RK3588, hardware video encoders let the platform compress and stream multiple channels at once, but real latency and quality come from encoding parameters, protocol choice, and buffering strategy together. Low latency is not a single switch; it is trimmed layer by layer along the latency chain.

RK3588 encoding and streaming pipeline with low-latency optimization points

How Do Encoding Parameters Affect Latency and Quality?

Hardware encoding is a strength of this platform class; the maximum channel count and codec support depend on the official vendor datasheet. Parameter trade-offs shape bandwidth, quality, and latency directly:

How Do You Choose Among RTSP, RTMP, SRT, WebRTC, and GB28181?

ProtocolTypical latencyBest-fit scenariosMain cost
RTSPHundreds of millisecondsLAN preview, traditional surveillance ecosystem, NVR ingestWeak NAT traversal; usually confined to LAN or private links
RTMPSecondsStreaming to live platforms, CDN distributionTCP-based; latency accumulates on weak networks
SRTHundreds of millisecondsCross-internet, loss-resilient transport on weak networksBoth ends must support it; tooling is comparatively new
WebRTCLow hundreds of ms or lessBrowser-based ultra-low-latency preview, remote controlComplex deployment and signaling; higher cost for many channels
GB28181SecondsIndustry cascading, platform integration, unified managementHeavy stack; depends on platform-side coordination

These latency ranges are empirical and depend on network quality, server forwarding, and terminal decode capability; confirm by measurement. Decide first who watches, where, and whether seconds are acceptable: prefer RTSP inside the surveillance LAN, RTMP for platform distribution, SRT or WebRTC across the public internet, and GB28181 for industry cascading.

What Makes Up End-to-End Latency?

Break the chain into capture, encode, buffer queue, network transport, server forwarding, decode, and render. The optimization order is to measure each segment, find the largest contributor, and cut it layer by layer. In practice, encode time and network transport get the attention, while the buffer queue between capture and encode is often the overlooked heavyweight: it exists to absorb jitter, and set too deep it pins latency high. Levers include reducing queue depth with a frame-drop policy, shortening GOP, cutting reference frames, choosing low-latency protocols, and merging the render and display path.

How Do You Plan Multi-Channel Concurrency and Bandwidth?

The basic bandwidth equation is total = sum of per-channel bitrates x concurrency factor, with a factor of 1.2-1.5 to cover scene changes and client reconnects. A few rules of thumb:

How Do You Localize Corrupted Frames, Stutter, and A/V Desync?

FAQ

Need a custom solution or selection advice?
Hongyin Tech provides full-stack SoM/SBC customization on Rockchip & HiSilicon platforms with Android/Linux. Engineers respond within 1 business day.
Get a Free Quote →