You're asking about the purpose of the Ingress and Egress services when self‑hosting LiveKit — here's a concise explanation.
• Ingress: brings external media into a LiveKit room. It accepts RTMP/RTMPS, WHIP (WebRTC), HTTP(S) media files (HLS/MP4), and SRT. Ingress can transcode inputs (required for RTMP/URL, optional for WHIP), supports simulcast and encoding presets, and runs as a separate service that communicates with the LiveKit server via Redis and the API.
• Egress: exports media out of LiveKit rooms (or from webpages/participants/tracks). It can record or stream entire rooms, individual participants, or specific tracks, producing outputs like MP4, HLS, RTMP streams, or WebSocket delivery. Egress runs separately so recording/streaming work doesn’t impact the SFU’s real‑time performance.
Both services use GStreamer for media processing and are designed to scale independently.
Would you like details on deployment, configuration examples, or which inputs/outputs best fit your use case?
Sources:
Stream import | LiveKit docs |
Recording and export | LiveKit docs |
Universal Egress