Skip to main content

Module rtsp

Module rtsp 

Source
Expand description

RTSP input via retina, pulled over TCP.

TCP rather than UDP on purpose: an IP cameraโ€™s RTP/UDP has no FEC and its losses would arrive as corrupt access units that Seyd then spends parity protecting. The camera hop is a short LAN link where a retransmit costs microseconds; the lossy path worth protecting is the one after the agent.

Constantsยง

BASE_BACKOFF ๐Ÿ”’
MAX_BACKOFF ๐Ÿ”’
STABLE_SESSION ๐Ÿ”’
A stream that ran this long was healthy, not flapping, so the failure that ends it starts the backoff over. Without this a camera that drops after hours costs the operator MAX_BACKOFF of black screen instead of a second.

Functionsยง

resolve_credentials
Substitute SEYD_RTSP_USER / SEYD_RTSP_PASSWORD into a URL without userinfo.
run
session ๐Ÿ”’