KRZN.live
Features

Decrease packet loss

KRZN Live is meant for routing live streams, and makes use of a series of protocols and techniques which try to preserve the real-time aspect of streams and minimize latency at cost of losing packets in transmit, in particular:

Packet losses are usually detected and printed in KRZN Live logs.

If you need to improve the stream reliability and decrease packet losses, the first thing to do is to check whether the physical network between the KRZN Live instance and the intended publishers and readers has sufficient bandwidth for transmitting the media stream. Most of the time, packet losses are caused by a network which is not fit for this scope. This limitation can be overcome by either recompressing the stream with a lower bitrate, or by upgrading the network infrastructure (routers, cables, Wi-Fi, firewalls, topology, etc).

Nonetheless there are some parameters that can be tuned to improve the situation, at cost of increasing RAM consumption:

yml udpReadBufferSize: 1000000

The udpReadBufferSize parameter requires the net.core.rmem_max system parameter to be equal or greater than it. It can be set with this command:

sh sudo sysctl net.core.rmem_max=100000000

yml writeQueueSize: 1024

yml rtspTransports: [tcp]

In case the source is a camera:

yml paths: test: source: rtsp://.. rtspTransport: tcp

Message us