This message was deleted.
# ask-ai
s
This message was deleted.
t
Thanks for reaching out, khaled. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'd love to help you understand the three scalability modes
L3T3
,
L3T3_KEY
, and
L3T3_KEY_SHIFT
. These define video encoding structures with 3 spatial layers (resolution tiers) and 3 temporal layers (frame rate tiers), enabling Scalable Video Coding (SVC). Let’s walk through their differences together: •
L3T3
: This is the baseline SVC mode without any special keyframe handling. When switching layers, you might experience a short wait for the next keyframe, which can cause brief delays. •
L3T3_KEY
: This mode is optimized for instant layer switching, allowing a smooth and seamless quality adaptation without having to wait for keyframes. It’s actually the default and recommended mode for VP9 or AV1 SVC codecs in LiveKit. •
L3T3_KEY_SHIFT
: This one is recognized in some SDKs but isn’t officially documented or supported for production use. It might be experimental or intended for special configurations. For your production needs, I’d warmly recommend going with
L3T3_KEY
because of its efficiency and its status as the default in LiveKit’s SVC implementation. If you have any more questions or want to explore this further, I’m here to help! Sources: livekit-android-test/src/test/java/io/livekit/android/room/track/video/Scal... | examples/demo/demo.ts | lib/src/utils.dart | Codecs and more | LiveKit docs | Web Application Examples | livekit/livekit_composite | DeepWiki
Great news! You don’t need to manually pass
L3T3_KEY
as a parameter. When you choose VP9 as your video codec,
L3T3_KEY
is automatically set as the default scalability mode for you. Here’s a simple way to set it up: • Set
videoCodec
to
'vp9'
. • Turn on
dynacast
by setting it to
true
. • Since simulcast is automatically disabled with VP9, there’s no need to explicitly set it to
false
. Here’s an example to guide you:
Copy code
{
  dynacast: true,
  publishDefaults: {
    videoCodec: 'vp9',
    // scalabilityMode: 'L3T3_KEY' — optional, this is the default
  }
}
This setup will help you get the best performance with VP9 and SVC. If you have any questions or need more help, feel free to ask! Sources: livekit-android-test/src/test/java/io/livekit/android/webrtc/JainSdpUtilsTe... | src/room/track/LocalVideoTrack.ts | Codecs and more | LiveKit docs | Configuring the Client SDK for Optimal Video Quality