Author an HLS multivariant (master) playlist with audio and subtitle rendition groups

domain: hls · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Write EXT-X-MEDIA tags for each audio rendition specifying TYPE=AUDIO, GROUP-ID, NAME, LANGUAGE, CHANNELS, and URI; mark the default track with DEFAULT=YES,AUTOSELECT=YES
  2. Write EXT-X-MEDIA tags for each subtitle track with TYPE=SUBTITLES, GROUP-ID, NAME, LANGUAGE, and URI pointing to a WebVTT segment playlist
  3. Write EXT-X-STREAM-INF tags for each video rendition specifying BANDWIDTH (peak), AVERAGE-BANDWIDTH, RESOLUTION, CODECS (RFC 6381 string), AUDIO group-id, and SUBTITLES group-id
  4. Ensure CODECS strings are accurate — use 'avc1.640028' for H.264 High L4.0, 'mp4a.40.2' for AAC-LC; inaccurate CODECS values cause player buffering failures on strict clients
  5. Set EXT-X-VERSION to at least 6 for fMP4 segments; include EXT-X-INDEPENDENT-SEGMENTS if each segment is independently decodable

Known gotchas

Related routes

Add WebVTT subtitle tracks to an HLS stream and reference them in the multivariant playlist
hls · 5 steps · unrated
Generate HLS I-frame (trick-play) playlists with ffmpeg for fast-forward and rewind
ffmpeg · 5 steps · unrated
Configure Low-Latency HLS with partial segments and blocking playlist reload
hls · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans