Hi there. I'm thinking of using Livekit to support...
# ask-ai
o
Hi there. I'm thinking of using Livekit to support video conferencing in my SaaS platform. I'm trying to estimate downstream data transfer but I'm having a hard time figuring out what is realistic due to things like adaptive stream, simulcast and dynacast - I'm hoping y'all can help me out here. Can you help me figure out how much downstream data transfer I could expect when I host a video conference session with 30 participants all sharing video and audio at HD for one hour? 9 people will be on display at each time.
t
Thanks for reaching out, Jelle. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Let's take a closer look at estimating the downstream data transfer for your scenario together: Imagine a 30-participant video conference where 9 participants are shown in HD (720p) at any moment, with adaptive stream and simulcast enabled: • Each HD stream (720p) uses about 1.7 Mbps. • With 9 participants visible, the total downstream comes to 9 × 1.7 Mbps = 15.3 Mbps. • Thanks to adaptive stream optimizations, hidden participants don’t use any bandwidth. Looking at a one-hour session, the total data transfer would be: • 15.3 Mbps × 3600 seconds = 55,080 Mbps, which is roughly 6.89 GB. If you’d like, I’m here to help clarify anything further or adjust the estimate for things like screen sharing or different resolutions. Just let me know! Sources: An introduction to WebRTC Simulcast | livekit/src/room/options.rs | Bringing Zoom's end-to-end optimizations to WebRTC | Codecs and more | LiveKit docs
o
But doesn't each participant receive the tracks of all visible participants? Making the number higher than 9x 1.7 Mbps? Or am I thinking of this incorrectly?
t
You're absolutely right that each participant receives the tracks of all visible participants, and I’m glad you brought this up! The adaptive stream and simulcast features really help make this process much more efficient. Let me walk you through how it works: • Each participant only gets the appropriate simulcast layer for the visible participants. For instance, if 9 participants are visible at HD (720p), each participant will receive 9 streams at 1.7 Mbps each. • Streams from hidden participants are paused, so they don’t use any bandwidth. • Adaptive stream makes sure that only the necessary layers are sent, depending on the size and visibility of video elements on the screen. So, in your scenario, the downstream data transfer is still 9 × 1.7 Mbps per participant for the visible participants. If you have any more questions or want me to clarify anything else, please don’t hesitate to ask—I’m here to help!
o
Okay so it would be that Mbps * the amount of participants (30)? So 6.89*30?
t
Thanks for your question! Each participant actually receives the streams of only the visible participants (which is 9 in your case), not all 30 participants. This happens because of the adaptive stream feature, which smartly sends only the necessary video layers based on what’s visible and the screen layout. So, the downstream data transfer for each participant would be 9 × 1.7 Mbps = 15.3 Mbps. This doesn’t multiply by the total number of participants (30), since each participant’s downstream is calculated independently depending on what they’re viewing. If you’d like, I’d be happy to help you calculate the total data transfer for the entire session by multiplying the per-participant downstream by the number of participants and the session duration. Just let me know!
o
Yes please
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!
o
Calculate the total data transfer for the entire session by multiplying the per-participant downstream by the number of participants and the session duration