This is a really useful observation. You're right that specifying -hls_time 4 doesn't guarantee 4-second segments because the HLS muxer cuts at available keyframes. If the encoder's GOP doesn't align with the requested segment duration, the actual segments can be longer or inconsistent. Forcing keyframes at regular intervals and keeping the GOP boundaries aligned across all renditions makes segment durations more predictable and allows cleaner quality switching during adaptive bitrate playback. The master playlist ordering is another important detail. The first variant can influence the initial playback quality, so listing a very low-resolution rendition first may result in a blurry initial experience before the player adapts. Both are good practical details that are easy to overlook when explaining HLS at a high level. I'll add them to the notes because they connect the concepts of transcoding, GOP alignment, segment generation, and adaptive bitrate switching to how HLS actually works.